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.

Fatal Error when upgrading & activating

  1. bakanahito
    Member

    Hi,
    when trying to update to the new version of your plugin, I got the following error message when trying to reactivate the plugin:
    Fatal error: Cannot redeclare gravity_form() (previously declared in /home/.../public_html/.../wp-content/plugins/gravityforms/gravityforms.php:1183) in /home/.../public_html/neu/wp-content/plugins/gravityforms/gravityforms.php on line 1185
    Could you please advise how to solve this problem?
    Thank you very much in advance,
    Michael

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  2. It sunds like your WordPress install didn't handle the upgrade properly. This happens on occasion, the WordPress automatic update routine can run into hiccups. This means you will need to upgrade manually.

    - Download the Gravity Forms zipfile from the Plugin Downloads page on this site
    - Login to your WordPress Dashboard
    - Navigate to your Plugins page
    - Deactivate Gravity Forms
    - Delete Gravity Forms
    - Select Add New plugins
    - Upload Gravity Forms zipfile

    So basically you need to delete your existing version of Gravity Forms from the plugin page and then re-install the new version like you were doing it for the first time. Just delete it from the Plugins page and it won't impact your Gravity Forms data.

    Whatever you do DON'T use the Uninstall option on the Gravity Forms Settings page. This WILL delete your data, so don't do that.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  3. bakanahito
    Member

    Thanks for your quick reply. I followed your instructions, but unfortunately the same error message came up...
    I´m on WordPress 3.0.4 by the way - should I upgrade?

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  4. The version of WordPress shouldn't matter, the problem is it's not installing properly. It could be the files you have downloaded, or it could be because you already have existing Gravity Forms files on your server and deleting them via the Plugin page didn't actually delete the Gravity Forms files.

    I would suggest FTPing into your site, browse to wp-content/plugins and delete the gravityforms folder completely. Then re-download Gravity Forms from the support site, unzip it on your local machine and then upload the gravityforms folder that you unzip to the wp-content/plugins folder and install via FTP. Then browse to your plugins in your Dashboard and activate.

    Something isn't happening correctly with how it is being installed, something specific to your site or how the files are being uploaded. It's not executing properly.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  5. BrettBorders77
    Member

    My blog was hacked. To clean it up, I had to back up the database and theme files... and then delete everything & reinstall Wordpress.

    Now I am trying to re-install Gravity Forms. I deleted the old version out of my FTP, and installed GF 1.5.2.8 fresh from the Gravity Forms site... running the the latest Wordpress (3.1.3). Activating it triggers this error message:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h01/mnt/28407/domains/XXXXXXXX.com/html/wp-content/plugins/gravityforms 2/gravityforms.php on line 79

    I ran the Gravity Forms Meta Recovery Utility and it gives me this error:

    '
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h01/mnt/28407/domains/XXXXX.com/html/wp-content/plugins/gravityformsmetarecovery/fixmeta.php on line 32
    '

    Now customers can;t contact me! What can I go to get Gravity Forms back online?

    -Brett

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  6. @BrettBorders77 In the future please start a new forum thread because your issue is completely unrelated to the issue in this thread. So in the future post a new support issue rather than replying to an existing one and assuming they are related.

    This is a PHP version error. Gravity Forms requires PHP 5+ and you are trying to activate it on a site running PHP 4 or earlier. You need to activate PHP 5 on your site. This is the 2nd issue covered in our FAQ here:

    http://www.gravityhelp.com/frequently-asked-questions/

    Check with your web host to find out how to do this.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  7. BrettBorders77
    Member

    Sorry! I did not know the "new thread posting" etiquette. I did try to search for help but I found the usability and jumping back and forth between "gravityforms.com" and "gravityhelp.com" - to be quite confusing, even after an attempt to figure out where to go.

    Gravity Forms is working again. Thanks for your help.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.