Not working with symlinks
-
When WordPress is installed in a sub directory and the wp-content directory is symlinked, the plugin fails to load the
wp-admin/includes/plugin.php
insidecart-product-feed.php
.To solve this, replace this line:
require_once dirname(__FILE__) . '/../../../wp-admin/includes/plugin.php';
with this:
require_once ABSPATH . '/wp-admin/includes/plugin.php';
One should always use
ABSPATH
and similar constants when available.https://www.ads-software.com/plugins/purple-xmls-google-product-feed-for-woocommerce/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Not working with symlinks’ is closed to new replies.