Fatal Error activating on a fresh install

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Fatal Error activating on a fresh install

Viewing 3 reply threads
  • Author
    Posts
    • #128197
      ajgentile
      Participant

      Hi folks–

      I have a brand new, fresh install of WP. The only other plugin installed is WooCommerce. When trying to activate WCFM – Marketplace, I get this error:

      “Plugin could not be activated because it triggered a fatal error.

      Fatal error: Uncaught ArgumentCountError: Too few arguments to function update_option(), 1 passed in /home/pbsw/public_html/wp-content/plugins/wc-multivendor-marketplace/core/class-wcfmmp.php on line 643 and at least 2 expected in /home/pbsw/public_html/wp-includes/option.php:304 Stack trace: #0 /home/pbsw/public_html/wp-content/plugins/wc-multivendor-marketplace/core/class-wcfmmp.php(643): update_option(‘wcfmmp_updated_…’) #1 /home/pbsw/public_html/wp-includes/class-wp-hook.php(287): WCFMmp::activate_wcfmmp(”) #2 /home/pbsw/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #3 /home/pbsw/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/pbsw/public_html/wp-admin/plugins.php(179): do_action(‘activate_wc-mul…’) #5 {main} thrown in /home/pbsw/public_html/wp-includes/option.php on line 304″

      Before I dig through the code, I wanted to see if there is something obvious that I’m missing.

      PHP 7.2
      Theme Storefront
      Plugins: Woocommerce 4.1.0, WCFM – Marketplace 3.3.11

      I’m coming over from Dokan Pro. I want to switch to WCFM because of the delivery features.

      Screen shot attached.

      Any help?

      Attachments:
      You must be logged in to view attached files.
    • #128208
      ajgentile
      Participant

      I updated class-wcfmmp.php from

      update_option( 'wcfmmp_updated_3_3_10' );

      to

      update_option( 'wcfmmp_updated_3_3_10', 1 );

      Activation now works.

    • #128249
      guidomagaldi
      Participant

      hello! i got the same error and trying your solution But i already got update_option( ‘wcfmmp_updated_3_3_10’, 1 );

      can you tell me which line is it?

    • #128398
      Sushobhan
      Keymaster

      Hi,
      It is patched now. Please update to the latest version.
      Thank You!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.