Home Forums WoodMart support forum critical error after install MyParcel update

critical error after install MyParcel update

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #202152

    Goldenlion
    Participant

    Hello,

    I updated a plugin MyParcel, this is my shipping provider.
    After that I got a critical error message on the frontpage

    This is the message in the log file:

    Fatal error: Uncaught Error: Call to undefined function is_vendor_dashboard() in /var/www/html/site/wp-content/themes/woodmart/inc/integrations/wcmp.php:11
    Stack trace:
    #0 /var/www/html/site/wp-includes/class-wp-hook.php(287): woodmart_wcmp_dequeue_styles(”)
    #1 /var/www/html/site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/html/site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /var/www/html/site/wp-includes/script-loader.php(2294): do_action(‘wp_enqueue_scri…’)
    #4 /var/www/html/site/wp-includes/class-wp-hook.php(287): wp_enqueue_scripts(”)
    #5 /var/www/html/site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #6 /var/www/html/site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #7 /var/www/html/site/wp-includes/general-template.php(2884): do_action(‘wp_head’)
    #8 /var/www/html/site/wp-content/themes/woodmart/header.php(13): wp_head()
    #9 /var/www/html/site/wp-includes/template.php(723): require_once(‘/var/www/html/s…’)
    #10 /var/www/html/s in /var/www/html/site/wp-content/themes/woodmart/inc/integrations/wcmp.php on line 11

    Can you tell me what I can do about it?

    Thanks

    #202189

    Hello,

    Please make the full backup of your site and check the issue on the free Storefront theme to detect if our theme causes the problem.

    Best Regards

    #202295

    Goldenlion
    Participant

    Hello Elise,

    With Storefront theme the error message is gone!

    Best regards

    #202357

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?

    Thank you in advance

    #202379

    Goldenlion
    Participant

    Hello Artem,

    See private content:

    Thanks.

    Best regards.

    #202391

    Artem Temos
    Keymaster

    It seems that this plugin uses the same PHP class as another plugin https://ru.wordpress.org/plugins/dc-woocommerce-multi-vendor/
    And this causes such conflict since our theme relies on this class.
    You need to contact plugin’s developers and ask them to fix this collision since they will not be compatible. And because of this Myparcel will not be compatible with our theme as well.

    #202392

    Goldenlion
    Participant

    Hi Artem,

    Thanks for you quick reply.
    But we don’t have this plugin (multi-vendor) at all in our site. Do you mean another maybe?

    Best regards

    #202393

    Artem Temos
    Keymaster

    Yes, you don’t have this plugin. But another plugin (Myparcel) has the same PHP class and causes such collision. Our theme “think” that you have multivendors plugin. Contact plugin’s developers and they should fix this problem since it is a very popular plugin.

    #202398

    Goldenlion
    Participant

    Hi Artem,

    Ah, now I understand, I will contact MyParcel to solve this.

    Thnaks,

    Best regards.

    #202406

    Artem Temos
    Keymaster

    OK, contact us if you will have any questions.

    #202601

    Goldenlion
    Participant

    Hi Artem,

    Could you please share with us which PHP class it is?

    Thanks.

    Best regards

    #202608

    Artem Temos
    Keymaster

    PHP class name is WCMp

    #202625

    Goldenlion
    Participant

    Thanks!

    #202717

    Goldenlion
    Participant

    Hello Artem,

    Since we do not use WC-Marketplace, is there a way to avoid the compatibility code of this plugin?
    MyParcel has built their whole plugin based on their wcmp.php (WooCommerceMyParcel)

    Thanks for your reply.

    Best regards.

    #202720

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    function woodmart_wcmp_custom_css() {
    	return '';
    }
    function woodmart_wcmp_dequeue_styles() {
    	return '';
    }
    #202724

    Goldenlion
    Participant

    Hi Artem,

    Well, that’s great.
    I will check if everything works like it should be.

    Thank you very much…

    Best regards.

    #202842

    Artem Temos
    Keymaster

    You are welcome.

Viewing 17 posts - 1 through 17 (of 17 total)