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 on preview

  1. Hello, when clicking on form preview I'm getting this error:

    Fatal error: Call to undefined function auth_redirect() in C:\wamp\www\tv2dev\content\plugins\gravityforms\preview.php on line 6

    Wordpress version 2.8.6.

    Posted 14 years ago on Wednesday January 13, 2010 | Permalink
  2. You are going to have to do a theme and plugin conflict test.

    Test for Theme Conflicts

    - Activate the default theme (Kubrick)
    - Test Gravity Forms to see if the preview works

    If it works, then there is something in your theme, most likely in the functions.php file preventing it from functioning properly.

    If it does not work then you will have to test for Plugin Conflicts.

    Test For Plugin Conflicts

    - Deactivate *ALL* Plugins
    - Activate Gravity Forms
    - Test to see if the form preview works
    - Activate each other plugin one by one, testing Gravity Forms form preview after each plugin you activate.
    - If you hit a plugin that causes it to stop working, make note of it and deactivate it and continue just to test all the plugins you are running.

    When/if you hit a plugin(s) that is causing a conflict, let us know the results and we can look into it further.

    Posted 14 years ago on Wednesday January 13, 2010 | Permalink
  3. Hi Carl,

    I was having the same problems and ended up on this thread. I've narrowed it down to the Statsurfer plugin, which upon activating it would cause the gravity form preview to throw up the Fatal Error as described above.

    Would appreciate if you could figure out what the problem could be? This is the error message i get when I use statsurfer plugin with Gravity form

    Fatal error: Cannot redeclare gf_register_widget() (previously declared in /home/forexpro/public_html/wp-content/plugins/gravityforms/widget.php:4) in /home/forexpro/public_html/wp-content/plugins/gravityforms/widget.php on line 5

    Posted 13 years ago on Wednesday October 27, 2010 | Permalink
  4. The problem seems to be related to the fact that Startsurfer also has a file named widget.php. I am not sure why, but Gravity Forms' widget.php file is getting included twice and creating the error. I was able to get around the problem by preventing the functions in that file from being re-defined. I am still searching for the root of the issue, but I have sent you an email with the workaround that should resolve the error.

    Posted 13 years ago on Wednesday October 27, 2010 | Permalink
  5. FYI - I had a similar problem, the conflict happened with the Download File Manager:

    Fatal error: Call to undefined function auth_redirect() in .../rustyeddy.com/wp-content/plugins/gravityforms/download.php on line 6

    Ironically, it was the first plugin I tried, thank goodness as I have a whole bunch of them..

    Posted 13 years ago on Thursday January 6, 2011 | Permalink
  6. @rustyeddy That doesn't make much sense considering auth_redirect() is a core WordPress function, it has to be defined because it's part of WordPress. Very odd. We'll look into it, but we aren't doing anything wrong with how we utilize this function call.

    Posted 13 years ago on Friday January 7, 2011 | Permalink
  7. I'm receiving the auth_redirect() error on download.php as well, when trying to access various parts of the plugin.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  8. @BODA82 follow the instructions above to test for plugin and theme conflicts. Are you running an old version of WordPress? If so I suggest you upgrade to the latest 3.1 release. Running old versions of WordPress is a bit like leaving your front door unlocked and advertising that you are out of town.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  9. Was already running 3.1. It was a plugin. Just for reference, the conflict was with the Download Manager plugin: http://wordpress.org/extend/plugins/download-manager/

    Any idea what the conflit might be?

    Posted 13 years ago on Monday March 7, 2011 | Permalink
  10. @rustyeddy The conflict is with the Download Managers download.php file. I just renamed it (and updated the include in download-manager.php) and it cleared the conflict up.

    Posted 13 years ago on Thursday March 24, 2011 | Permalink