Forum

Thread tagged as: Problem, Error, Configuration

Include Errors

I updated a dev site and now I'm receiving these errors. I've tried updating the individual files referenced but it doesn't seem to have any impact.

Warning: include(__DIR__/../inc/pre_config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include(__DIR__/../inc/pre_config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include() [function.include]: Failed opening '__DIR__/../inc/pre_config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include(__DIR__/../../config/config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include(__DIR__/../../config/config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include() [function.include]: Failed opening '__DIR__/../../config/config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include(PERCH_CORE/runtime/loader.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include(PERCH_CORE/runtime/loader.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include() [function.include]: Failed opening 'PERCH_CORE/runtime/loader.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include(PERCH_CORE/runtime/core.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include(PERCH_CORE/runtime/core.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include() [function.include]: Failed opening 'PERCH_CORE/runtime/core.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include(PERCH_CORE/inc/apps.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include(PERCH_CORE/inc/apps.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include() [function.include]: Failed opening 'PERCH_CORE/inc/apps.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include(PERCH_PATH/core/inc/forms.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include(PERCH_PATH/core/inc/forms.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include() [function.include]: Failed opening 'PERCH_PATH/core/inc/forms.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include(PERCH_PATH/core/inc/feathers.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Warning: include(PERCH_PATH/core/inc/feathers.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Warning: include() [function.include]: Failed opening 'PERCH_PATH/core/inc/feathers.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Fatal error: Call to undefined function perch_layout() in /var/sites/d/dev.cmj.org.uk/public_html/index.php on line 2
Phil Bowell

Phil Bowell 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is your server running at least PHP 5.4?

Hi Drew, sorry I didn't have direct access to the server as the admin was on holiday. It's running PHP 5.6, does it need to be on 7?

Drew McLellan

Drew McLellan 2638 points
Perch Support

It needs to be on at least PHP 5.4, but I would recommend PHP 7.

Hi Drew, I have the site running PHP7 now, but I'm still seeing these errors.

I've tried replacing all the files on the server but am still seeing errors. I don't really understand what's going on.

This is the latest error list.

Warning: include(__DIR__/../inc/pre_config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include(__DIR__/../inc/pre_config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include() [function.include]: Failed opening '__DIR__/../inc/pre_config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 11

Warning: include(__DIR__/../../config/config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include(__DIR__/../../config/config.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include() [function.include]: Failed opening '__DIR__/../../config/config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 12

Warning: include(PERCH_CORE/runtime/loader.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include(PERCH_CORE/runtime/loader.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include() [function.include]: Failed opening 'PERCH_CORE/runtime/loader.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 14

Warning: include(PERCH_CORE/runtime/core.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include(PERCH_CORE/runtime/core.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include() [function.include]: Failed opening 'PERCH_CORE/runtime/core.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 15

Warning: include(PERCH_CORE/inc/apps.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include(PERCH_CORE/inc/apps.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include() [function.include]: Failed opening 'PERCH_CORE/inc/apps.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 16

Warning: include(PERCH_PATH/core/inc/forms.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include(PERCH_PATH/core/inc/forms.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include() [function.include]: Failed opening 'PERCH_PATH/core/inc/forms.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 17

Warning: include(PERCH_PATH/core/inc/feathers.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Warning: include(PERCH_PATH/core/inc/feathers.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Warning: include() [function.include]: Failed opening 'PERCH_PATH/core/inc/feathers.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.cmj.org.uk/public_html/perch/core/runtime/runtime.php on line 21

Fatal error: Call to undefined function perch_layout() in /var/sites/d/dev.cmj.org.uk/public_html/index.php on line 2
Drew McLellan

Drew McLellan 2638 points
Perch Support

Create a new file on the server with this in it:

<?php phpinfo();

Load it in a browser - what does it output?

It was showing 5.2.6, but server was definitely on 7. Added a rule to htaccess and now it's all working. Thanks for the pointers.