WordPress.org

Ready to get started?Download WordPress

Forums

WP-Optimize
[resolved] Transient Options - Removes Category ? (17 posts)

  1. Dark_Fox44
    Member
    Posted 8 months ago #

    I have been using this plugin for a long time, today i selected to use the remove transient option, this had the side effect of removing one of my categories, the category disappeared, i luckily had a backup from 4 days ago, not ideal since i have been updating links to images within posts but better than nothing.

    I wonder if you can look into this issue as otherwise it's a great plugin.

    http://wordpress.org/plugins/wp-optimize/

  2. Dark_Fox44
    Member
    Posted 8 months ago #

    I should add that i had no problems before the last update, i have not installed any other plugins recently or changed settings on any other plugin, i do have Cloudflare enabled, that was the only recent addition but that was days ago, Cloudflare wouldn't cause a loss of a category, the issue happened after using WP Optimize today.

    I use the remove post revisions, remove auto drafts, remove transient options, remove orphaned post meta, remove unused tags and optimize the database, i don't have any automatic scheduling switched on.

    I do have the WordPress Cron disabled using htaccess but that hasn't been an issue in the past.

    I thought it a transient issue simply because everything worked before that feature was added, it might also be a new revision to the optimize section, i will do a backup before using the plugin in future just in case, i do value the plugin a lot and appreciate your work on it.

  3. PPRNNews
    Member
    Posted 8 months ago #

    I've ran into the same problem. I have a few parent categories that disappeared, and I can't find the subcategories in the category list in the Post subsection.

    Any suggestions?

  4. ruhanirabin
    Member
    Plugin Author

    Posted 8 months ago #

    I do not run any query on categories .. unless your categories are inside transient options.. The only thing I can think of is remove post meta or unused tags options.. those queries has joins but still none of them actually touching any categories...

  5. Dark_Fox44
    Member
    Posted 8 months ago #

    Sounds like it was the post meta option for me then, can't be the tags.

  6. ruhanirabin
    Member
    Plugin Author

    Posted 8 months ago #

    postmeta cleanup is touching - wp_postmeta table
    tags cleanup touching - wp_terms table
    transient cleanup is touching - wp_options table

    in my understanding .. terms table may contain the categories but i am sure i am using the filter 'post_tag' as filter.. is it possible that your blog has categories setup as tags?

    I would recommend not to run the - Remove unused tags - option. Since it is the only query that is touching wp_terms table (where the categories are)

  7. Dark_Fox44
    Member
    Posted 8 months ago #

    I'll check later, what i might do is a backup of the site and then try deleting the tags, that way if it happens again i can come back and tell you for sure and just run the backup to restore the site.

  8. Carlos Revilla
    Member
    Posted 8 months ago #

    Same issue here. wp-optimied removed two child categories.

    Carlos

  9. Dark_Fox44
    Member
    Posted 8 months ago #

    I have just done a test.

    It was the remove unused tags that did the damage, once again it removed the exact same category, the strange thing is that i don't think i am using tags as a category in WordPress.

    The transient options removal and postmeta removal is fine and does not affect the site, it was the tags that did the damage.

  10. dfumagalli
    Member
    Posted 8 months ago #

    Confirming that the tags optimization leads to categories deletion. I had to restore the wp_terms table from backup else all my posts would be blank.

  11. antares_chan
    Member
    Posted 8 months ago #

    Same here.
    Glad to know it was that so I can prevent it from happening to my other (more loaded) sites.

  12. BND83
    Member
    Posted 8 months ago #

    This is so frustrating. I've lost many categories. Now I have to run a test restore version of my site to figure out how many and which categories are gone. It's going to take my whole life to reinstate them all.

    Massive glitch for this plugin. Giving 0 stars.

  13. ruhanirabin
    Member
    Plugin Author

    Posted 8 months ago #

    Not all people are experiencing the same problem as you guys have.

    But I guess, if I see enough problem reports, I will disable that tag cleanup feature.

    Meanwhile, this is the reason - some of the new features were marked red. I was unable to replicate this situation on any of my sites.

    @BND83, I surely hope it won't take your whole life. And this plugin is experimental. Also under GPL, I do not provide warranty for these. All the new feature are marked RED as caution. Sorry it happened to you. Thanks for the 0 Stars anyways.

  14. ruhanirabin
    Member
    Plugin Author

    Posted 8 months ago #

    get updated to the latest version 1.5.6 - tags cleanup is disabled and removed.

  15. dfumagalli
    Member
    Posted 8 months ago #

    There's a slight imprecision in your patch notes:

    "Unused Tags cleanup" option made a problem on some WordPress sites that it deletes empty categories. Since I am unable to replicate this problem. I am making this option disabled.

    The above is not true.

    My categories are full and they get deleted none the less.
    They just happen to be the last "leaf" in a hierarchy, maybe the empty-ness test only manages the top level?

  16. ruhanirabin
    Member
    Plugin Author

    Posted 8 months ago #

    I have created 3 different sub categories to test it out..
    tested as eg.

    Cat 1 (empty)
    - Cat 2 (empty)
    -- Cat 2-A (empty)
    - Cat 3 (contains one post)

    None of them got deleted. that made me think - it is not about top level categories. The query uses a inner join to find out "post_tag" from taxonomy which is counted zero. So the possibility for this is .. categories returning as post tags which are empty so they gets deleted.

    I am open to your code help @dfumagalli :) .. you can email me at plugins(at)ruhanirabin.com - We can discuss about the sql query. Thanks :_)

  17. Dark_Fox44
    Member
    Posted 7 months ago #

    That is also true of me, my categories are full, the one that got deleted had many posts within, this is my category that got deleted, why did it get deleted and not the other ones, i do not have any tags that are different to other categories as far as i am aware.

    The only other thing which is slightly different is i have one sub category linked to this one, i am including the link below, maybe there is something in the view source code that would help you out.

    http://www.darkrealmfox.com/film_reviews/blu_ray/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.