Error message with php-js-file
-
Hi,
I’ve noticed an error message on an WordPress install which is using custom paths for the location of WordPress core. In this case the site is using the composer template project Bedrock by Roots.
The error is a 500 internal server error while requesting the following file:
/web/app/plugins/cookies-and-content-security-policy/js/cookies-and-content-security-policy-error-message.php
I think the reason behind the fault is line 4 in the file, but it just a guess.
require_once( explode( "wp-content", __FILE__)[0] . "wp-load.php" );
In Bedrock wp-load is located on another location:
/web/wp/wp-load.phpThis seems to be a common issue when using WordPress with custom paths, since it’s noted in Bedrocks documentation about compability. https://roots.io/docs/bedrock/master/compatibility/
Would it be possible to create a bugfix for this?
- The topic ‘Error message with php-js-file’ is closed to new replies.