Title: Fatal Error After Migration
Last modified: April 20, 2020

---

# Fatal Error After Migration

 *  Resolved [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/)
 * (@ibrahimoo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-after-migration-2/)
 * Hi [@maartenbelmans](https://wordpress.org/support/users/maartenbelmans/),
 * The plugin works fine on a server running PHP 7.2 but it gives the below error
   on another server running PHP 7.3.
 * `Fatal error: Uncaught TypeError: Argument 1 passed to SW_WAPF\Includes\Classes\
   Conditions::is_field_group_valid() must be an instance of SW_WAPF\Includes\Models\
   FieldGroup, bool given, called in [PATH]/includes/classes/class-field-groups.
   php on line 434 and defined in [PATH]/includes/classes/class-conditions.php:407`
 * Is it something related to PHP options/plugins that need to be installed/configured?
 * Many thanks in advance.
    Ibrahim
    -  This topic was modified 6 years, 5 months ago by [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/).
    -  This topic was modified 6 years, 5 months ago by [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Maarten B](https://wordpress.org/support/users/maartenbelmans/)
 * (@maartenbelmans)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-after-migration-2/#post-12702299)
 * Hi [@ibrahimoo](https://wordpress.org/support/users/ibrahimoo/)
 * How did you migrate from one server to another? Did you use a “find-replace” 
   plugin? I have a feeling that it messed up our data structure, as such your product
   fields are no longer valid in your database.
 *  Thread Starter [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/)
 * (@ibrahimoo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-after-migration-2/#post-12702829)
 * Hi [@maartenbelmans](https://wordpress.org/support/users/maartenbelmans/),
 * Thank you for your prompt response.
 * Actually I changed the urls directly from the database through SQL query (wp_posts
   and wp_postsmeta tables). Everything works fine except WAPF!
 * Unfortunately, I can’t import/export WAPF from one server to another.
    Hope you
   can advise how this can be fixed. Many thanks
    -  This reply was modified 6 years, 5 months ago by [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/).

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘Fatal Error After Migration’ is closed to new replies.

 * ![](https://ps.w.org/advanced-product-fields-for-woocommerce/assets/icon-256x256.
   gif?rev=3347990)
 * [Advanced Product Fields (Product Addons) for WooCommerce](https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-product-fields-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ibrahimoo](https://wordpress.org/support/users/ibrahimoo/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-after-migration-2/#post-12702829)
 * Status: resolved