PHP Fatal error: require_once(): Failed opening required ical.phpwp-load.php
-
Hi
We are seeing this error in our logs:
require_once(/var/www/vhosts/project/releases/139/web/app/plugins/simple-event-planner/public/partials/single-event/ical.phpwp-load.php): failed to open stream: No such file or directory in /var/www/vhosts/project/releases/139/web/app/plugins/simple-event-planner/public/partials/single-event/ical.php on line 14Line 14, is this line:
require_once( explode( "wp-content" , __FILE__ )[0] . "wp-load.php" );I believe the problem is that it is assumed incorrectly where the plugin will be. In a Roots Bedrock environment, the directory structure is different:
https://docs.roots.io/bedrock/master/folder-structure/
Overriding the template in my own theme and changing the
require_oncedoes not work – the same error is reported.
The topic ‘PHP Fatal error: require_once(): Failed opening required ical.phpwp-load.php’ is closed to new replies.