WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] Updated to latest version admin panel crashed (17 posts)

  1. jmusgrave918
    Member
    Posted 1 year ago #

    Store URL: http://www.thepromodaddy.com
    WordPress version: 3.5.2
    WP e-Commerce version: 3.8.12
    Gold Cart version: N/A
    Theme: Dynamix 3.0.4

    I did this: Updated plugin to the latest version

    when i loaded the admin panel of wordpress i got this: Fatal error: Call to undefined function get_current_screen() in /home/job3513/public_html/wp-content/plugins/wp-e-commerce/wpsc-admin/display-items.page.php on line 493

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. Justin Sainton
    Member
    Plugin Author

    Posted 1 year ago #

    How odd - someone else reported this as well.

    If you look at the actual code though - that's inside a function that hooks into 'pre_get_posts'. Looking at the Codex article for get_current_screen(), it should be safe to run on any hook after admin_init (pre_get_posts fires much further down the line).

    Can you give us any other information about other plugins you have running? If you can revert to the default WordPress theme and deactivate all other plugins - that might be a helpful step in resolving the issue.

  3. jmusgrave918
    Member
    Posted 1 year ago #

    i renamed my theme folder in order to revert back to twentyten. I can no access admin panel,

    other plugins running:

    anyfont
    revolution slider
    visual composer

    i have also posted in my themes support forum, waiting to hear back.

  4. bowerstech
    Member
    Posted 1 year ago #

    I upgraded to the new version and experienced the same thing as well. The site was up for website visitors but the entire WP Admin site has crashed with the same error. I had to ftp into the site, and delete the WP e-commerce directory under /plugins/ before I could log back into WP Admin.

    Fortunately we are still building the site and don't need the ecommerce functionality yet. Please advise when the issue has been resolved.

    Using the Alyeska theme. Plugins: Akismet, Fast Secure Contact Form, Google XMl Sitemaps, Spammer Blocker and StatPress. Running latest 3.5.2 of WP.

  5. white_rabbit
    Member
    Posted 1 year ago #

    I'm having the same problem too.

    Plugins: adsense-made-easy, akismet, all-in-one-seo-pack, contact-form-7, content-aware-sidebars, content-slide, display-widgets, easing-slider, google-analytics-for-wordpress, google-sitemap-generator, jquery-slider, randomtext, search-everything, share-this, simple-tags, slider-pro, strx-simple-sharing-sidebar-widget, sugar-slider, vslider, wp-db-backup, wp-e-commerce, yet-another-related-posts-plugin

  6. optimus999
    Member
    Posted 1 year ago #

    This happened to me today. Actually this ecommerce plugin has created many problems for us. Does anyone have a a fix for this.

  7. jmusgrave918
    Member
    Posted 1 year ago #

    reverted back to 3.8.11.1 via FTP and I am back up and running, Hopefully this will get sorted out soon!

    Link to previous versions of wp e-commerce: http://wordpress.org/plugins/wp-e-commerce/developers/

  8. bowerstech
    Member
    Posted 1 year ago #

    Oh boy, why didn't I think of that? Thanks for the fix!

  9. Ron Kelleher
    Member
    Posted 1 year ago #

    jmusgrave,

    Thanks for the tip!

    I had the same problem after updating the wp-ecommerce plugin. My wp-admin wouldn't come up, but the site was ok. When we disabled the plugin wp-admin worked, but the site went down! We reinstalled the plug-in which crashed wp-admin again but at least the site is functional. Later today I will get some more help to reinstall the 3.8.11.1 via FTP as you suggested.

  10. bowerstech
    Member
    Posted 1 year ago #

    Any news on an update that fixes this issue?

  11. Justin Sainton
    Member
    Plugin Author

    Posted 1 year ago #

    Hey guys,

    I've tried to replicate the issue in as many environments as possible (Outside of the obvious situation of an old version of WP where the function actually doesn't exist) - I'm still not able to replicate it.

    If anyone is currently running 3.8.12 with a whitescreening admin, I'd be happy to help debug and see if we can find a solution. Email me with a set of admin credentials at justinsainton at gmail dot com.

  12. bowerstech
    Member
    Posted 1 year ago #

    Hi Justin, I just emailed ya.

  13. Justin Sainton
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Bryan, that was really helpful.

    For everyone experiencing this issue, if you're able to edit the plugin, open up the /wpsc-admin/display-items.page.php file, go to Line 490, and modify it to look like this

    if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || ! $query->is_main_query() )

    That should fix your issues. In fact, that was in our master branch on GitHub about a month ago - so I'm still a bit baffled at how we missed it in the 3.8.12 release - also baffled as to why some people experience this, and others (myself included) do not.

    Either way, that fix should do it for you! Let me know if it doesn't.

  14. bowerstech
    Member
    Posted 1 year ago #

    Thanks for the superior work Justin!

  15. jmusgrave918
    Member
    Posted 1 year ago #

    Thanks Justin! Great Job!

  16. Larry McCauley
    Member
    Posted 1 year ago #

    WordPress version: 3.5.2
    WP e-Commerce version: latest as of date (9th July 2013)
    Gold Cart version: N/A
    Theme: Akita

    I have tried applying your fix, Justin, but alas, the admin panel remains resolutely crashed.

    Site itself is unaffected.

    I remove the ecommerce folder, admin panel returns. Replace, crashes.

    Are there any other suggestions out there please?

  17. Justin Sainton
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Larry,

    Try this code instead:

    if ( ! is_admin() || ( is_admin && ! $query->is_main_query() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )

    Let me know if that helps - otherwise, feel free to email me and I'll be happy to take a look.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.