Cannot find core WP functions.php
-
My PHP error log is filled with the following error, which seems to be come from a functions.php file that is a root file that I cannot look at. Here is the error and it seems to be happening extremely frequently, even though the BBpress plugin is working perfectly fine (and so is BSP as far as I can tell):
08-Feb-2025 23:00:52] WARNING: child 74277 said into stderr: “NOTICE: PHP message: PHP Warning: file_get_contents(/wordpress/wp-content/plugins/bbpress/bbpress.php): failed to open stream: No such file or directory in /wordpress/wp-includes/functions.php on line 6893”My host had this to say about the problem, which indicates to me that it cannot be fixed without a plugin code change. Please let me know what if anything I can do in the short term because this is happening once a minute or more, even on loading pages other than the forum:
The warning indicates that WordPress is trying to read the file /wordpress/wp-content/plugins/bbpress/bbpress.php using file_get_contents(), but the file does not exist. I checked the file, and it actually exists on the server, but upon further investigation, it appears one of the plugins is using ABSPATH to find the file, which would not point them in the right place.
The plugin name is bbp-style-pack and here’s the exact code insidewp-content/plugins/bbp-style-pack/bbp-style-pack.php89 $plugin_data = get_file_data(ABSPATH . 'wp-content/plugins/bbpress/bbpress.php', array('Version' => 'Version'), false);We, like many other managed WordPress solutions, protect the core files with added security and place them in a hidden folder. This path can be found using the ABSPATH constant (because that’s what it is fore), but ABSPATH is not a good tool for finding the wp-content folder because it is not part of the WordPress core files.
Thanks,
Tom DurocherThe page I need help with: [log in to see the link]
The topic ‘Cannot find core WP functions.php’ is closed to new replies.