Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

After running the automated upgrade to 3.4, I receive the message

Fatal error: Call to undefined function get_option() in /.../wp-admin/admin.php on line 32

I have renamed plugins/ to plugins2/, renamed themes/ to themes2/, created themes/ and placed twentyten in there.

Still fails with same error.

I have downloaded a copy of 3.4, and uploaded /wp-admin and /wp-includes.

Still fails with the same error.

When I try to run wp-admin/upgrade.php I receive:

"Fatal error: Call to undefined function timer_start() in /.../wp-admin/upgrade.php on line 20"

Line 32 of /wp-admin/admin.php is:

if ( get_option('db_upgraded') ) {

I tried manually inserting this option set to true in the wp_options table in phpmyadmin, but the same error remains.

share|improve this question
3  
Did you google your problem? I mean, there seem to be lots and lots of people with similar problems, and so are the solutions. –  its_me Jun 18 '12 at 2:09
    
Thanks. The first googled page said someone found files of size 0 bytes in the root directory. This was the case for me too. Happy! –  Steve Jun 19 '12 at 2:50
    
However, now I receive error "ERROR: The themes directory is either empty or doesn’t exist. Please check your installation." –  Steve Jun 19 '12 at 2:51
2  
Hi Steve, please leave an answer to what fixed you problem initially and then set-up a new question for your new error. Your new question can link back this one to show where you started. –  Brady Jun 19 '12 at 7:03
add comment

1 Answer

up vote 0 down vote accepted

The problem was caused by about 8 wordpress files in the root directory with a filesize of 0 bytes.

Uploading fresh copies of these files (from the latest version downloaded from wordpress.org) solved the initial problem.

The subsequent problem has since cleared without any indication of what steps solved it.

share|improve this answer
    
Please mark your answer as correct using the green tick –  bungeshea Dec 21 '12 at 6:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.