Forums

Help WP_Error when saving pages (60 posts)

  1. kudelka
    Member
    Posted 4 years ago #

    seriously - can anyone just point me in a direction here? anyone with this problem find a fix? this is a major bummer.

  2. kudelka
    Member
    Posted 4 years ago #

    if it helps, my server's running

    PHP version 5.2.4
    MySQL version 4.1.22-standard

  3. mlajo
    Member
    Posted 4 years ago #

    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 !!

  4. kudelka
    Member
    Posted 4 years ago #

    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?

  5. kudelka
    Member
    Posted 4 years ago #

    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.

  6. mlajo
    Member
    Posted 4 years ago #

    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!

  7. kudelka
    Member
    Posted 4 years ago #

    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?

  8. kudelka
    Member
    Posted 4 years ago #

    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...

  9. therealwb
    Member
    Posted 4 years ago #

    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.

  10. bgn79
    Member
    Posted 4 years ago #

    thank you therealwb that worked for me

  11. tonytheviking
    Member
    Posted 4 years ago #

    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.

  12. sparkcon
    Member
    Posted 4 years ago #

    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.

  13. tonytheviking
    Member
    Posted 4 years ago #

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

  14. HART-Empire-Network
    Member
    Posted 4 years ago #

    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.

  15. tonytheviking
    Member
    Posted 4 years ago #

    tried that - it didn't work for me.

    tony

  16. sheatsb
    Member
    Posted 4 years ago #

    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.

  17. sparkcon
    Member
    Posted 4 years ago #

    Reinstalled the 2.3.2 update of wordpress. same problem still exists in the taxonomy.php file.

    I am thinking more that this error is related to the wp-ecommerce plugin, which I used for only a few hours before this showed up. the plugin has been deactivated since that first day, but the problem still exists.

    now the patch from "therealwb" at line 1008 does not seem to work for 2.3.2 update.

    any ideas out there?

  18. Lloyd Budd
    Moderator
    Posted 4 years ago #

    If someone is experiencing this problem, and is willing to give me access to debug the problem on their site, please contact me lloyd @ wordpress.com .

  19. wireless
    Member
    Posted 4 years ago #

    Hi sheatsb and others I too have wp e-commerce and have the same problem with the taxonomy issues. If it is related to wp e-commerce then this is a further problem as this plugin is not very well supported by the developers. Do you think its worth posting this post to them ?

    Also how many people have this commerce plugin and are having the same problem?

  20. kudelka
    Member
    Posted 4 years ago #

    I put a post on the e-commerce site months ago, but no result. Looks like this one's in the too-hard basket.

  21. amedan
    Member
    Posted 4 years ago #

    Ok I dont know how permanent this fix is but I went back to php 4 and I all of the sudden was able to post images again. If anybody else has access to this option please try it and post here to let everyone know it is a php 4 vs. php 5 issue

  22. Mufasa
    Member
    Posted 4 years ago #

    Hi Guys, Dan here from the WP e-Commerce team.

    We've had a look into this and it appears to be a bug in WordPress. It has been identified by WordPress and it is going to be fixed in WP 2.5

    This is unfortunate for us (and our reputation) because it appears that one of the WP e-Commerce functions that utilizes taxonomy (tagging) hooks triggers this evil WordPress bug.

    What we're trying to do is modify our code so that it doesn't trigger this bug. We're aware of this now and we'll try to work it out...

  23. hanzhimeng
    Member
    Posted 4 years ago #

    Hi, Guys

    Allen here from WP e-commerce team.

    Here is a fix to that "WP-Error" error go to wordpress admin page, go to options->writing select a Default post category and save the change.

    We are still trying to find that anything in our code triggers the bug, but for the two site i have fixed, both of them have like more than 20 plugins,it is really hard to tell which plugin causes the error.

  24. Mufasa
    Member
    Posted 4 years ago #

    The two sites we looked at both also had the Admin Drop Down menu plugin installed... but there was nothing we could find to suggest it was that either.

    So in that sense we're stumped... the good news is though that Allen found an easy fix and the WordPress bug itself should be fixed in 2.5

    d

  25. kudelka
    Member
    Posted 4 years ago #

    Nice one Allen, that seems to have done the trick. I had the problem, but didn't have the Admin Drop Down menu plugin installed.

  26. aaronfay
    Member
    Posted 4 years ago #

    Don't know if this helps anyone, I had this issue when upgrading versions of WordPress on Dreamhost, the upgrader seems to have forgotten to add the tables for wp_terms, wp_term_taxonomy and wp_term_relationships.

    I had the exact same error when creating a post, and after adding the tables, the error went away...

  27. wireless
    Member
    Posted 4 years ago #

    Thank you Allen, I know which two sites you where looking at ... mine and you have done good my friend !!! . I do have 20+ plugins in the folder but only about 7 activated ...anyway the fix works great
    all the best
    G

  28. minnellium
    Member
    Posted 4 years ago #

    Many thanks hanzhimeng (Allen!) _ I was getting so depressed reading this thread and I'm so glad things came good when I got to your posts. All working for me now. Thanks.

  29. munkypot
    Member
    Posted 4 years ago #

    I got the same problem yesterday because of a reinstallation.
    I exported data with built-in wp feature.
    Backed up mysql tables.
    Wiped out the server folder.
    Reinstalled another clean wordpress (the version was the same).
    Imported back my data with wp feature.
    And I lost all my categories and tags (that was not a problem).

    After this I got that error when saving pages/articles and trying to upload data.

    It simply solved itself by publishing a post with a temp category and a temp tag.

    I hope this helps.

  30. sanislav
    Member
    Posted 4 years ago #

    HI. This has something to do with wp-ecommerce. The problem for me was that i had a product category with no name. I deleted that one and everything works just fine.

Topic Closed

This topic has been closed to new replies.

About this Topic