• Resolved matthewsilliman2014

    (@matthewsilliman2014)


    My server was recently upgraded to php 7.1, and now I’m receiving php errors in the dashboard.

    Warning: unserialize() expects parameter 1 to be string, array given in /plugins/sunshine-analytics/analytics.php line 394

    Warning: A non-numerical value encountered in /plugins/sunshine-analytics/analytics.php line 574

    Warning: unserialize() expects parameter 1 to be string, array given in /plugins/sunshine-photo-car/admin/sunshine-dashboard.php line 28

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m having this problem too. Glad it isn’t just me.

    For the Analytics, make sure you have a cost set for each of your products. Note: This is YOUR cost to have the product made. This helps determine your actual profit (what you sold it for minus your cost to have it made).

    I have updated the Analytics add-on, the Dashboard will be fixed in next release of core Sunshine plugin.

    Thread Starter matthewsilliman2014

    (@matthewsilliman2014)

    Updated analytics to latest version this is the error I get when viewing galleries.

    Warning: A non-numeric value encountered in /plugins/sunshine-analytics/analytics.php on line 781

    I will release another update. But you can also disable all PHP warnings and notices so these small things don’t appear or have it all written to an error log instead of being displayed.

    Thread Starter matthewsilliman2014

    (@matthewsilliman2014)

    When can we expect the release of the next Sunshine Core?

    2.6.5 has just been released addressing this issue.

    I am getting this kind of error on the account page at the top it gives this info, and the shows all the fields below to fill out account info.

    Order Order Date Order Total Order Status
    ( ! ) Warning: unserialize() expects parameter 1 to be string, array given in C:\wamp64\www\wordpress\wp-content\plugins\sunshine-photo-cart\themes\theme\account.php on line 32
    Call Stack
    # Time Memory Function Location
    1 0.0005 240992 {main}( ) …\index.php:0
    2 0.0009 244096 require( ‘C:\wamp64\www\wordpress\wp-blog-header.php’ ) …\index.php:17
    3 0.8978 44032360 require_once( ‘C:\wamp64\www\wordpress\wp-includes\template-loader.php’ ) …\wp-blog-header.php:19
    4 0.9144 44205904 include( ‘C:\wamp64\www\wordpress\wp-content\themes\anima\page.php’ ) …\template-loader.php:74
    5 1.2848 44586480 get_template_part( ) …\page.php:20
    6 1.2848 44587376 locate_template( ) …\general-template.php:155
    7 1.2853 44587520 load_template( ) …\template.php:647
    8 1.2858 44610208 require( ‘C:\wamp64\www\wordpress\wp-content\themes\anima\content\content-page.php’ ) …\template.php:690
    9 1.3108 44629856 the_content( ) …\content-page.php:28
    10 1.3113 44630424 apply_filters( ) …\post-template.php:240
    11 1.3114 44630792 WP_Hook->apply_filters( ) …\plugin.php:203
    12 1.3122 44634056 call_user_func_array:{C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:286} ( ) …\class-wp-hook.php:286
    13 1.3122 44635080 SunshineFrontend->sunshine_content( ) …\class-wp-hook.php:286
    14 1.3123 44635304 SunshineFrontend::get_template( ) …\frontend.class.php:111
    15 1.3126 44652032 load_template( ) …\frontend.class.php:288
    16 1.3136 44686832 require_once( ‘C:\wamp64\www\wordpress\wp-content\plugins\sunshine-photo-cart\themes\theme\account.php’ ) …\template.php:688
    17 1.3268 44732456 unserialize ( ) …\account.php:32

    Thanks! These should all finally be fixed in the next release.

    What I found was, there was a pending purchase in the account. once I deleted it perm in the reports , it went away. but then showed an item in the cart that didn’t show before. I suspect it was the item pending purchase.

    Also, how can the color of the green bar at top be changed? can you add that to the update and give the ability to choose the color for that so us users can make it match more closely to our theme colors?

    What you were seeing was not a major issue, there were no fundamental problems with Sunshine. It was a small code warning, without getting into too much detail it didn’t have anything to do with purchases working properly or not – just how some data was being taken out of the database.

    ok, just thought it would be good info for you to have to fix it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘analytics.php error’ is closed to new replies.