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?
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?
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?
Hi MrKDilkington
It isn't currently, but that directory or file isn't there on the local either?
^ that doesn't even exist, let alone the directory and file within it?
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?
Did you create a fresh install of concrete5 on your live server?
When you moved your site, did you move the entire install?
When you moved your site, did you move the entire install?
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?
Should i do a fresh install and then move themes and database(s) after?
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.
- 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.
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.
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.
Have you checked that the controller.php file is on your server?
concrete\blocks\image\controller.php