BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Shopping Cart Community Forum > Customization and Integration > Code Modification and Development Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2014, 10:58 AM
James35 + James35 is offline
Interspire Customer
 
Join Date: Feb 2009
Posts: 16
Default USPS error: Trying to get property of non-object in ../module.usps.php on line 662

Quote:
Notice: Trying to get property of non-object in .../store/modules/shipping/usps/module.usps.php on line 662
All of the sudden, I'm getting this USPS error when checking for a shipping quote from the store front, checking out, or in the control panel (getting a shipping quote). I'm running version 6.0.14. The error repeats referencing line 664 as well.

From that file:
Code:
(string)$xml->Package->Postage->Rate,
//	(string)$xml->Package->Postage->MailService
str_replace("<sup>®</sup>", "", (string)$xml->Package->Postage->MailService)
Other shipping methods like UPS work fine. Seems to be isolated to USPS only. Any help would be appreciated.
Reply With Quote
  #2  
Old 10-07-2014, 12:23 AM
guitarfish + guitarfish is offline
Interspire Customer
 
Join Date: Oct 2010
Location: Pioineer
Posts: 3
Default

Quote:
Originally Posted by James35 View Post
All of the sudden, I'm getting this USPS error when checking for a shipping quote from the store front, checking out, or in the control panel (getting a shipping quote). I'm running version 6.0.14. The error repeats referencing line 664 as well.

From that file:
Code:
(string)$xml->Package->Postage->Rate,
//	(string)$xml->Package->Postage->MailService
str_replace("<sup>®</sup>", "", (string)$xml->Package->Postage->MailService)
Other shipping methods like UPS work fine. Seems to be isolated to USPS only. Any help would be appreciated.
I have 6.0.14 and today USPS was showing 0.00 for quotes so I found a newer version of module.usps.php from 6.1.18 and it's now working. Attached is the complete new module.usps.php code.
Attached Files
File Type: php module.usps.php (32.4 KB, 20 views)
__________________
ISC 6.1.1
Reply With Quote
  #3  
Old 10-13-2014, 10:04 PM
James35 + James35 is offline
Interspire Customer
 
Join Date: Feb 2009
Posts: 16
Default

Thank you very much! Worked for me. The control panel "get quote" template is probably outdated for the new code as it had a couple errors concerning undefined dimensions. But I don't care as my customers won't see that error.

Last edited by James35; 10-13-2014 at 10:08 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump