PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Error after changing site url

  1. I just changed the WordPress site url in the database (wp_options table and find/replace) and my forms are gone. In the admin, the forms are listed, but when clicking edit, it is as they are completely new forms. The rest of the site is working as it should. I get this error on the Gravity Forms settings page:

    Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/wp-content/plugins/gravityforms/forms_model.php on line 1709

    On both pages with forms, this message appears instead of the form:

    Oops! We could not locate your form.

    This happened before and after updating to latest Gravity Forms files.

    It appears that the form data might be saved in the wp_rg_form_meta table.

    Any help is greatly appreciated. Thank you very much.

    Posted 14 years ago on Friday September 24, 2010 | Permalink
  2. Lori,
    The problem is that the form meta is stored in a serialized format and is very sensitive to changes. Sometimes PhpMyAdmin corrupts the meta when exporting (when you have line breaks and special characters in your form configuration). To correct this problem, you will need to fix your form meta manually (yes, they are stored in the wp_form_meta table). One of our users found the following script and he said it was very helpful. Give it a shot and let me know how it goes.
    http://www.davesgonemental.com/php-serialization-fix-for-wordpress-migrations/

    Posted 14 years ago on Friday September 24, 2010 | Permalink