WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] Updating to 3.0 breaks site (35 posts)

  1. Quest The Wordsmith
    Member
    Posted 1 year ago #

    I'm using the latest 3.6 beta 4 of WordPress. Thought you should know that updating the plugin breaks my site. Thank God I have a back up. Replaced it with the older version (2.6.3) and all is well. I'll hold off updating until this is resolved. Thanks!

    http://wordpress.org/extend/plugins/plugin-organizer/

  2. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not seeing any issues on any of the sites I've tested it on. Can you manually remove the MU plugin and try to reactivate it? I have not tested it above 3.5.1 so it may be a version problem but without an error I have no idea what the cause is.

  3. emielm
    Member
    Posted 1 year ago #

    Hi,

    I got the same problem:
    After updating the site went down and shows this error on every page:

    Fatal error: Call to a member function get() on a non-object in [path]wp-includes/query.php on line 27

    Replacing this piece of code on line 27 of query.php:
    return $wp_query->get($var);
    with

    if(!is_null($wp_query)){
        return $wp_query->get($var);
    }

    solves the problem, but it's not a neath way to do it.

    Deactivating Plugin Organizer makes the error disappear, so it's definitely PO causing this error.

    @Jeff: Can you fix this? Please keep me posted. I will have to go back to the previous version else.

    I am using WP 3.5.2 btw.

    Thanks.

  4. emielm
    Member
    Posted 1 year ago #

    Oh, and I put a fresh copy of PLuginOrganizerMU.class.php to my wp-content/mu-plugins foldern but that's no solution either.

  5. Quest The Wordsmith
    Member
    Posted 1 year ago #

    This is the error I get:

    Fatal error: Call to a member function get_page_permastruct() on a non-object in [path]/link-template.php on line 271

  6. Quest The Wordsmith
    Member
    Posted 1 year ago #

    Instead of updating the plugin, I uninstalled it then did a fresh download of ver 3 and its working now.

  7. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    So Quest you just did a fresh install of the files right? Not the database settings? It seems like it is having an issue removing the old files or something.

  8. emielm
    Member
    Posted 1 year ago #

    Sorry, but that's not working for me.
    I deactivated and deleted the plugin from within wp. Checked if it was completely deleted via ftp and also deleted the pluginorganizerMU.class.php from the mu-plugins folder. THen I uploaded version 3. Even before ectivating I got the same error message on the website:

    Fatal error: Call to a member function get_page_permastruct() on a non-object in [path]/link-template.php on line 271

    I had to activate and deactivate the plugin again to get rid of the error message.

  9. Quest The Wordsmith
    Member
    Posted 1 year ago #

    @Jeff - yup, did a fresh install. Don't even know where the database files are. Technically, this is what I did:

    1. Reverted back to old version
    2. Uninstalled old version in WP
    3. Downloaded ver 3
    4. Activated ver 3
  10. emielm
    Member
    Posted 1 year ago #

    I re-installed also the way @Quest did. Thought I got it working afterwards, but it appears that Selective Plugin Loading is disabled by default then. Since it's the main function of this plugin, I enabled it and the site went down again, showing the same error message as I posted twice above!

  11. SEO Marketing Media Elite
    Member
    Posted 1 year ago #

    Warning: Invalid argument supplied for foreach() in /home/mainfile/public_html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /home/mainfile/public_html/wp-includes/query.php on line 1702

    Warning: Cannot modify header information - headers already sent by (output started at /home/mainfile/public_html/wp-includes/query.php:1702) in /home/mainfile/public_html/macoris/plugins/wp-splitscreen/core.php on line 13

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mainfile/public_html/wp-includes/query.php:1702) in /home/mainfile/public_html/macoris/themes/Responsive/library/functions/widgets/google_map.php on line 2

    Jeff,

    Can you tell me how to fix this or maybe how to download the old 2.6.3 as I can't find it anywhwere. I would rather use the working copy and just reconfigure the plugin again as it has messed my whole site up. I am running the 3.5.2 WP version.

    Edit: I had this in the beggining: Fatal error: Call to a member function get_page_permastruct() on a non-object in [path]/link-template.php on line 271

    Then I deleted the line and saved it, then pasted back line 271 and it reset itself.

    Thank you for any input. I truly appreciate this plugin and the time you have put into it.

  12. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Delete the entire plugin. Including the PluginOrganizerMU.class.php file in the mu-plugins folder. Then access your admin to make sure it is working again. Then either go download the plugin and ftp it to your site or use the admin to get a fresh copy from wordpress.org. Then reactivate the plugin.

  13. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    emielm,
    So you can get it to work without the Selective Plugin Loading turned on? Can you go to the settings page and tell me if there is a message in red text at the top of the page? Or at the top of any of the meta boxes?

  14. SEO Marketing Media Elite
    Member
    Posted 1 year ago #

    Jeff,

    This > "Delete the entire plugin. Including the PluginOrganizerMU.class.php file in the mu-plugins folder. Then access your admin to make sure it is working again. Then either go download the plugin and ftp it to your site or use the admin to get a fresh copy from wordpress.org. Then reactivate the plugin. " has been done 4 times now.

    It still breaks the website. Where can I get a download from your previous version? Thank you..

  15. Mike Shupp
    Member
    Posted 1 year ago #

    After activating the 3.0 version of the plug-in, I just get a blank screen, cannot do anything.

    I upgraded to WP 3.5.2 this morning before trying to upgrade Plug-in Organizer. I've tried all the ideas here and other thread several times, no luck yet.

  16. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    emielm,
    I've changed a lot about how the backend works. I'm using get_posts now instead of all custom queries. I'm wondering if that is why you are getting the get_page_permastruct() error. I have tested it on 3.5.1 and 3.5.2 both without an issue. Are you running multisite?

  17. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    You can download the old version from here http://wordpress.org/plugins/plugin-organizer/developers/.

  18. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Mike,
    Did you get an error message in your logs?

  19. Mike Shupp
    Member
    Posted 1 year ago #

    Do you mean in error_log in the wp root folder? No, doesn't look like it

  20. emielm
    Member
    Posted 1 year ago #

    emielm,
    So you can get it to work without the Selective Plugin Loading turned on? Can you go to the settings page and tell me if there is a message in red text at the top of the page? Or at the top of any of the meta boxes?

    @Jeff: There's no error message at the top of the settings page and I'm running a single install, no multisite.

  21. emielm
    Member
    Posted 1 year ago #

    Jeff, I installed the old version 2.6.3 again and that still works fine, including selective plugin loading. Strange thing is that the url admin (all arbitrary urls) are gone from the install now, while they were visible in the settings screen of the new version (couldn't edit or delete them in the new version, but they were visible though) even after manually deleting the new plugin completely and installing again.

    Don't know if this will help you in any way, hope so though! ;)

  22. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    All of the data moved into the post meta table. So the tables from the old version no longer exist.

  23. Mike Shupp
    Member
    Posted 1 year ago #

    I've currently reinstalled v2.6.3, thanks for link.

    When I again try to update to 3.0, through the WP admin panel, I first get the screen that says update successful (something like that), but with my very next click to go anywhere else in admin, I get blank white screen again, and can do nothing else...

  24. Mike Shupp
    Member
    Posted 1 year ago #

    After deactivating all plug-ins except Plugin Organizer v2.6.3, I was then able to successfully update, through the WP admin, to Plugin Organizer v3.0, and then successfully reactivate all other plug-ins without issue.

    I did have some URLs entered in the previous version; did this update account for them?

  25. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    It should have moved all of those to the new custom post type plugin filters. Now that you have that working I have just released a new version. Lol. There was an issue with fuzzy url matching in version 3.0. Version 3.0.1 fixes it.

  26. Mike Shupp
    Member
    Posted 1 year ago #

    OK, thanks. I updated to 3.0.1, and had the same experience of blank screen afterwards, unable to do anything. I happened to have site admin also open on another machine, which, after I returned to it, functioned normally and reflected the 3.0.1 update, just fyi...

  27. Mike Shupp
    Member
    Posted 1 year ago #

    Just fyi, same blank screen issue after 3.0.4 update (the 2 previous updates installed without issue). Deactivating all plug-ins allowed a successful install of 3.0.4 and a reactivation of all plug-ins.

  28. cmonster
    Member
    Posted 1 year ago #

    I just upgraded and got the same error:

    Fatal error: Call to a member function get_page_permastruct() on a non-object in /home/xxxxxx/xxxxxx.com/wp-includes/link-template.php on line 271

  29. Glen Thomson
    Member
    Posted 1 year ago #

    I've had the same issue, just updated Plugin Organizer on three of my blogs (3.5.1 and 3.5.2), all resulted in the following error:

    Fatal error: Call to a member function get_page_permastruct() on a non-object in /home/gladbags/public_html/photomagnify.com/wp-includes/link-template.php on line 271

    Was able to resolve by deleting the plugins from each site using Filezilla and re-installing from the WordPress plugin directory.

    Good luck getting it sorted, hope it's an easy fix!

  30. Glen Thomson
    Member
    Posted 1 year ago #

    Update: It seems my problem was not resolved quite so easily.

    All three sites then proceeded to crash despite having their plugin files and MU php files removed.

    I tried to upload the latest plugin files again via ftp to see if it would allow deactivation but the sites still crashed.

    I then deleted those files but accidentally left the empty 'plugin organizer' directory in my plugins folder.

    The site then loaded fine (!). I deleted that empty directory and everything seems okay. I also repeated the process with the other two sites using an empty 'plugin organizer' directory and they too now work fine.

    I'm not sure I understand why this works? Does WordPress automatically deactivate a plugin with no files in its directory?

    Anyway I'm back up and running. I hope this is useful to someone in the same position rather than just confusing. Perhaps it will be both!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.