Does the file exist on the server in that location?
Thread Starter
Bunty
(@bhargavbhandari90)
Hi Jeff,
So the file wp-load.php is not there on my site’s root.
Let me try to explain the scenario her::
So my site is hosted on flywheel, and they setup all the WP sites on their cloud platform. Meaning, the core files of WP is the common for all the sites.
See the folder structure here: http://prntscr.com/npoeto
I’ve asked them how they suggest to include wp-load.php in plugins.
I’ll share their response.
Thanks for the infos, let me know the response if there is a way I would be glad to include it in the plugin.
Thread Starter
Bunty
(@bhargavbhandari90)
Hi Jeff,
Got the response. Below what they are saying:
====
A better way to get to WordPress dynamically would be to:
1. Include the wp-config.php file from the site root (so that the ABSPATH variable can be used—ABSPATH is defined in the wp-config file, and points to wherever the core files live); and
2. Point to wp-load.php with ABSPATH . ‘/wp-load.php’
===
That make sense to me. What do you think?
Yes that looks like a better way of doing it. I will take a closer look and maybe implement for the next update if everything looks good. Thank you Bunty for the infos.
Thread Starter
Bunty
(@bhargavbhandari90)
Sounds good. Looking forward to it buddy.
Thanks
Just to follow up with this, the reported bug is fixed in the upcoming version. Should be available soon. Thanks again for the feedback, Bunty.