Add Block error after upgrade to 5.6.0.2
PermalinkI have upgraded my site to 5.6.0.2. All is working well from what I see except when I wanted to add a block I got the below error
not sure what it all means. the directory definitely exists
Warning: require_once(/home/bostogcs/public_html/dev/packages/addthis/blocks/addthis/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/bostogcs/public_html/dev/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 205
Fatal error: require_once() [function.require]: Failed opening required '/home/bostogcs/public_html/dev/packages/addthis/blocks/addthis/controller.php' (include_path='/home/bostogcs/public_html/dev/libraries/3rdparty:/home/bostogcs/public_html/dev/updates/concrete5.6.0.2/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/bostogcs/public_html/dev/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 205
It's looking for a block that is in some kind of limbo where it is installed but the package doesn't exist.
I just ran into this on a site after updating too. I think I uninstalled some packages ages ago and after the update, C5 thought there were still there (but I can't be sure).
The missing package may also be referenced on old versions of pages so before I update I make sure I visit the 'Jobs' and click the 'Remove Old Pages' job as many times as necessary until the message finally says that there are 'no further pages to process'. This job does not erase all old pages throughout your entire site in one pass. It takes a batch at a time so as not to overload the server so you need to run it a bunch of times to make sure you have run through the entire site.
Quick Steps:
1. Find the package from the error message (or go to yoursite/index.php/dashboard/extend/install/ and look for packages that have the grey C5 hand and no package icon.
2. Go to your C5 profile and under licences, you should be able to download the archive (make sure you pick the right version if there are multiples). If you don;t see the download archive link on the package, then you'll have to go to projects and release teh package from the project.
3. Download the package zip file to your local machine
4. Upload the zip to your site under the /packages folder using Cpanel, Filezilla, FTP or other preferred method.
5. Unpack/extract the package
6. Refresh the yoursite/index.php/dashboard/extend/install/ page and you should see the package has the icon and you can click edit now.
7. Uninstall or update the package as needed.
8. Add a block on your site and see if the problem is resolved. If not, repeat the steps with the next offending package.
As to the cause, I have no idea. Kind of a pain in the ass to find and figure out and it did seem to come out of nowhere.
I installed code blocks, and it said duplicate entries in the database. But it was installed. That didn't even fix the error message though.
So I uninstalled code blocks. (still getting the error) and searched the database for css_code. It was in a blocktype table. Deleted that and got 3 more errors which were all blocktypes that I then deleted. After doing that the error was gone.
Warning: require_once(/home/eilbeckw/public_html/eilbeckwinches.com/updates/concrete5.6.0.2/concrete/blocks/news_scroll/controller.php) [function.require-once]: failed to open stream: No such file or directory in/home/eilbeckw/public_html/eilbeckwinches.com/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 205
I've had NewsPro uninstalled for few months/few c5 updates, but the left over tables never created problems until this update. Had to search for all "news_scroll" entries in SQL, and after deleting them all, the error was gone and "add block" worked normally.
Thanks for the info on this!
So from a completely new db and everything all I've added was a new block...
http://d.pr/i/hqfJ
This worked perfect in previous versions but now I get this error whenever I click into...
http://local.site.com/index.php/dashboard/blocks/permissions/...
> Add Block > Details
Warning: require_once(/Users/brycereynolds/Sites/sandbox/svn/advanced_coating_solutions/trunkClean/concrete/blocks/contact_details/controller.php): failed to open stream: No such file or directory in /Users/brycereynolds/Sites/sandbox/svn/advanced_coating_solutions/trunkClean/concrete/core/libraries/loader.php on line 205
I also get it when I go to...
http://local.site.com/index.php/dashboard/blocks/types/...
Has the process for adding blocks changed?
Could someone help?
Thanks a lot!