PHP Warning: Undefined array key “path”
-
Hi,
I have submitted this question in the WooCommerce Support section but never got an answer. Hopefully you can help me here.
The following keeps on showing up everyday in my Error Log file in cPanel. What is the problem?
Thank you!
[10-Jan-2025 06:11:18 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:19 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:20 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:21 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:21 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:22 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:23 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:24 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:25 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:26 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843
[10-Jan-2025 06:11:27 UTC] PHP Warning: Undefined array key “path” in public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 843The page I need help with: [log in to see the link]
-
And these are from today, seems a different problem?
[12-Jan-2025 09:51:52 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘ /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/woocommerce-blocks-integration.php’ (include_path=’.:/opt/cpanel/ea-php80/root/usr/share/pear’) in /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/newsletter.php:18
Stack trace: 0 /public_html/wp-includes/class-wp-hook.php(324): {closure}(”) 1 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Bootstrap.php(99): do_action(‘woocommerce_blo…’) 4 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(106): Automattic\WooCommerce\Blocks\Domain\Bootstrap->__construct(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 5 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\Blocks\Package::Automattic\WooCommerce\Blocks{closure}(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 6 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\AbstractDependencyType->resolve_value(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 7 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\SharedType->get(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 8 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(44): Automattic\WooCommerce\Blocks\Registry\Container->get(‘Automattic\WooC…’) 9 [internal function]: Automattic\WooCommerce\Blocks\Package::init() 10 /public_html/wp-content/plugins/woocommerce/src/Packages.php(287): call_user_func(Array) 11 /public_html/wp-content/plugins/woocommerce/src/Packages.php(85): Automattic\WooCommerce\Packages::initialize_packages() 12 /public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Packages::on_init(”) 13 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 14 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 15 /public_html/wp-settings.php(559): do_action(‘plugins_loaded’) 16 /public_html/wp-config.php(96): require_once(‘ …’) 17 /public_html/wp-load.php(50): require_once(‘ …’) 18 /public_html/wp-blog-header.php(13): require_once(‘ …’) 19 /public_html/index.php(17): require(‘ …’) 20 {main}thrown in /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/newsletter.php on line 18
[12-Jan-2025 09:51:53 UTC] PHP Fatal error: Uncaught Error: Class “Mailchimp_Woocommerce_DB_Helpers” not found in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php:524
Stack trace: 0 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(377): mailchimp_get_option(‘mailchimp_api_k…’, false) 1 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(363): mailchimp_get_api_key() 2 /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/newsletter.php(7): mailchimp_is_configured() 3 /public_html/wp-includes/class-wp-hook.php(324): {closure}(”) 4 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Bootstrap.php(99): do_action(‘woocommerce_blo…’) 7 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(106): Automattic\WooCommerce\Blocks\Domain\Bootstrap->__construct(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 8 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\Blocks\Package::Automattic\WooCommerce\Blocks{closure}(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 9 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\AbstractDependencyType->resolve_value(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 10 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\SharedType->get(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 11 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(44): Automattic\WooCommerce\Blocks\Registry\Container->get(‘Automattic\WooC…’) 12 [internal function]: Automattic\WooCommerce\Blocks\Package::init() 13 /public_html/wp-content/plugins/woocommerce/src/Packages.php(287): call_user_func(Array) 14 /public_html/wp-content/plugins/woocommerce/src/Packages.php(85): Automattic\WooCommerce\Packages::initialize_packages() 15 /public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Packages::on_init(”) 16 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 17 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 18 /public_html/wp-settings.php(559): do_action(‘plugins_loaded’) 19 /public_html/wp-config.php(96): require_once(‘ …’) 20 /public_html/wp-load.php(50): require_once(‘ …’) 21 /public_html/wp-blog-header.php(13): require_once(‘ …’) 22 /public_html/index.php(17): require(‘ …’) 23 {main}thrown in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php on line 524
[12-Jan-2025 09:51:53 UTC] PHP Fatal error: Uncaught Error: Class “Mailchimp_Woocommerce_DB_Helpers” not found in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php:524
Stack trace: 0 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(377): mailchimp_get_option(‘mailchimp_api_k…’, false) 1 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(363): mailchimp_get_api_key() 2 /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/newsletter.php(7): mailchimp_is_configured() 3 /public_html/wp-includes/class-wp-hook.php(324): {closure}(”) 4 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Bootstrap.php(99): do_action(‘woocommerce_blo…’) 7 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(106): Automattic\WooCommerce\Blocks\Domain\Bootstrap->__construct(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 8 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\Blocks\Package::Automattic\WooCommerce\Blocks{closure}(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 9 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\AbstractDependencyType->resolve_value(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 10 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\SharedType->get(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 11 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(44): Automattic\WooCommerce\Blocks\Registry\Container->get(‘Automattic\WooC…’) 12 [internal function]: Automattic\WooCommerce\Blocks\Package::init() 13 /public_html/wp-content/plugins/woocommerce/src/Packages.php(287): call_user_func(Array) 14 /public_html/wp-content/plugins/woocommerce/src/Packages.php(85): Automattic\WooCommerce\Packages::initialize_packages() 15 /public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Packages::on_init(”) 16 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 17 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 18 /public_html/wp-settings.php(559): do_action(‘plugins_loaded’) 19 /public_html/wp-config.php(96): require_once(‘ …’) 20 /public_html/wp-load.php(50): require_once(‘ …’) 21 /public_html/wp-blog-header.php(13): require_once(‘ …’) 22 /public_html/index.php(17): require(‘ …’) 23 {main}thrown in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php on line 524
[12-Jan-2025 09:51:54 UTC] PHP Fatal error: Uncaught Error: Class “Mailchimp_Woocommerce_DB_Helpers” not found in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php:524
Stack trace: 0 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(377): mailchimp_get_option(‘mailchimp_api_k…’, false) 1 /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php(363): mailchimp_get_api_key() 2 /public_html/wp-content/plugins/mailchimp-for-woocommerce/blocks/newsletter.php(7): mailchimp_is_configured() 3 /public_html/wp-includes/class-wp-hook.php(324): {closure}(”) 4 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Bootstrap.php(99): do_action(‘woocommerce_blo…’) 7 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(106): Automattic\WooCommerce\Blocks\Domain\Bootstrap->__construct(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 8 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\Blocks\Package::Automattic\WooCommerce\Blocks{closure}(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 9 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\AbstractDependencyType->resolve_value(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 10 /public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\SharedType->get(Object(Automattic\WooCommerce\Blocks\Registry\Container)) 11 /public_html/wp-content/plugins/woocommerce/src/Blocks/Package.php(44): Automattic\WooCommerce\Blocks\Registry\Container->get(‘Automattic\WooC…’) 12 [internal function]: Automattic\WooCommerce\Blocks\Package::init() 13 /public_html/wp-content/plugins/woocommerce/src/Packages.php(287): call_user_func(Array) 14 /public_html/wp-content/plugins/woocommerce/src/Packages.php(85): Automattic\WooCommerce\Packages::initialize_packages() 15 /public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Packages::on_init(”) 16 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 17 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 18 /public_html/wp-settings.php(559): do_action(‘plugins_loaded’) 19 /public_html/wp-config.php(96): require_once(‘ …’) 20 /public_html/wp-load.php(50): require_once(‘ …’) 21 /public_html/wp-blog-header.php(13): require_once(‘ …’) 22 /public_html/index.php(17): require(‘ …’) 23 {main}thrown in /public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php on line 524
[12-Jan-2025 09:59:34 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_original_value() on bool in /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/custom-types/wpml-st-slug-custom-type-factory.php:38
Stack trace: 0 /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/custom-types/wpml-st-slug-translation-post-custom-types-repository.php(48): WPML_ST_Slug_Custom_Type_Factory->create(‘product’, true) 1 [internal function]: WPML_ST_Slug_Translation_Post_Custom_Types_Repository->build_object(‘product’) 2 /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/custom-types/wpml-st-slug-translation-post-custom-types-repository.php(20): array_map(Array, Array) 3 /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-rewrite-rule-filter.php(55): WPML_ST_Slug_Translation_Post_Custom_Types_Repository->get() 4 /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-rewrite-rule-filter.php(30): WPML_Rewrite_Rule_Filter->get_custom_types() 5 /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/RewriteRules/Hooks.php(52): WPML_Rewrite_Rule_Filter->rewrite_rules_filter(Array) 6 /public_html/wp-includes/class-wp-hook.php(326): WPML\ST\SlugTranslation\Hooks\Hooks->filter(Array) 7 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 8 /public_html/wp-includes/option.php(247): apply_filters(‘option_rewrite_…’, Array, ‘rewrite_rules’) 9 /public_html/wp-includes/class-wp-rewrite.php(1494): get_option(‘rewrite_rules’) 10 /public_html/wp-content/plugins/filter-everything/src/WpManager.php(24): WP_Rewrite->wp_rewrite_rules() 11 /public_html/wp-content/plugins/filter-everything/src/Plugin.php(20): FilterEverything\Filter\WpManager->init() 12 /public_html/wp-content/plugins/filter-everything/filter-everything.php(184): FilterEverything\Filter\Plugin->__construct() 13 /public_html/wp-includes/class-wp-hook.php(324): FlrtFilter->oneTwoThreeGo(”) 14 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 15 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 16 /public_html/wp-settings.php(704): do_action(‘init’) 17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1363): require(‘ …’) 18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1282): WP_CLI\Runner->load_wordpress() 19 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 20 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) 21 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 22 phar:///usr/local/bin/wp/php/boot-phar.php(20): include(‘phar:///usr/loc…’) 23 /usr/local/bin/wp(4): include(‘phar:///usr/loc…’) 24 {main}thrown in /public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/custom-types/wpml-st-slug-custom-type-factory.php on line 38
Hi! @thewebmonk Thanks for reaching out. Looks like you got some not so great error codes.
The error message you’re encountering indicates that there’s an issue within the Mailchimp for WooCommerce plugin where it’s attempting to access an array key named “path” that doesn’t exist or hasn’t been defined before it’s being accessed. This can occur for various reasons, such as changes in the plugin’s code, updates that introduce incompatibilities, or issues with how data is being handled within your specific site setup.
To address this issue, follow these steps:
- Update Your Plugins and Theme: Ensure that both your Mailchimp for WooCommerce plugin and WooCommerce itself, along with your WordPress theme and all other plugins, are up to date. Sometimes, compatibility issues can be resolved with updates.
- Check Plugin Configuration: Double-check the Mailchimp for WooCommerce plugin settings within your WordPress dashboard. Ensure that all required fields are correctly filled out and that there are no misconfigurations that could lead to data access issues.
- PHP Version Compatibility: Verify that your hosting environment is running a PHP version compatible with both WooCommerce and the Mailchimp for WooCommerce plugin. Outdated PHP versions can lead to unexpected errors.
- Review Recent Changes: If the error started appearing after a recent change (such as an update or the installation of a new plugin), try to revert those changes to see if the issue persists. This can help identify the source of the problem.
- Enable Debugging: WordPress offers debugging options that can provide more detailed error messages. You can enable debugging by editing your
wp-config.php
file and settingWP_DEBUG
totrue
. This might give you more insight into what’s causing the issue. - Check for Conflicts: Perform a conflict test by deactivating other plugins one by one and switching to a default WordPress theme like Twenty Twenty-One. If the error goes away after deactivating a specific plugin or theme, you’ve found the conflict source.
- Custom Code: If you have custom code snippets added to your site, ensure they’re not causing the issue. Sometimes, custom code can interfere with plugin functionality.
BUT, I see you provided your URL, to allow us to go deeper, please enable the?Remote Diagnostics?feature found in the plugin’s Settings tab. This allows the Mailchimp for WooCommerce development team to diagnose and fix the issue remotely.
Hope to hear from you!
Hello,
thank you for your help. For now, I have decided to deactivate and delete the Mailchimp for Woocommerce plugin. I have done that already.
Is it safe for me to delete the following tables from my database?
mc-mailchimp_webhook_url
mailchimp_api
mailchimp_listsThank you
Hi there! Sorry we couldn’t help you out – I would say it is safe, as long as you have deleted the plugin. I would back up your database first and then delete, just in case. We are here if you decide to ever give us another chance.
Hi there, we’re going to close out this ticket for now since it’s been a few weeks since we’ve been in touch.
Please let us know if you still need any help and we’ll be glad to reopen and troubleshoot further. Please note, that the best way to reach us is over at the GitHub plugin page: https://github.com/mailchimp/mc-woocommerce/. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.
- You must be logged in to reply to this topic.