• Resolved G.

    (@accentsduterroir)


    Hello, MultiVendorX team, the awesome WC Marketplace support team from years!! ??

    For information, I got a PHP Fatal Error when using MultiVendorx & Yoast SEO.

    Here’s my configuration:

    • PHP: v8.1
    • WordPress: v6.2.2
    • MultiVendorX: v4.0.20

    Steps to reproduce the error:

    1. Activate the following free plugins: MultiVendorX and Yoast SEO.
    2. Go to: Yoast SEO => Tools => Optimize SEO Data.
    3. Click on the button: Optimize SEO Data, and the error appears after some time. Please refer to my attached screenshot.

    Here’s the detailed PHP error:

    PHP Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/templates/shortcode/vendor_registration.php:2 Stack trace: #0 /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-template.php(38): include() #1 /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/shortcode/class-mvx-shortcode-vendor-registration.php(36): MVX_Template->get_template() #2 /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-shortcode.php(89): MVX_Vendor_Registration_Shortcode::output() #3 /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-shortcode.php(65): MVX_Shortcode::shortcode_wrapper() #4 /var/www/html/wp-includes/shortcodes.php(355): MVX_Shortcode::mvx_vendor_registration_shortcode() #5 [internal function]: do_shortcode_tag() #6 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() #7 /var/www/html/wp-includes/class-wp-hook.php(308): do_shortcode() #8 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #9 /var/www/html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(115): apply_filters() #10 /var/www/html/wp-content/plugins/wordpress-seo/src/actions/indexing/abstract-link-indexing-action.php(65): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build() #11 /var/www/html/wp-content/plugins/wordpress-seo/src/routes/abstract-indexation-route.php(24): Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action->index() #12 /var/www/html/wp-content/plugins/wordpress-seo/src/routes/indexing-route.php(418): Yoast\WP\SEO\Routes\Abstract_Indexation_Route->run_indexation_action() #13 /var/www/html/wp-content/plugins/wordpress-seo/src/routes/indexing-route.php(354): Yoast\WP\SEO\Routes\Indexing_Route->run_indexation_action() #14 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1181): Yoast\WP\SEO\Routes\Indexing_Route->index_post_links() #15 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #16 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch() #17 /var/www/html/wp-includes/rest-api.php(410): WP_REST_Server->serve_request() #18 /var/www/html/wp-includes/class-wp-hook.php(308): rest_api_loaded() #19 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #20 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action() #21 /var/www/html/wp-includes/class-wp.php(399): do_action_ref_array() #22 /var/www/html/wp-includes/class-wp.php(780): WP->parse_request() #23 /var/www/html/wp-includes/functions.php(1334): WP->main() #24 /var/www/html/wp-blog-header.php(16): wp() #25 /var/www/html/index.php(17): require('...') #26 {main} thrown in /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/templates/shortcode/vendor_registration.php on line 2

    I encountered a PHP Fatal Error while performing a specific action on my website. To reproduce the issue, please follow the steps mentioned above. After activating the plugins MultiVendorX and Yoast SEO, navigate to Yoast SEO => Tools => Optimize SEO Data. Clicking on the ‘Optimize SEO Data’ button triggers the error after a certain period of time.

    The error message indicates a fatal error in the PHP code, specifically in the file /var/www/html/wp-content/plugins/dc-woocommerce-multi-vendor/templates/shortcode/vendor_registration.php on line 2. It states that there is an undefined function call to wc_print_notices().

    Please note that if I deactivate the MultiVendorX plugin, the Yoast SEO data optimization tool works perfectly again.

    I also have some more issues with Yoast SEO, and I hope it’s not an incompatibility with MultiVendorX. If that’s the case, I’m interested to know if it is indeed the cause.

    I would appreciate your assistance in resolving this issue as it prevents me from using the MultiVendorX plugin properly in conjunction with Yoast SEO. Thank you for your attention and support!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical PHP Fatal Error with MultiVendorX and Yoast SEO’ is closed to new replies.