Title: analytics.php error
Last modified: January 20, 2018

---

# analytics.php error

 *  Resolved [matthewsilliman2014](https://wordpress.org/support/users/matthewsilliman2014/)
 * (@matthewsilliman2014)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fanalytics-php-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [dancarter213](https://wordpress.org/support/users/dancarter213/)
 * (@dancarter213)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9884195)
 * I’m having this problem too. Glad it isn’t just me.
 *  [sunshinephotocart](https://wordpress.org/support/users/sunshinephotocart/)
 * (@sunshinephotocart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9890675)
 * 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](https://wordpress.org/support/users/matthewsilliman2014/)
 * (@matthewsilliman2014)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9890834)
 * 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
    -  This reply was modified 8 years, 2 months ago by [matthewsilliman2014](https://wordpress.org/support/users/matthewsilliman2014/).
 *  [sunshinephotocart](https://wordpress.org/support/users/sunshinephotocart/)
 * (@sunshinephotocart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9890926)
 * 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](https://wordpress.org/support/users/matthewsilliman2014/)
 * (@matthewsilliman2014)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9895430)
 * When can we expect the release of the next Sunshine Core?
 *  [sunshinephotocart](https://wordpress.org/support/users/sunshinephotocart/)
 * (@sunshinephotocart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/analytics-php-error/#post-9916144)
 * 2.6.5 has just been released addressing this issue.
 *  [rcartist](https://wordpress.org/support/users/rcartist/)
 * (@rcartist)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9951143)
 * 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
 *  [sunshinephotocart](https://wordpress.org/support/users/sunshinephotocart/)
 * (@sunshinephotocart)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9953501)
 * Thanks! These should all finally be fixed in the next release.
 *  [rcartist](https://wordpress.org/support/users/rcartist/)
 * (@rcartist)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9953527)
 * 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?
 *  [sunshinephotocart](https://wordpress.org/support/users/sunshinephotocart/)
 * (@sunshinephotocart)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9953547)
 * 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.
 *  [rcartist](https://wordpress.org/support/users/rcartist/)
 * (@rcartist)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9953568)
 * 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.

 * ![](https://ps.w.org/sunshine-photo-cart/assets/icon-256x256.png?rev=2963250)
 * [Sunshine Photo Cart - Client Photo Gallery & Photo Proofing for Photographers](https://wordpress.org/plugins/sunshine-photo-cart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sunshine-photo-cart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sunshine-photo-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/sunshine-photo-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sunshine-photo-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sunshine-photo-cart/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [rcartist](https://wordpress.org/support/users/rcartist/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/analytics-php-error/#post-9953568)
 * Status: resolved