Post by joshbarrett » Fri Feb 19, 2016 4:03 am

Hi All,

I have stamps.com working on this issue but wanted to see if anyone else has this issue. I have connected the stamps.com program to the opencart website. However no orders are imported. When you view the stamps.php file from stamps.com in a browser you get this error.

Code: Select all

Parse error: syntax error, unexpected '}' in /home/home/public_html/stamps.php on line 462
So they fixed their typo and now they get this error.

Code: Select all

XML Parsing Error: junk after document element
Location: http://userdomainname.com/stamps.php
Line Number 2, Column 1:<b>Notice</b>:  unserialize(): Error at offset 0 of 5 bytes in <b>/home/user/public_html/stamps.php</b> on line <b>56</b><br />
After several phone calls back and forth they cant figure it out and have sent it to their "R&D Team" meanwhile giving me no updates other than the ticket has not been updated.

I have tried the file on 4 different web servers with different configs.
Last edited by joshbarrett on Fri Feb 19, 2016 5:12 am, edited 2 times in total.

Newbie

Posts

Joined
Fri Mar 06, 2015 3:57 am

Post by IP_CAM » Fri Feb 19, 2016 4:53 am

well, what you expect now? No-one has such Source, exept for those (few), paying for.
You should better have published the stamps.php Line 430 - 480, so, one would be able,
to see, why this 'left-curly bracket' exists, where it possibly should not exist.
https://en.wikipedia.org/wiki/Bracket

It DOES NOT have to be this 'left-curly', seemengly beeing mis-placed, in the server tasklist of execution, it may be another 'left-curly' , also in another file, somewhere, already CLOSING a WHATEVER SEQUENCE, and so not 'going along' with the 'left-curly', error-complained, just, because it's coming 'Second' in some task, obviously already closed, by a first 'left curly bracket'. If you know, what I'm trying to tell you... 8)

But who knows, exept for possibly one, familiar with this STAMPS Stuff. So, don't expect much...
BTW. The last Comment-Post of the Author has been past September, and since then, nothing.
So, depending on the OC Version you use, you need Mod-Seller assistance anyway. Or the money back.

Good Luck ;)
Ernie
hitline.info

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by joshbarrett » Fri Feb 19, 2016 5:16 am

@IP_CAM Ill do you one better. Here is the entire file in an attachment. Its publicly available for free on stamps.com website. You pay for your postage is how they are making money.

;)

Newbie

Posts

Joined
Fri Mar 06, 2015 3:57 am

Post by kedesignz » Tue Aug 30, 2016 8:24 pm

Were you able to resolve this issue?

Newbie

Posts

Joined
Tue Aug 30, 2016 8:18 pm

Post by cffrost2 » Sat Oct 15, 2016 4:04 am

It's a pretty simple fix if anyone is wondering. The stamps.php file contains a small error on line 461.

Code: Select all

catch(Exception $e)
	{
		$wtStr =$weight
	}
The error is caused by the missing semicolon after $weight.

Change it to be

Code: Select all

catch(Exception $e)
	{
		$wtStr = $weight;
	}
Either way, I still can't import my orders to stamps.com. Something is still wrong somewhere. It seems to connect to my opencart but will not import orders. I've sent a message to stamps support. We'll see. There is no help anywhere I can find on the internet. If anyone has a solution, please post here.

Newbie

Posts

Joined
Thu Sep 20, 2012 12:39 am

Post by Howence » Fri Mar 03, 2017 4:36 pm

I'm also having the same problem after using cffrost2's fix. I now have the error message:
XML Parsing Error: junk after document element
Did anyone figure out how to do this?

User avatar
Newbie

Posts

Joined
Thu Jan 12, 2017 12:06 pm
Who is online

Users browsing this forum: No registered users and 3 guests