Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Fatal Error activating on a fresh install
- This topic has 3 replies, 3 voices, and was last updated 4 years, 6 months ago by Sushobhan.
- AuthorPosts
- May 8, 2020 at 5:03 am #128197ajgentileParticipant
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.11I’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. - May 8, 2020 at 5:44 am #128208ajgentileParticipant
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.
- May 8, 2020 at 8:08 am #128249guidomagaldiParticipant
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?
- May 8, 2020 at 5:01 pm #128398SushobhanKeymaster
Hi,
It is patched now. Please update to the latest version.
Thank You!
- AuthorPosts
- You must be logged in to reply to this topic.