Marketpress php warning on server, no problem on localhost [closed]

It is probably because of either different versions of PHP or different configuration for the Error logging. Assuming you have same environment (cart status, blog status, logged in user status etc)

To overcome this, Please initialize $totals with empty array in the start of the function.

And, If you want error to show up for localhost set WP_DEBUG constant to true (in wp-config.php) on localhost. You may also need to call error_reporting(E_ALL) at the top of your script.

hope it will fix your problem.