WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] Broken in WordPress 3.7 (40 posts)

  1. Graham
    Member
    Posted 9 months ago #

    Fatal error: Call to undefined function wp_get_current_user() in /wp-includes/user.php on line 215

    Deactivating the PluginOrganizerMU.class.php in the mu-plugins directory fixed it.
    Because of this the plugin no longer works.

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

  2. ashtonej
    Member
    Posted 9 months ago #

    Same here. Had to downgrade back to 3.6.1 after a couple of hours of panic. In my case I got a broken upgrade and the whole WP site stopped-

  3. xerman
    Member
    Posted 9 months ago #

    Same here too, I disabled the plugin on order to upgrade to wordpress 3.7

  4. menathor
    Member
    Posted 9 months ago #

    Same here

  5. ussvisioninc
    Blocked
    Posted 9 months ago #

    Same here ... and damn I need this plugin. It's a 5-star +++ plugin, but agreed with all of you ... broken in 3.7.

    I just get a blank white screen.

    The author is really good with updates, so I'm sure he'll be on it.

  6. Eliot Akira
    Member
    Posted 9 months ago #

    I didn't have a fatal error, but after update to WordPress 3.7, all my posts and pages stopped displaying anything - empty <head> and <body>. Tracking down the problem, it turned out Plugin Organizer was causing it somehow. After disabling it, the site is back to normal.

    Too bad, I really liked the features of this plugin. I hope there's a fix on the way!

  7. Robbie_berns
    Member
    Posted 9 months ago #

    Yup, same problem.

  8. derrickmg
    Member
    Posted 9 months ago #

    same here, I hope someone sees this soon.

  9. astrasuite
    Member
    Posted 9 months ago #

    I have the same problem as Eliot Akira above.

    After updating to WordPress 3.7, all blank screen for website.

    The fatal error reported was in my server's error log.

    Luckily, admin is still ok. So was able to disable all plugins, turned on one by one and found that Plugin Organizer was the problem.

    Anyway, reverted back to WordPress previous version, Plugin Organizer too good and essential to disable. Waiting for Plugin Organizer to get fixed before updating WordPress.

  10. BobbySlingShot
    Member
    Posted 9 months ago #

    Have the same problem here!

    Fortunately I tested the upgrade on my local machine and it seems whats causing is actually the file PluginOrganizerMU.class. I still have all my plugins enabled including the Plugin Organizer (even though is not working, since it needs PluginOrganizerMU.class to work).

    The solution was to rename the mu-plugins folder to something else.

    I've not going to upgrade wordpress until this is fixed, since this plugin is essential for me. :)

  11. jumpmobi
    Member
    Posted 9 months ago #

    for a temporary workaround in case you updated without backing up! LOL

    try linking directly to /wp-includes/pluggable.php in /wp-content/mu-plugins/PluginOrganizerMU.class.php

    ie at line 11 change the following from:

    License: GPL2
    */

    to:

    License: GPL2
    */
    require_once(ABSPATH . 'wp-includes/pluggable.php');

    works for me at least until OD can update this awesome plugin!

    HTH

  12. Graham
    Member
    Posted 9 months ago #

    Thanks Jumpmobi, unfortunately your temporary fix didn't work for me.
    I still get the blank page and Fatal error: Call to undefined function wp_get_current_user() in /wp-includes/user.php on line 215
    For now I'm just renaming the mu-plugins directory back to "mu-pluginsBAK" to return access to my site/admin and then disabling the plugin until Jeff releases a fix.

  13. jumpmobi
    Member
    Posted 9 months ago #

    @graham - weird it didn't work... some of my other projects the site wont work without this plugin so have no option but to press forward...

    if it helps you can see exactly what i did here: http://screencast.com/t/QtLocV3uCtYd

    hth

  14. BobbySlingShot
    Member
    Posted 9 months ago #

    Thanks for the solution jumpmobi!

    It worked for me :).

  15. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    I'm working on a fix for this. It has not been tested with wordpress 3.7 since I have been really busy working on other projects. As soon as I get it figured out I'll let you know.

  16. ussvisioninc
    Blocked
    Posted 9 months ago #

    jumpmobi, your fix absolutely worked for me!

    All I did was activate it, delete the pluginorganizer at the bottom o the settings >> plugin organizer page. Then I moved it to the MU plugins folder.

    Then I added this line before any code:

    require_once(ABSPATH . 'wp-includes/pluggable.php');

    Just as you stated, and everything is back to normal. Thanks!

  17. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    So the problem is that the developers have changed the WP_query object so that the WP_query->get_posts function no longer uses a global variable for the user id and it now calls the get_current_user_id function which calls wp_get_current_user which only exists after pluggable.php has been included. If I include pluggable.php its going to make the functions in pluggable.php static and will no longer be able to be overridden. Anyone got a suggestion?

  18. Hristo SiteGround
    Member
    Posted 9 months ago #

    Have you tried using get_user_by ?

  19. astrasuite
    Member
    Posted 9 months ago #

    @jumpmobi, perfect, thanks !

    Great work too on the video :)

  20. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    @Hristo SiteGround
    I can't modify the wordpress core so I can't change the function that is called from within the wp_query object. Its looking like I'm going to have to override the 3 user functions inside of pluggable.php which will cause plugin conflicts with any plugin that tries to do the same. For what plugin organizer is doing there is no need to use the user id so I wish the developers wouldn't have done this.

  21. Native Imaging
    Member
    Posted 9 months ago #

    Definitely not clicking the upgrade button at all. Happened to one of my sites. @Jeff, thank you for this plugin, I think's it probably one of thee most important plugins i've found. I will message the WP developers personally.

  22. Radices
    Member
    Posted 9 months ago #

    This works as a temporary work around on my sites.

    You need to add this line to the top of your wp-includes/CAPABILITIES.PHP file -

    require_once ('pluggable.php');

    so it looks like this -

    <?php
    
    require_once ('pluggable.php');
    /**
     * WordPress Roles and Capabilities.

    Question: You only need the mu-plugins/PluginOrganizerMU.class.php to re-order loading right? So will the filters still work?

  23. ashtonej
    Member
    Posted 9 months ago #

    Sounds like some bad news on the WP core system front.

    I'm sticking with 3.6.1 until further notice. Without plugin organizer google will get very bored half way down my pages and f off without indexing.

    I had to do some radical tweaking on the theme I use as well "X2" by Themekraft. X2 generates an inline css for each page based on I'm not sure what yet. I had to add code in to make it create and call external css files to make the code about 7 pages shorter.

    Anyone know of a decent theme that doesn't generate humungous inline css?

  24. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    Adding the following code at line 11 of the PluginOrganizerMU.class.php file in your mu-plugins folder will get rid of the error but may cause other problems.

    require_once( ABSPATH . WPINC . '/pluggable.php' );

    The pluggable.php file has several functions in it that can be overridden by plugins. If you are using any plugins that need to override the functions within it those plugins will most likely fail because they will not be able to redefine the functions. I would suggest trying this if you are in need of an immediate fix. I will continue to work on a permanent fix but using pluggable.php in this way is not recommended.

  25. Kim Parsell
    Volunteer Moderator
    Posted 9 months ago #

    Modifying core files is not the correct thing to do.

    The plugin author needs to update the plugin. Please read the guidance posted by @Otto42 here: http://wordpress.org/support/topic/httpwordpressorgpluginsplugin-organizer-breaks-37

  26. Daniel Kanchev
    Member
    Posted 9 months ago #

    You can check the following changeset for more details about the problem:

    http://core.trac.wordpress.org/changeset/25930

  27. Daniel Kanchev
    Member
    Posted 9 months ago #

    The issue has been resolved in this nightly build:

    http://make.wordpress.org/core/2013/10/26/tonights-3-7-nightly-build-is-marked-wordpress-3-7-1/

    WP 3.7.1 should drop over the weekend.

  28. Radices
    Member
    Posted 9 months ago #

    The upgrade error might have be resolved but will the plugin still work with the changes to the WP_query object?

  29. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    This does not fix the problem with plugin organizer. There is still a call to get_current_user_id inside of the wp_query object.

  30. Jeff Sterup
    Member
    Plugin Author

    Posted 9 months ago #

    Sorry. Need my coffee before my eyes work. Yes this will fix plugin organizer.

Reply »

You must log in to post.

About this Plugin

About this Topic