• Has anyone seen this problem. I get a

    “Fatal error: Cannot use object of type WP_Error as array in /home/public_html/wp/wp-includes/taxonomy.php on line 1010”

    whenever I save or edit a Page in WordPress 2.3. I can edit posts without a problem but the error occurs whenever I save/edit a Page.

    I have uninstalled all my plugins, re-installed wordpress and deleted all my blogroll but the problem persists!

    Thanks to whoever can help.

Viewing 15 replies - 31 through 45 (of 59 total)
  • kudelka

    (@kudelka)

    if it helps, my server’s running

    PHP version 5.2.4
    MySQL version 4.1.22-standard

    Mladen

    (@mlajo)

    well like I said before.. try to change all your tables prefix names.. and then run new installation of WP. when your site is running then rename your old tables and copy them over your new tables.. but not all, just post, links, etc… You’ll lose categories and maybe some other data.. so be sure to know what are you doing.. and please be smart and backup everything !!

    kudelka

    (@kudelka)

    Could you be a little more specific? I’m totally with you on the backing up part.

    The procedure is as I read it:

    1. change all your tables prefix names.

    not sure what table prefix names are or how to change them. do you mean like change wp_posts to ab_posts?

    2. run new installation of WP.

    you mean delete files and reinstall like when upgrading?

    3. when your site is running then rename your old tables and copy them over your new tables.

    rename them to what? how does this differ from changing prefix names?

    4. but not all, just post, links, etc…

    what is etc? what do I leave out?

    5. You’ll lose categories and maybe some other data.

    Yikes, what other data?

    kudelka

    (@kudelka)

    Think I’d better get some sleep or I’ll break something. If anyone can help clear up the fuzzy areas in the plan, and perhaps avoid losing data, it would be much appreciated.

    Mladen

    (@mlajo)

    1. yes… wp_post to bakup_post etc..
    2. Just like you do first time install
    3. rename back.. old tables backup_post to wp_post
    4. I did step 3 with this tables..
    wp_comments
    wp_links
    wp_postmeta
    wp_posts
    wp_users
    5. I lost all my categories.. and I don’t remember what happen with user .. But I had only two so that didn’t bother me..

    I know this is not very easy solution.. but it work.. still waiting WP team to find some better solution!

    kudelka

    (@kudelka)

    Has anyone got a better solution? I’m getting the error when saving posts now!

    EDIT: That seemed to be a one-off, I can post again, though linking to an external image seems a bit hit and miss. Sorry to keep bumping this thread, I’m thrashing around in the dark a bit.

    Would reverting to an older version of wordpress help or would that really stuff things up?

    kudelka

    (@kudelka)

    I know there are tumbleweeds blowing through this thread, but if anyone’s interested in getting to the bottom of this, here’s another piece of information…

    I allowed comments in my pages and just discovered they’re no longer showing. There’s also no entry box for comments on the pages, though the box for “allow comments” is still ticked. The comments still show in the “edit comments” panel.

    Any ideas still gratefully accepted…

    therealwb

    (@therealwb)

    I’m not sure if this will break anything else, but adding the following:

    if (!$term) continue;

    at line 1008 in /wp-includes/taxonomy.php fixed the problem for me.

    Hope that helps.

    thank you therealwb that worked for me

    Thanks to therealwb. That fix worked for me.

    I was having the error message whenever I posted media files -mainly video and audio files for my band. Your fix has made my life MUCH better.

    Your fix greatly relieved some frustration. However now I see we have category issues. New ones keep getting created with only numbers assigned. The more I try to work with fixing it, the worse it gets.

    er…same here. thought it had worked, but now i’m having the category issues too…. help!

    I’m not sure if this helps anybody or not, or if this is a solution – but suddenly – I have been receiving this error on my 2.3.1 blogs

    Fatal error: Cannot use object of type WP_Error as array in /home/health/public_html/obesity/wp-includes/taxonomy.php

    In all cases, I was blogging in IEv7 . and when I tried to see if the post might have posted, I went back into the write and saw it as a “Draft” and “Other Post”. When I went to Manage .. I saw that it actually did post – and had a weird user name attached to it – ending in .ru of course – and uncategerized

    I went into my users and deleted all the users/subscribers and attributed their posts back to me (admin). I went into the WRITE and loaded each of the drafts, and deleted them .. & then back to the Manage and resaved the uncategorized post that did manage to post, now attributed back to my user name. In my general options, I deactivated the option that anybody could register.

    So it was fixed. I tried posting a second post – and it worked no problem.

    Quite weird.

    tried that – it didn’t work for me.

    tony

    one potential fix: when saving he post, look at the category box and make sure that at least uncategorized is checked.

    when i did that, it worked for me. i think it has something to do with the way wp-ecommerce assigns product categories, since it didn’t start for me until after i installed the plugin.

Viewing 15 replies - 31 through 45 (of 59 total)
  • The topic ‘Help WP_Error when saving pages’ is closed to new replies.