WordPress.org

Ready to get started?Download WordPress

Forums

Fatal Error: Call to undefined function wp_reset_vars() (2 posts)

  1. rinoa3108
    Member
    Posted 5 years ago #

    Hello,
    I have been trying to move my site over to a new server and so i have had to set up wordpress. After the log in page i get this error message:

    Fatal error: Call to undefined function wp_reset_vars() in /clientdata/n5200-2-dynamic/b/l/blueginger.com.au/www/wp-admin/includes/media.php on line 15

    Anyone able to help out? The site needs to be up asap. Much appreciated.

  2. shidouhikari
    Member
    Posted 4 years ago #

    I've had the same problem.

    In my case it was because my plugin had a file named options.php, and when I require_once it, PHP tried to load wp-admin/options.php.

    That file uses this wp_reset_vars() function, whose file wasn't required, and that's why the error happened.

    I just renamed my options.php and fixed all require_once and it was solved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.