Local install moved to live loses class?

Permalink
I've just recently moved a site that I've been building on 5.7 (first time with 5.7). It was working totally fine on the local version, moved it over to live, everything went fine. Now when i view the site, try to edit, login, anything... I get this error?

Class '\Concrete\Block\Image\Controller' not found


I haven't touched any of the blocks, the site literally has a custom nav template, a theme and some very basic content installed?

Any ideas?

Prkns
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Prkns,

Have you checked that the controller.php file is on your server?
concrete\blocks\image\controller.php
Prkns replied on at Permalink Reply
Prkns
Hi MrKDilkington

It isn't currently, but that directory or file isn't there on the local either?

/concrete/block/


^ that doesn't even exist, let alone the directory and file within it?
MrKDilkington replied on at Permalink Reply
MrKDilkington
Did you create a fresh install of concrete5 on your live server?

When you moved your site, did you move the entire install?
Prkns replied on at Permalink Reply
Prkns
I copied exactly what i had locally straight to an empty directory on the server? Everything and everything.

Should i do a fresh install and then move themes and database(s) after?
MrKDilkington replied on at Permalink Reply
MrKDilkington
What you are seeing in the error is the namespace that corresponds to a file path and files. In the namespace "Block" is singular and the path is "blocks".
- namespace
Concrete\Block\Image\Controller
- files and file path
concrete\blocks\image\controller.php

Do you have a concrete\blocks directory?

Here is a full description of how to move a site:
https://www.concrete5.org/documentation/developers/5.7/installation/...

There may have been an error during the upload. If you replace the controller.php file, then the error should go away.
exchangecore replied on at Permalink Reply
exchangecore
triple check the path. The class is \Concrete\Block\Image\Controller, but the file path it resides on is /concrete/blocks/image/controller.php. Just throwing that out there.

Edit: Also, I recommend clearing your cache files if you haven't tried that already. Not sure off the top of my head if any of those store a class path or something in them.