Alright, I haven't changed anything on my site since this problem has come up, so I don't know what I can do to fix it. Customers are able to do everything normally except check out. As soon as they click on the check out button from their shopping cart page, it goes to a blank page.
I've checked the debug files and found the following...
I compared all files mentioned to one before the 8th and they are exactly the same, nothing changed on my end. What could have happened to make these errors occur and more importantly, what can I do to fix the problem.Code:[08-Nov-2013 17:10:51 America/Phoenix] PHP Warning: addslashes() expects parameter 1 to be string, array given in /home/content/32/9303332/html/includes/functions/functions_general.php on line 888 [09-Nov-2013 09:53:38 America/Phoenix] PHP Fatal error: Call to a member function getName() on a non-object in /home/content/32/9303332/html/includes/modules/shipping/usps.php on line 915 **[11-Nov-2013 10:01:30 America/Phoenix] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /home/content/32/9303332/html/includes/modules/shipping/usps.php on line 909 [11-Nov-2013 10:01:30 America/Phoenix] PHP Fatal error: Call to a member function getName() on a non-object in /home/content/32/9303332/html/includes/modules/shipping/usps.php on line 915 **Is now the only error occurring on my debug files since that date.
The only edit I've made in the last month was to the css for the background to change from Halloween to Christmas. Other than that, there have been absolutely no changes... and put the site down for maintenance earlier today.
AND just in case it helps...
includes/modules/shipping/usps.php
includes/functions/functions_general.phpCode:// strip reg and trade out 01-02-2011 $body = str_replace('&lt;sup&gt;&amp;reg;&lt;/sup&gt;', '', $body); $body = str_replace('&lt;sup&gt;&amp;trade;&lt;/sup&gt;', '', $body); $response=simplexml_load_string($body); [[line 909]] $rates = array(); // translate for US Territories if ($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY || (SHIPPING_ORIGIN_COUNTRY == '223' && $this->usps_countries == 'US')) { if ($response->getName() == 'Error') { [[line 915]] $number = (string)$response->Number; $description = (string)$response->Description; return array('error' => $number . ' - ' . $description); }
Code:function zen_db_input($string) { return addslashes($string); [[line 888]] }


Reply With Quote

