• Resolved nickberens360

    (@nickberens360)


    Any thoughts on what’s causing this error?

    [Wed Aug 19 20:33:32.998836 2020] [php7:error] [pid 6243] [client 66.168.75.104:24588] PHP Fatal error: Uncaught TypeError: Argument 2 passed to SW_WAPF\\Includes\\Classes\\Html::field_group() must be an instance of SW_WAPF\\Includes\\Models\\FieldGroup, string given, called in /nas/content/live/wworderout/wp-content/plugins/advanced-product-fields-for-woocommerce/includes/controllers/class-product-controller.php on line 171 and defined in /nas/content/live/wworderout/wp-content/plugins/advanced-product-fields-for-woocommerce/includes/classes/class-html.php:101\nStack trace:\n#0 /nas/content/live/wworderout/wp-content/plugins/advanced-product-fields-for-woocommerce/includes/controllers/class-product-controller.php(171): SW_WAPF\\Includes\\Classes\\Html::field_group(Object(WC_Product_Simple), ‘1’, Array)\n#1 /nas/content/live/wworderout/wp-includes/class-wp-hook.php(287): SW_WAPF\\Includes\\Controllers\\Product_Controller->display_field_groups(”)\n#2 /nas/content/live/wworderout/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)\n#3 /nas/content/live/wworderout/wp-includes/plugin.php(478): WP_Hook->do_action( in /nas/content/live/wworderout/wp-content/plugins/advanced-product-fields-for-woocommerce/includes/classes/class-html.php on line 101, referer: https://fdlvirtualorders.order-out.com/

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Maarten

    (@maartenbelmans)

    Hi @nickberens360

    Did you do a database migration or a find/replace in your database by any chance?

    Thread Starter nickberens360

    (@nickberens360)

    I believe the site with the error was cloned from another site using the plugin. Could that be the issue?

    Plugin Author Maarten

    (@maartenbelmans)

    Yes. You’ve probably used a plugin that clones the database and performs some operations on the data. I suspect this operation went wrong and our serialised data is no longer correctly set in the database.

    To move forward: how many field groups have you created and how did you create them (via “WooCommerce>product Fields” or via the “edit product” screen)?

    Thread Starter nickberens360

    (@nickberens360)

    Hi @maartenbelmans I just reached out to the person that put the site together. They do not know the amount of fields they added but said it was around 10-15. They said they created the fields from the Edit Products Screen. We are using this your plugin on several of our sites and a couple of them are experiencing the same error. Thanks in advance for your help!!

    Plugin Author Maarten

    (@maartenbelmans)

    You’ll have to remove the record in the database as it now contains erroneous data. Field groups created via the “edit product” screen are stored as product meta (so postmeta table) with key “_wapf_fieldgroup”. Best is to remove those from faulty records from the database and recreate the field group.

    Thread Starter nickberens360

    (@nickberens360)

    @maartenbelmans thanks for the quick response. So should I remove just the meta_value values or remove the entire record? Thanks

    Plugin Author Maarten

    (@maartenbelmans)

    Remove the whole records (it’s a meta key with meta value basically).

    Plugin Author Maarten

    (@maartenbelmans)

    Closing this issue for now due to inactivity. If the issue still persists, feel free to open another ticket.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error’ is closed to new replies.