WordPress.org

Ready to get started?Download WordPress

Forums

Organize Series
[resolved] Organize Series 2.3 upgrade messes things up (20 posts)

  1. galbaras
    Member
    Posted 3 years ago #

    After upgrading, posts are not being found for series and are listed in the wrong order under posts.

    Tried deactivating all other plugins and activating organize-series alone, then updated permalinks, but it's still not working.

    In fact, after activating the plugin, the first post is displayed for each series, but after updating permalinks, nothing is found.

    HELP!

  2. Doug Smith
    Member
    Posted 3 years ago #

    Also, the URL for the root of a series no longer works. For example http://domain.com/series/series-name (in my particular configuration) worked in version 2.2.9 but doesn't in 2.3.

  3. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Hi guys,
    I do want to make sure things get fixed. There is an automatic import routine that might be getting skipped in your update process. Try the following steps:

    1. Deactivate Organize Series.
    2. Reactivate it (the import is triggered with plugin activation)
    3. Clear any caching from any cache plugins you have installed (such as super-cache or w3-total-cache)
    4. Visit the Organize Series Options page (this will regen permalinks - shouldn't be necessary but just in case...)

    Report back here if it fixes things. If not, then tell me what version of WordPress you are using and what version of Organize Series you are using.

    Sorry for the problems guys. It just goes to show that no matter how much testing I do, sometimes things I just can't anticipate happen (incidentally, I tested this on three blogs, each on different servers, before releasing)

  4. Tuscanytrace
    Member
    Posted 3 years ago #

    I started getting the following error after upgrading to 2.3: Fatal error: Cannot redeclare this_to_int() (previously declared in /home/knowhost/public_html/wp-content/plugins/organize-series/orgSeries-utility.php:198) in /home/knowhost/public_html/wp-content/plugins/organize-series/orgSeries-utility.php on line 198

    This is the message people (multi-author site) are getting after saving or publishing a post where a photo is inserted (which is pretty much all of them). Site is http://knowabit.com . It's even happening after saving or publishing posts which are not part of a series. I haven't noticed that series navigation is messed up, though.

    I thought this might help trouble-shoot.

  5. galbaras
    Member
    Posted 3 years ago #

    Darren, not only does it not help, it makes things worse.

    I've left my caching off, deactivated and activated and then the series pages showed one post from the series (not always the first one), instead of a bunch of excerpts and posts were listed in an incorrect order (4, 5, 3, 2, 1, 6, 7, 11, 12, 10, 9, 8, 13) when viewing each post.

    After updating the options, series pages show "not found". Have a look at http://www.ronitbaras.com

    Is there a way to do the import manually? Some SQL query or standalone PHP perhaps?

  6. Tuscanytrace
    Member
    Posted 3 years ago #

    I should note that although this error happens, if the author then backs out using the URL bar to get back to the dashboard, the post *does* has updated and saved normally, but not without giving them a heart attack!

  7. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    I see that by visiting your site that the import still has not happened. If you notice the series part number isn't showing. That's the critical part (and also why the series archive pages aren't working as it affects the query for those pages). I know I sound like a broken record but are you SURE you completely deactivated Organize Series and then activated it via the WordPress Manage Plugins page? If so, then there is either something broken with that WordPress install OR there is another plugin interfering with the activation hook. The import routine hooked into the WordPress Plugin activation hooks and will fire off when Organize Series is activated on the Plugin Manage page.

    Also, what version of Organize Series did you upgrade from?

    I can try to whip up another release with a button that you can push to manually do the import routine but it probably won't be done until Wednesday.

  8. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Oh one more thing. You can check your options table for this key -> org_series_version. If the value is 2.3 then the import won't work with deactivate and reactivation. Try changing the value to 2.2 WHEN the plugin is already deactivated (this will trick the plugin to think it hasn't upgraded yet).

    MAKE SURE YOU DO A DATABASE BACKUP FIRST... it's not a good idea to go messing around directly with the database without that backup!!

  9. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Hey Tuscany, thanks for posting in here. What you are describing isn't related to the issue posted by Gal. However, it is another issue that will need to be addressed. I didn't test on a multi-author site so it may be something that slipped through. I'll add it to my bug tracker for testing and if I can narrow down the source I will release a fix asap

  10. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Quick question Tuscany. Are you using any special photo plugins (if so, they may have a this_to_int() function that's colliding with mine.

  11. Tuscanytrace
    Member
    Posted 3 years ago #

    I just found that I also had similar problems, so I followed your advice. While it did fix those problems, upon saving a post I am still getting a blank page with the message:

    Fatal error: Cannot redeclare this_to_int() (previously declared in /home/knowhost/public_html/wp-content/plugins/organize-series/orgSeries-utility.php:198) in /home/knowhost/public_html/wp-content/plugins/organize-series/orgSeries-utility.php on line 198

    The same message as before.

  12. Tuscanytrace
    Member
    Posted 3 years ago #

    Thanks for the quick response! I have Insights and WP Super Edit installed, but I wasn't using either of them when I myself created a post to test it. Neither is a photo editing plugin but allow different modes of uploading.

    And thanks for adding this to your bug fix list! I'm going to post this on our Authors Only forum, so people don't have panic attacks when their posts vanish mid-edit. I've subscribed to this thread so I hope it's something that can be sorted quickly!

    Thanks again!

  13. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    What's the photo editing plugin's name?

  14. Tuscanytrace
    Member
    Posted 3 years ago #

    I'm not using one. The only two things I have that even affect photos are Insights and WP Super Edit.

  15. Tuscanytrace
    Member
    Posted 3 years ago #

    I just deactivated Insights, cleared the cache, and tried saving a post. Still had the problem. Did the same with WP Super Edit and still having the fatal error message.

    Update: I couldn't reactivate one of the three modules on Super Edit (Theme Classes) because I got a message in the Dashboard stating it triggered a fatal error. However, even with that part disabled, it's still throwing the error message.

  16. galbaras
    Member
    Posted 3 years ago #

    Darren, you da man! I put 2.2 in the option_value and activated and all looks well. Phew!

    Your help is much appreciated. Sorry for bombarding you from so many directions, but it's my wife's blog :P

    The option_value field had nothing in it, possibly because I've deactivated and reactivated so many times, but maybe have some Plan B for when something like this happens.

    Back to blogging :D

  17. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Gal,
    Glad it's working for you now. I appreciate you posting back here your results. No problem about "bombarding" me - I understand the pain.

    You are the second person that has mentioned noticing an empty option_value field when doing the fix. I'm not sure what's going on here. But at least it gives me a direction to look for a more permanent fix.

    Plan B is always me monitoring communication channels for reports. This problem really came out of the blue because as I mentioned, everything worked absolutely fine in all my testing - but I've learned by now that my testing doesn't always catch things lol.

  18. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Tuscany, I've broken out your issue into a separate forum post to make it easier to respond and mark when it's resolved. The new post is here -> http://wordpress.org/support/topic/bug-report-fatal-error-cannot-redeclare-this_to_int?replies=1#post-1906416

  19. dannoll
    Member
    Posted 3 years ago #

    I am on WordPress 3.0.4. Currently using OS 2.2.8.

    1) From 2.2.7, I upgraded to 2.3 when it was available. Things did not work (404 and other errors). I installed 2.2.8. That appeared stable, more or less.
    2) When 2.3.1 appeared, I upgraded to it. I began getting PHP errors:
    Warning: Cannot use a scalar value as an array in .../wordpress/wp-content/plugins/organize-series/orgSeries-template-tags.php on line 45

    Warning: Invalid argument supplied for foreach() in .../wordpress/wp-content/plugins/organize-series/orgSeries-template-tags.php on line 54

    3) So, I deactivated and downgraded back to 2.2.8. The "Manage Series" page shows each series and the total number of posts in each. However, it appears as though I've lost the sequence information (for each post that is a part of a series, which # part it is).

    I have activated and reactivated to no avail. I have changed the Series version in wp_options to 2.2. Nothing seems to work in bringing back the part# information in the post editor.

    In what table are these entries?

  20. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Dannoll,
    There's been a problem with a behind the scenes import. You'll need to do the following steps.

    1. Backup your database (very important in case you need to restore because things went wrong)
    2. Upgrade your copy of Organize Series to 2.3.1
    3. Leave it deactivated (or deactivate it if it's activated
    4. Go into your database, in your wp_options table. Look for the row where the option_name field has org_series_version as it's value. Then change the option_value field to 2.2. This will trick the plugin into doing the import correctly
    5. Activate Organize Series

    Everything should be fixed after following those steps. I'm not sure why 2.3.1 didn't work for you. Your's is the first post about it not working since it's release. Thanks for taking the time to post what happened though :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic