Support » Plugin: Stock Locations for WooCommerce » Warning Messages at the top of product pages

  • Resolved studioczyz

    (@studioczyz)


    After installing Stock Locations for WooCommerce, I am seeing warning messages that look like the warning below at the top of my product pages when I’m logged in as admin. They do not seem to appear for non-admins. This is not when I’m editing the product in WooCommerce, but when I view the product such as through it’s permalink.

    I’ve tried turning off the plugin mentioned in the warning (e.g., Advanced Google Recaptcha), but the warning still appears, just with a different plugin name. So far, I’ve tried disabling three different plugins but the warning just moves on to another one.

    The only way to get rid of the warnings is to disable Stock Locations for WooCommerce.

    Thoughts? Here is an example of the warning message.

    Warning: include(/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php): failed to open stream: No such file or directory in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/advanced-google-recaptcha/vendor/composer/ClassLoader.php on line 571

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Please check the write permissions on your hosting or turn off the debug mode which is throwing the warning messages.

    Thread Starter studioczyz

    (@studioczyz)

    Thanks for the quick response.

    My WordPress is not in debug mode. What’s weird is that these warnings do not appear in my WordPress Activity Log. The Stock Locations errors are at the top of pages throughout my website, not just the product pages, but only for admin users (as best as I’ve been able to test). They do not show when I’m editing products in WooCommerce. I am concerned that they will show up for non-admin users, in which case I will have to uninstall your plugin unless there’s a fix.

    None of my other plugins are throwing warnings that show up in my site pages.

    Your plugin has the same permissions as all of my other plugins: read/write. No changes have been made to any permissions for any plugins.

    It appears Stock Locations is looking for something and not finding it.

    Happy to send screen snaps if that helps.

    Here are the messages that are at the top of my website pages. Like I said, these are not in my activity log files.

    <span style=”text-decoration: underline;”>The initial warning messages are:</span>

    Warning: include(/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php): failed to open stream: No such file or directory in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/advanced-google-recaptcha/vendor/composer/ClassLoader.php on line 571

    Warning: include(): Failed opening ‘/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php’ for inclusion (include_path=’.:/usr/local/php74/pear’) in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/advanced-google-recaptcha/vendor/composer/ClassLoader.php on line 571

    <span style=”text-decoration: underline;”>With Google Recaptcha turned off, warning message is now One Click Demo Import:</span>

    Warning: include(/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php): failed to open stream: No such file or directory in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php on line 444

    Warning: include(): Failed opening ‘/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php’ for inclusion (include_path=’.:/usr/local/php74/pear’) in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php on line 444

    <span style=”text-decoration: underline;”>With One Click Demo Import Turned Off, warning is now Rank Math:</span>

    Warning: include(/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php): failed to open stream: No such file or directory in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 571

    Warning: include(): Failed opening ‘/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php’ for inclusion (include_path=’.:/usr/local/php74/pear’) in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 571

    <span style=”text-decoration: underline;”>After Rank Math turned off, error is now : sg-cachepress. After this, I gave up trying to figure out potential conflicts.</span>


    Warning: include(/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php): failed to open stream: No such file or directory in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/sg-cachepress/vendor/composer/ClassLoader.php on line 571

    Warning: include(): Failed opening ‘/home/customer/www/studio-celia.com/public_html/wp-content/plugins/stock-locations-for-woocommerce/vendor/composer/../composer/InstalledVersions.php’ for inclusion (include_path=’.:/usr/local/php74/pear’) in /home/customer/www/studio-celia.com/public_html/wp-content/plugins/sg-cachepress/vendor/composer/ClassLoader.php on line 571

    Thread Starter studioczyz

    (@studioczyz)

    Why is this marked as resolved????

    Through a bunch of investigating, there are 2 issues going on. Stock Locations for WooCommerce is throwing composer warnings (see examples in my list above) and WP Activity Log appears to be writing these to webpages, not its log.

    Please resolve why Stock Locations for WooCommerce is throwing composer warnings. I have contacted WP Activity Log about its anomalous behavior.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.