Usage like this also needs to be changed:
site_url() . '/wp-admin/admin.php?page=cart-product-feed-admin'
Would become
admin_url('admin.php?page=cart-product-feed-admin')
Hi Evan,
Thank you for contacting ExportFeed.com
Can you please try to install it again? We have tested it on our local environment and dev environment and it is running smoothly. Please let us know if you still have the same issue on re-installation.
[ Signature moderated ]
Hi Exportfeed.com
I downloaded the plugin again (3.1.4.5) and I see that nothing has changed.
Just to be 100% clear — It is not a question of installation.
THIS CODE
require_once dirname(__FILE__) . '/../../../wp-admin/includes/plugin.php';
on LINE 55 of cart-product-feed.php (the main plugin file)
WILL PRODUCE FATAL ERRORS ON WORDPRESS INSTALLS THAT HAVE WORDPRESS IN ITS OWN DIRECTORY
(This is fully supported by WordPress core: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
That means that your local/test/dev environments are not setup to test this. Although this is a less common project structure, it is fully compatible with all plugins that follow WordPress best practices.
I’m experiencing the same issue. We’re using Roots Bedrock which keeps WordPress in its own directory.
Please make use of ABSPATH so that instances such as this:
require_once dirname(__FILE__) . '/../../../../../../wp-load.php';
are more like this:
require_once( ABSPATH . "/wp-load.php" );
Hi,
We really appreciate your suggestion.But since we have multiple libraries as there are multiple merchants included in the plugin, we have used the relative path. We will try and implement your suggestion as far as possible.
Regards,