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.
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.
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.
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
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.
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..
@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.
I'm receiving the auth_redirect() error on download.php as well, when trying to access various parts of the plugin.
@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.
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?
@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.