automatic-theme-plugin-update icon indicating copy to clipboard operation
automatic-theme-plugin-update copied to clipboard

causing a [PHP Fatal error: Call to undefined function auth_redirect()]

Open fredbradley opened this issue 10 years ago • 1 comments

Hello.

It seems that this piece of code (for the plugin update.php) is causing a Fatal Error Call to undefined function auth_redirect() in /var/my/private/path/wp-admin/admin.php on line 80

I wondered if anyone else had this issue?

Strangely the error occurs just from including the update.php file. Even if everything in the update.php is commented out! Naming conflict?

Any ideas?

fredbradley avatar Dec 10 '14 08:12 fredbradley

How is the file being included. If it's not using the full path to the file then yes, it could be trying to load the update.php from within WP itself. The file should always be included using the full path, most likely by using plugin_dir_path.

jeremyclark13 avatar Dec 10 '14 17:12 jeremyclark13