Fatal error with upgrade to 220.127.116.11
Warning: require_once(/home2/pinkgbar/public_html/packages/wordpress_for_concrete5/blocks/wordpress_archives/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home2/pinkgbar/public_html/updates/concrete18.104.22.168_updater/concrete/core/libraries/loader.php on line 218
Fatal error: require_once() [function.require]: Failed opening required '/home2/pinkgbar/public_html/packages/wordpress_for_concrete5/blocks/wordpress_archives/controller.php' (include_path='/home2/pinkgbar/public_html/libraries/3rdparty:/home2/pinkgbar/public_html/updates/concrete22.214.171.124_updater/concrete/libraries/3rdparty:.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home2/pinkgbar/public_html/updates/concrete126.96.36.199_updater/concrete/core/libraries/loader.php on line 218
Where should I look?
[function.require-once]: failed to open stream: No such file or directory
on line 218
Fatal error: require_once() [function.require]: Failed opening required
on line 218
In my case it was a rogueblocktype called 'mededelingen'.
Looked at the database (phpMyAdmin) and there was a BlockTypes called mededelingen. Did a database backup. Removed the blocktype mededelingen from the database, now everything seems to work.
Warning: require_once(/updates/concrete188.8.131.52_updater/concrete/blocks/enlil_likes_this2/controller.php): failed to open stream: No such file or directory in /updates/concrete184.108.40.206_updater/concrete/core/libraries/loader.php on line 218 Fatal error: require_once(): Failed opening required '/updates/concrete220.127.116.11_updater/concrete/blocks/enlil_likes_this2/controller.php' (include_path='/libraries/3rdparty:/updates/concrete18.104.22.168_updater/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /updates/concrete22.214.171.124_updater/concrete/core/libraries/loader.php on line 218
All the class names and handles in the package controllers were set like EnlilLikesThis2 and enlil_likes_this_2. You will notice above c5 is looking for this: "/enlil_likes_this2"
I've gone back and made another package that mimics this one naming everything without the 2 and the package installs just fine. Is there something screwy with using a single number in a handle maybe ?? either way at the moment I'm stuck with the package unable to install and my block types page is broken.
Why is it looking in the updates folder for the block controller in the first place?? Any Ideas ??
Note: I removed the package entry from the packages table in the database as well!!
As to why it failed to find it, I regularly get the same glitch because I have messed up on file naming, capitalisation, correct package handle ........ Then I find my trivial typo and everything works OK.
I looked at the link for "packages gone wild" and checked my BlockTypes table - but there was no sign of my new block. I went back to the editor I'm using - phpStorm - to look at the controller.php. I'd used New-PHP Class to create the file, and it had added a line for a namespace. I took out that line, and presto-magico, it works now.
Thought I'd share just in case someone else gets stumped by this.
PHP Warning: equire_once(/var/www/html/packages/login/blocks/login/controller.php): failed to open stream: No such file or
directory in /var/www/html/updates/concrete126.96.36.199_updater/concrete/core/libraries/loader.php on line 217,
PHP Fatal error: require_once(): Failed opening required '/var/www/html/packages/login/blocks/login/controller.php' (include_path='/var/www/html/libraries/3rdparty:/var/www/html/updates/concrete188.8.131.52_updater/concrete/libraries/3rdparty:.:/usr/share/pear:/usr/share/php') in /var/www/html/updates/concrete184.108.40.206_updater/concrete/core/libraries/loader.php on line 217,
I followed the tips that were given in this thread.
And after deleting the row in the table BLOCK_TYPE I got the it working agian.
I'm not an expert on this but the row I had to delete looked pretty mandatory. here is a part of the row:
30 login Login Box Lets you add a login box as a block.
So before I tell the lovely lady in despair that all is fine again, could someone tell what this is for and if I didn't brake it even more?