Post by jscustom » Mon Nov 14, 2016 12:23 pm

After not touching anything on my site for a couple of weeks, all of a sudden I am getting a JSON error when trying to do a manual backend order.

The error popup occurs after clicking continue on the shipping details tab. See attached image.

I have tried to uninstall and reinstall the auspost shipping module, which makes no difference.

I have tried restoring a backup where everything was working fine. Still same error.

The only things that have changed between now and the last working backup were a couple of orders I had manually placed through the backend and a couple of products added. Nothing else installed or uninstalled.

Any help would be greatly appreciated.

Attachments

capture.png

capture.png (356.67 KiB) Viewed 996 times


Newbie

Posts

Joined
Mon Nov 14, 2016 10:47 am

Post by opencartmart » Mon Nov 14, 2016 8:47 pm

seems something wrong in curl response. Please open file catalog/model/shipping/auspost.php and after the line 30 i.e following one:

Code: Select all

$response = curl_exec($curl);
add a logger i.e add following line

Code: Select all

$this->log->write('Auspost response='.print_r($response,true));
Now try to add new order. Then go navigate to setting -> Log. Please paste log message here

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by jscustom » Tue Nov 15, 2016 7:32 am

Oddly enough, I just added the logger line and now it all works as it should.

Thank you for your help :)

Newbie

Posts

Joined
Mon Nov 14, 2016 10:47 am

Post by opencartmart » Tue Nov 15, 2016 12:45 pm

Maybe it was auspost server issue :)
You should remove that logger as it will create a lot of log messages

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am
Who is online

Users browsing this forum: No registered users and 3 guests