Support » Plugin: Sunshine Photo Cart » Entire admin is now blank

  • Resolved Jason Robie

    (@jrobie23)


    Since our most recent round of updates to the site, the entire admin area of Sunshine is empty. Just a blank page on all of the tabs.

    I tried disabling all other plugins, but that didn’t help anything.

    PLEASE tell me your plugin is supported on PHP 7!!!!!

Viewing 15 replies - 1 through 15 (of 18 total)
  • PHP7 is supported. You would need to enable error logging: https://www.sunshinephotocart.com/docs/enabling-error-logging/

    Thread Starter Jason Robie

    (@jrobie23)

    Thank you for the speedy reply! Hope you had a great vacation! 🙂

    Here’s the debug log (nothing is showing on the admin side)

    [07-Aug-2018 02:26:15 UTC] PHP Notice:  Undefined variable: campaign_monitor_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 139
    [07-Aug-2018 02:26:15 UTC] PHP Notice:  Undefined variable: campaign_monitor_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 142
    [07-Aug-2018 02:26:15 UTC] PHP Notice:  Undefined variable: mailchimp_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 182
    [07-Aug-2018 02:26:15 UTC] PHP Notice:  Undefined variable: mailchimp_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 185
    [07-Aug-2018 02:26:15 UTC] PHP Deprecated:  Non-static method SF_Format_Options::settings_options_format() should not be called statically in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php on line 460
    [07-Aug-2018 02:26:15 UTC] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php:28
    Stack trace:
    #0 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(460): SF_Format_Options::settings_options_format(Array)
    #1 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(493): SF_Settings_API->template_body()
    #2 [internal function]: SF_Settings_API->init_settings_page('')
    #3 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
    #4 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #5 /nas/content/live/alpineimage/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /nas/content/live/alpineimage/wp-admin/admin.php(224): do_action('admin_page_suns...')
    #7 {main}
      thrown in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php on line 28
    [07-Aug-2018 02:26:16 UTC] PHP Notice:  Undefined variable: campaign_monitor_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 139
    [07-Aug-2018 02:26:16 UTC] PHP Notice:  Undefined variable: campaign_monitor_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 142
    [07-Aug-2018 02:26:16 UTC] PHP Notice:  Undefined variable: mailchimp_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 182
    [07-Aug-2018 02:26:16 UTC] PHP Notice:  Undefined variable: mailchimp_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 185
    [07-Aug-2018 02:26:16 UTC] PHP Notice:  screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /nas/content/live/alpineimage/wp-includes/functions.php on line 3856
    
    [07-Aug-2018 02:26:16 UTC] PHP Deprecated:  Non-static method SF_Format_Options::settings_options_format() should not be called statically in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php on line 460
    [07-Aug-2018 02:26:16 UTC] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php:28
    Stack trace:
    #0 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(460): SF_Format_Options::settings_options_format(Array)
    #1 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(493): SF_Settings_API->template_body()
    #2 [internal function]: SF_Settings_API->init_settings_page('')
    #3 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
    #4 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #5 /nas/content/live/alpineimage/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /nas/content/live/alpineimage/wp-admin/admin.php(224): do_action('admin_page_suns...')
    #7 {main}
      thrown in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php on line 28
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  Undefined variable: campaign_monitor_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 139
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  Undefined variable: campaign_monitor_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 142
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  Undefined variable: mailchimp_api_key_desc in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 182
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  Undefined variable: mailchimp_lists in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/addons/newsletter/index.php on line 185
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /nas/content/live/alpineimage/wp-includes/functions.php on line 3856
    [07-Aug-2018 02:26:20 UTC] PHP Notice:  get_screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /nas/content/live/alpineimage/wp-includes/functions.php on line 3856
    [07-Aug-2018 02:26:20 UTC] PHP Deprecated:  Non-static method SF_Format_Options::settings_options_format() should not be called statically in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php on line 460
    [07-Aug-2018 02:26:20 UTC] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php:28
    Stack trace:
    #0 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(460): SF_Format_Options::settings_options_format(Array)
    #1 /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(493): SF_Settings_API->template_body()
    #2 [internal function]: SF_Settings_API->init_settings_page('')
    #3 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
    #4 /nas/content/live/alpineimage/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #5 /nas/content/live/alpineimage/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /nas/content/live/alpineimage/wp-admin/admin.php(224): do_action('admin_page_suns...')
    #7 {main}
      thrown in /nas/content/live/alpineimage/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php on line 28
    

    Which specific version of PHP are you using?

    Thread Starter Jason Robie

    (@jrobie23)

    7.0 I believe.
    Alpineimageworks.com

    I test on 7.1 and 7.2 and can’t reproduce any problems. Is there any way for you to upgrade your version of PHP7 further?

    Thread Starter Jason Robie

    (@jrobie23)

    Really wish we could, but just went through the painful upgrade to 7 from five six. If you think that is specifically the problem, I will simply explore other options.

    I have no idea what the problem is, to be honest. I can’t reproduce this problem on any version of PHP I have access to (7.0 isn’t even an option on my local test environments because they have already moved well past that) and you are the only user of thousands who has this problem. So there is something specific to your setup that causing the problem.

    Thread Starter Jason Robie

    (@jrobie23)

    Fair enough… thanks for checking.

    Thread Starter Jason Robie

    (@jrobie23)

    So, I followed your advice and pulled this install down locally. FWIW, we’re hosted on WPEngine which is only up to 7.0 for their servers. PHP 7 is supported through December, so I’m thinking we’ll be stuck on 7 for another few months.

    Locally, I’m using MAMP 5. I am using php 7.2.7 there and I’m still getting the same errors (this is just a snippet, but there’s clearly a fatal error there).

    As a precaution, I have disabled every other plugin and removed my custom “sunshine-template-functions” from my child theme.

    The last thing I’ve done is switched over to the twentysixteen theme and away from Divi.

    I’m still getting the same results.

    I recognize there are thousand of other users out there not getting this error, but I’d appreciate any sort of insight you can offer. At this point I’m not sure what else I need to do to get the plugin to function?

    [08-Aug-2018 16:56:35 UTC] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /Applications/MAMP/htdocs/alpine/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php:28
    Stack trace:
    #0 /Applications/MAMP/htdocs/alpine/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(460): SF_Format_Options::settings_options_format(Array)
    #1 /Applications/MAMP/htdocs/alpine/wp-content/plugins/sunshine-pro/classes/sf-class-settings.php(493): SF_Settings_API->template_body()
    #2 /Applications/MAMP/htdocs/alpine/wp-includes/class-wp-hook.php(286): SF_Settings_API->init_settings_page('')
    #3 /Applications/MAMP/htdocs/alpine/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #4 /Applications/MAMP/htdocs/alpine/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /Applications/MAMP/htdocs/alpine/wp-admin/admin.php(224): do_action('admin_page_suns...')
    #6 {main}
      thrown in /Applications/MAMP/htdocs/alpine/wp-content/plugins/sunshine-pro/classes/sf-class-format-options.php on line 28

    @jrobie23 – Looks like you are still on version 2.2.x, the current version is 2.7.3? I think upgrading should solve your problem.

    The way I can tell is this error message:

    Non-static method SF_Format_Options::settings_options_format() 
    should not be called statically in /nas/content/live/
    alpineimage/wp-content/plugins/sunshine-pro/classes/
    sf-class-settings.php on line 460
    

    SF_Format_Options:: has not been used to call settings_options_format() on line 460 of sf-class-settings.php since the plugin’s version 2.2.x.

    Let me know if that is is?

    • This reply was modified 3 years, 7 months ago by Mike Schinkel. Reason: Formatting
    • This reply was modified 3 years, 7 months ago by Mike Schinkel. Reason: Formatting
    • This reply was modified 3 years, 7 months ago by Mike Schinkel. Reason: Formatting
    • This reply was modified 3 years, 7 months ago by Mike Schinkel.

    @sunshinephotocart Hey, also, I would highly recommend using WP_DEBUG when developing if you are not already doing so. For example, using it I get this warning:

    Notice: Undefined index: proofing in 
    /var/www/wp-content/plugins/sunshine-
    photo-cart/classes/frontend.class.php 
    on line 643
    

    ALSO you should recode your create_functions in sunshine-widgets.php on line 85 and 169 because they are deprecated in PHP 7.2 and will throw a warning.

    Thanks @mikeschinkel for chiming in. I do code with WP_DEBUG enabled, but there are so many possible options enabled/disabled and add-ons activated/de-activated that minor code notices, except fatal ones of course, are not my primary concern. I do fix them as I find them with each release but I don’t purposefully hunt for them. As a solo developer, I simply don’t have time and those shouldn’t be displayed on a production server anyway so it should all work even with those. I know it’s not perfect. I did update the create_functions for the next release.

    @jrobie23 Can you confirm which version of Sunshine you are using when you get this error? Also, do you get this same error when doing a fresh install of WordPress + Sunshine?

    @sunshinephotocart Thanks. I am on a bit of a crusade to get plugin developers to get rid of those warning messages because using their plugin for local development is difficult as WP_DEBUG will throw those warnings with them and cause me to have to fork the plugin just to get rid of the warnings.

    I so wish WordPress.org would finally move to Git so I could easily provide pull requests for such fixes and be able to stay on the official version of the plugin.

    Thread Starter Jason Robie

    (@jrobie23)

    Thanks for the input Mike. We’re on version 1.9.6.4
    No indications anywhere that there might be an upgrade or update available. Literally every other plugin I’ve ever used for the last 8 years at least lets you know there’s an update available.

    I’ll ping my client to renew the subscription and pull down the most recent version.

    @jrobie23 Oh boy, looks like you guys somehow missed the GIANT change in Sunshine almost 3 years ago. I had sent out tons of emails, social media, etc to let all customers know of the giant changes to Sunshine in version 2. Here was that announcement: https://www.sunshinephotocart.com/2-0-is-finally-here-and-it-is-free/

    You will have lots of updating to do at this point to get fully caught up.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Entire admin is now blank’ is closed to new replies.