Block now looking for files in updates directory after update from 5.5 to 5.6.0.2 "require_once" errors

Permalink
Hi There,

I've just upgraded a site to 5.6.0.2 (from 5.5) and upgraded stack modal to 1.2.1 for local testing.

But it looks like Stack Modal is trying to find its files in the /updates directory and not in the /packages directory - this is the error we see on the front end whenever the block is used:

Warning: require_once(/path/to/site/root/updates/concrete5.6.0.2/concrete/models/stack.php): failed to open stream: No such file or directory in /path/to/site/root/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 40
Fatal error: require_once(): Failed opening required '/path/to/site/root/updates/concrete5.6.0.2/concrete/models/stack.php' (include_path='/path/to/site/root/libraries/3rdparty:/path/to/site/root/updates/concrete5.6.0.2/concrete/libraries/3rdparty:.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in/path/to/site/root/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 40


I don't really understand what is going on sorry - has anyone else seen this?

Cheers

Ben

 
cmscss replied on at Permalink Best Answer Reply
After updating stack_modal, the updated controller.php file was being overridden by an older block controller.php file in my custom block template.

Note to self, only duplicate the /templates directory (and nothing else) when making custom templates for packaged blocks.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.