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

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


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

Post by drclawscat » Sun Sep 08, 2019 11:40 am

Did anyone figure this out? I updated the file (stamps still hasn't patched that ; bug) but I still get no orders flowing in from opencart. :(

Newbie

Posts

Joined
Sat Aug 05, 2017 2:24 am

Post by thekrotek » Sun Sep 08, 2019 5:11 pm

drclawscat wrote:
Sun Sep 08, 2019 11:40 am
Did anyone figure this out? I updated the file (stamps still hasn't patched that ; bug) but I still get no orders flowing in from opencart. :(
Have you even read the replies? It was said in the very beginning that this files IS NOT a part of OpenCart. Contact its developer to resolve the issue.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by sw1138lr » Sat May 23, 2020 7:09 am

Today, I spent two hours on the phone with Stamps.com about this issue with stamps.php file. The issue turns out to be the version of stamps.php only works with PHP 5. We are now on version 7.3. I asked if they plan to fix the stamps.php file. The answer was OpenCart is only used by 0.35% of their customers. It is not a high priority to fix and will never be a high priority. Is there anyone willing to make the coding changes to the stamps.php file to make it work?

Newbie

Posts

Joined
Sun May 17, 2020 2:25 am

Post by thekrotek » Sat May 23, 2020 7:58 am

sw1138lr wrote:
Sat May 23, 2020 7:09 am
Is there anyone willing to make the coding changes to the stamps.php file to make it work?
If you willing to invest in custom development I could help.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Olga49 » Thu Oct 14, 2021 7:34 pm

Look for a short_open_tag property, and apply the following change:

Code: Select all

; short_open_tag = Off ; previous value
short_open_tag = On ; new value

skylight paycards


Newbie

Posts

Joined
Thu Oct 14, 2021 7:21 pm
Who is online

Users browsing this forum: No registered users and 25 guests