mricklefs Posted February 12, 2009 Share Posted February 12, 2009 http://www.martinsflag.com/us/small_us_spearhead.php What are the error messages at the top of this page telling me? I'm not the best with PHP.. I'm lost! Please help! Quote Link to comment https://forums.phpfreaks.com/topic/144949-question/ Share on other sites More sharing options...
killah Posted February 12, 2009 Share Posted February 12, 2009 You might want to think about maybe posting some code so we can atleast help Quote Link to comment https://forums.phpfreaks.com/topic/144949-question/#findComment-760623 Share on other sites More sharing options...
premiso Posted February 12, 2009 Share Posted February 12, 2009 Your code is not dishing out arrays when it is expected to. If you use is_array before trying to loop using foreach or calling array_keys it will spare you those error messages. Quote Link to comment https://forums.phpfreaks.com/topic/144949-question/#findComment-760625 Share on other sites More sharing options...
mricklefs Posted February 12, 2009 Author Share Posted February 12, 2009 What would this piece of code look like to work? I tried adding the code and the page breaks? Quote Link to comment https://forums.phpfreaks.com/topic/144949-question/#findComment-760628 Share on other sites More sharing options...
gizmola Posted February 12, 2009 Share Posted February 12, 2009 Those are not errors, they are warnings. A warning *could be a problem* but it might not be. As it's unlikely you are going to patch a 3rd party script that you don't understand the simplest answer for you is to turn down the error setting so that the server does not display warnings, and furthermore, on a production server you should not be displaying errors to the end users, as this can leak important internal information to attackers. In the case of your warnings, most if not all of them appear to be related to uninitialized variables. Since this appears to be related to a shopping cart, it's not surprising that you would have uninitialized variables because nothing is in the user's cart yet. This is a nice blog entry that covers the topic: http://wheel.troxo.com/2007/06/21/php-error-reporting-on-production-and-development-servers/ They are doing the settings in .htaccess but you could do them in the php.ini directly assuming this is a server you control and admin. Quote Link to comment https://forums.phpfreaks.com/topic/144949-question/#findComment-760646 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.