Judith.Precision Posted January 20, 2014 Posted January 20, 2014 Ok, so the ISP of a client website had to rebuild their web servers (including updates to MySQL and PHP) recently (over the weekend apparently). Now, whenever someone tries to checkout - either via the native checkout button or the PayPal (paypal express), it throws an error: Strict Standards: Only variables should be assigned by reference in /home/imprint/public_html/storefront/includes/classes/xml_5.php on line 70 Any ideas where I need to make changes to prevent this from stopping a customer from purchasing from the webstore? http://precisionimprint.com/storefront/ Thanks, Judith
burt Posted January 20, 2014 Posted January 20, 2014 /includes/classes/xml_5.php is not a standard file in oscommerce. I think (though I am not 100% sure) that it is a part of one of the UPS or USPS addons. Find the addon you are using, find the addon support thread, post in it for support. In general, this error is from using &= Find the offending line of code and remove the ampersand.
Judith.Precision Posted January 20, 2014 Author Posted January 20, 2014 @@burt, You are correct. I am using a USPS Shipping Methods addon. I'll check on the & (line 70 in this case has "$this->parser = &xml_parser_create();) to see if that is indeed triggering the "Strict Methods" fun and games. I'll also post in the appropriate forum. Thanks, Judith
♥kymation Posted January 20, 2014 Posted January 20, 2014 You can replace that copy of xml_5.php with the one from this archive. However, that XML library is obsolete and should no longer be used. It's being called from an old addon that should be replaced with a modern version. Regards Jim See my profile for a list of my addons and ways to get support.
Judith.Precision Posted January 20, 2014 Author Posted January 20, 2014 @@burt - Thank you! Removing the "&" from line 70 in my xml_5.php file fixed the problem. Judith (yes, I added a comment that I removed the & in the code, and a datestamp for the change)
Judith.Precision Posted January 20, 2014 Author Posted January 20, 2014 Thanks to @@burt in the General Support forum, I have removed the "&" from line 70: function XML(){ $this->parser = xml_parser_create(); #removed the & from "&xml_parser_create(); on 20 Jan 2014 This fixed the issue. It also fixed a secondary issue with the shipping method being shown on the webpage in white text (REALLY hard to read). Judith
Recommended Posts
Archived
This topic is now archived and is closed to further replies.