WordPress.org

Ready to get started?Download WordPress

Forums

Local install XP, XAMPP functions.php error (17 posts)

  1. toekneelap
    Member
    Posted 7 years ago #

    Hi, I'm new to WordPress but generally pretty careful about following instructions. I'm trying to set up WordPress locally using XAMPP, following the instructions on this page:

    http://www.tamba2.org.uk/wordpress/xampp/

    I got to the point where I was instructed to enter http://localhost/wordpress/wp-admin/install.php into my browser (tried this first using Firefox, then IE ... same result for both). I get the following error message:

    Fatal error: Call to undefined function is_wp_error() in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 1320

    I deleted everything once and carefully went back through the setup process again. Same result.

    Any help would be greatly appreciated.

  2. whooami
    Member
    Posted 7 years ago #

    might want to delete your copy of wp-includes/classes.php and grab a fresh one out of the zip.

    or make sure you have one.

  3. toekneelap
    Member
    Posted 7 years ago #

    Thanks.

    I just checked. classes.php was there, so I went ahead and grabbed a fresh copy out of the zip file.

    Still get the same error message.

  4. moshu
    Member
    Posted 7 years ago #

    According to the error message I'd replace the wp-includes\functions.php file.

  5. whooami
    Member
    Posted 7 years ago #

    wrong moshu, that function is defined in the file I said to replace. its merely being called from inside functions.php

    you can try anything, but i highly doubt that's going to fix that error.

  6. toekneelap
    Member
    Posted 7 years ago #

    Thanks for the responses. I replace functions.php and got the same error message. I also redownloaded the Zip file to make sure I was getting a clean version, then later the .tar.gz file. Each time I extracted and then copied over a new functions.php file I got the same error.

  7. whooami
    Member
    Posted 7 years ago #

    very odd.

    If you crack open classes.php and scroll down about 1/2 way to line 380 you do see this, right?

    function is_wp_error($thing) {
    	if ( is_object($thing) && is_a($thing, 'WP_Error') )
    		return true;
    	return false;
    }

    and the file is about 22k in size?

  8. toekneelap
    Member
    Posted 7 years ago #

    Yep and yep.

  9. whooami
    Member
    Posted 7 years ago #

    i'm at a loss for what else to suggest.

  10. toekneelap
    Member
    Posted 7 years ago #

    Thanks very much whooami and moshu for your suggestions. Any chance there's anyone else who'd like to take a crack at helping me out?

    Thanks for your consideration!

  11. radowl
    Member
    Posted 7 years ago #

    I'm getting the same error message, went through the same steps to check it out. Has anyone figured out the problem?

  12. zeng
    Member
    Posted 7 years ago #

    Xp iis 5.1 download the same problem. Also wordpress2.2

  13. zeng
    Member
    Posted 7 years ago #

    Win2k3 completely above normal

  14. Moominmama
    Member
    Posted 7 years ago #

    I'm doing a new install of wordpress for a friend and am getting the same error. I've tried the suggestions here (and in other threads) and have also tried doing a fatastico install on the server to see if it was something on my end.

    I'm mentioning this just in case it's a bug that needs to be noted.

  15. radowl
    Member
    Posted 7 years ago #

    One thing to think about here is the recent upgrade. Question: are all of the people getting this error message using a Windows host server?

  16. whooami
    Member
    Posted 7 years ago #

    yes, these are all windows servers :P

  17. whooami
    Member
    Posted 7 years ago #

    the fix is here, finally for you guys! :)

    http://trac.wordpress.org/changeset/5507

Topic Closed

This topic has been closed to new replies.

About this Topic