- This topic has 1 reply, 2 voices, and was last updated 2 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Error loading wp-load.php from post.php
I upgraded my wordpress server to a recent debian 11, with latest wordpress.
Now getting errors from trying to post to the api/post.php file
[Fri Nov 18 19:00:10.405256 2022] [php7:warn] [pid 60303] [client 54.203.247.2:33776] PHP Warning: include_once(): Failed opening ‘../../../../wp-load.php’ for inclusion (include_path=’.:/usr/share/php’) in /var/lib/wordpress/wp-content/plugins/wp-affiliate-platform/api/post.php on line 3
[Fri Nov 18 19:00:10.405740 2022] [php7:error] [pid 60303] [client 54.203.247.2:33776] PHP Fatal error: Uncaught Error: Call to undefined function get_option() in /var/lib/wordpress/wp-content/plugins/wp-affiliate-platform/api/post.php:7\nStack trace:\n#0 {main}\n thrown in /var/lib/wordpress/wp-content/plugins/wp-affiliate-platform/api/post.php on line 7
The culprit is the wp-load.php file can’t be found… I can ‘fix’ it by doing a symlink of the wp-load.php file to the real location /usr/share/wordpress/wp-load.php but of course doing so seem the wrong way. I don’t recall but hasn’t wordpress changed how to ‘find’ their basic files in their version 5 systems (debian defautls to 5.7.8 as part fo their deb 11 release).
Thoughts?
Please first try downloading, and installing a “fresh copy” of the plugin files.