wordpress update problem!!

  • Thread starter Deleted member 27080
  • Start date
D

Deleted member 27080

Just logged onto my wordpress site and clicked on update
then got this message
Call to undefined function wp() in /home/theoldba/public_html/wordpress/wp-blog-header.php on line 14

Cannot view site now - anyone else got this problem and know what to do??
 
F

Faevilangel

That error normally happens when an update goes wrong e.g. it either stopped or didn't install properly.

To fix this, the easiest way (imho) is to delete the files and reinstall. Backup your wp-config.php file and don't touch the database.

Install the new files and then upload your old wp-config file and it should give you WordPress back in full health.
 
  • Like
Reactions: BevT
Upvote 0
D

Deleted member 27080

Thanks
This is the reply I jst got from Wordpress forum which seems to agree with you

"Try:
- switching to the Twenty Ten theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides. - resetting the plugins folder by FTP or phpMyAdmin.
- re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.
- re-running the upgrade manually using wp-admin/upgrade.php."


I need to work through this carefully and not very confident

It is late now so will tackle this tomorrow evening - am working tomorrow!!
 
Upvote 0
Like all these kinds of things the most expedient (maybe not technically correct) thing to do is just re-install wordpress over the current installation.
The actual stuff that matters - like wp-config and content won't be over-written.

I suspect when you installed initially there was a minor bug and the upgrade has conflicted with it.
 
  • Like
Reactions: BevT
Upvote 0
D

Deleted member 27080

reinstalling wordpress seems like the simplest thing to do and I will start with that.
And that should be the latest version anyway.
General rule of thumb - should I not update like this again?
 
Upvote 0
reinstalling wordpress seems like the simplest thing to do and I will start with that.
And that should be the latest version anyway.
General rule of thumb - should I not update like this again?

I have 25 wordpress sites and in 3 years I've never had a problem just clicking the 'upgrade now' button. You should always have a recent back-up of your databases and (if you really want to be finicky) a secure back-up of wp-content but, even so, this wouldn't have stopped the upgrade failing.
 
Upvote 0
D

Deleted member 27080

Have a look in your main directory to see if it has created a file called .maintenance
If so, delete that and your site will come back up.
Do the update manualy then via FTP

There is a file called repair.php in wp-admin/main/
I have not done anything yet as I have been working today - we have a cafe and been serving Sunday Lunch!!
 
Upvote 0
D

Deleted member 27080

Just to let you know I have got my website back up and running. I followed the Wordpress.org instructions on carrying out a manual update by deleting and then uploading the files. All seems OK thank goodness. Thanks to all for advice. I don't know where I would be without this forum. :)
 
Upvote 0
D

Deleted member 27080

I have my first fail when upgrading 2 days back. Apparently there is an issue for some which will be fixed for 3.2. The details and plugin are here:

johnford.is/fixing-errors-when-upgrading-wordpress-via-ftp/

Thanks but for now I will leave well alone as all working OK, however I do not know what to do when the next update comes out??
 
Upvote 0

UKSBD

Moderator
  • Dec 30, 2005
    13,034
    1
    2,834
    I always update via FTP now, less chance of the update failing half way through.

    Interestingly, the last Wordpress update had a theme update for twentyten, anyone with an adapted (renamed theme) wouldn't have got the update unless manually updating in to the correct theme.

    Nothing important, just a powerpoint file, but you would think if they update a file in a theme folder they would publicise it better.
     
    Upvote 0
    D

    Deleted member 27080

    Well what do you know? I update to 3.1.4 and then today there is a new update to 3.2 and the automatic update did not work for this upgrade either. However at least it did not crash my site this time! So shall I go through the manual update again? is it worth it?
     
    Upvote 0
    Well what do you know? I update to 3.1.4 and then today there is a new update to 3.2 and the automatic update did not work for this upgrade either. However at least it did not crash my site this time! So shall I go through the manual update again? is it worth it?

    You obviously have a problem somewhere - I'd get in touch with your web host first to see what they say. You do have to update wordpress quite often so it's a problem you can't really ignore. Leave it too long and you become hacker heaven.
     
    • Like
    Reactions: BevT
    Upvote 0
    F

    Faevilangel

    Well what do you know? I update to 3.1.4 and then today there is a new update to 3.2 and the automatic update did not work for this upgrade either. However at least it did not crash my site this time! So shall I go through the manual update again? is it worth it?

    It must be an issue with your hosting to be honest, the upgrade files don't have the right file permissions. I have installed and updated WordPress thousands of times and only come across dodgy updates a couple of times.

    Make sure all the files have write permissions, folders should have 755 and files should be 644.

    Your theme files (wp-content/themes/theme-name/) should be 666.

    Also make sure WordPress has your correct FTP details, these can be found in wp-config.php which is in the root of WordPress.
     
    Upvote 0
    D

    Deleted member 27080

    It must be an issue with your hosting to be honest, the upgrade files don't have the right file permissions. I have installed and updated WordPress thousands of times and only come across dodgy updates a couple of times.

    Make sure all the files have write permissions, folders should have 755 and files should be 644.

    Your theme files (wp-content/themes/theme-name/) should be 666.

    Also make sure WordPress has your correct FTP details, these can be found in wp-config.php which is in the root of WordPress.
    I am not really sure I understand what you mean here. I will look at the files on the server but not sure what I am looking for........ I am using 2010 theme
     
    Upvote 0
    D

    Deleted member 27080

    Make sure all the files have write permissions, folders should have 755 and files should be 644.

    Your theme files (wp-content/themes/theme-name/) should be 666.

    Also make sure WordPress has your correct FTP details, these can be found in wp-config.php which is in the root of WordPress.

    Sorry should have checked in File manager first before commenting. Yess folders are 755 and files 644. The theme folder is 755. So how is it changed to 666?
    Also not sure what looking for in wp-config.php file?
     
    Upvote 0
    D

    Deleted member 27080

    Can I just add something else. I have been looking at the Wordpress folder on my server and in the wp-content folder there is another folder called upgrade. This has a subfolder called wordpress-3.tmp and inside that is a wordpress folder which I think is the upgrade. Why do I think this? Well the themes folder has the 2011 theme there. So is the upgrade setting up a tmp folder and why?
    Sorry to keep asking about this, I hope this thread will help others maybe :|
     
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice