Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

X-Payments Fatal error: Access to undeclared static property:
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #11  
Old 12-10-2013, 07:37 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,099
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

> can you share any other known issues with php 5.4.x and x-payments 1.0.6 ?

This is the only one we believe. Generally speaking this is a sort of typo in our code that all PHP versions before 5.4 allowed and thus we didn't stumble upon it during our tests before PHP v5.4 was rolled out.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #12  
Old 12-10-2013, 09:12 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Quote:
Originally Posted by ambal
> can you share any other known issues with php 5.4.x and x-payments 1.0.6 ?

This is the only one we believe. Generally speaking this is a sort of typo in our code that all PHP versions before 5.4 allowed and thus we didn't stumble upon it during our tests before PHP v5.4 was rolled out.

Alex,

I know there are many moving parts, and 1.0.x has been replaced by younger, thinner, and better looking, but I would imagine that there are still more than a handful of stores running xp 1.0.x --- and for something as mission critical as a typo that will kill x-payments if server is upgraded to 5.4.x, wouldn't it have been better to email a hotfix to all current owners of 1.0.x ?

I know this is not X-Cart's way -- but maybe it should be?

IF you discover a defect, why not publish it?

Before I permitted my server manager to upgrade to php 5.4, I looked at system requirements and I looked at all release notes for x-p 1.0.6 -- and there were no published mentions of this very easy to fix but mission-critical defect.

WHY not add this to the system requirements? Or better yet, email a hotfix to all -- because this fix is benign in php 5.3, there is no reason for all 5.3 owners to not just do it. They will have to do it when their server goes to 5.4 (at the latest in mid-2014).

I know hotfixes are not part of the X-Cart way, but maybe you should think about publishing a list of these? It would reduce the number of 911 calls you get. And you would have a cover-your-ass link, "did you apply all the published hotfixes before you broke your cart?"

How many servers will be upgrading from php 5.3 to 5.4 -- I bet many in the coming months... so IF YOU KNOW that something is broken in X-Payments 1.x, why not share this with everyone?

Just saying.
I hope you feel better soon.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
ambal (12-10-2013)
  #13  
Old 12-10-2013, 06:40 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

PS -- x-payments 1.0.6 (patched as per post #3) has now been running all day with php 5.4.x -- working just fine. Trying to stuff keywords that others may use to find this thread in the future.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
ambal (12-10-2013)
  #14  
Old 12-10-2013, 11:30 PM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,099
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Jeremy, thank you for your good wishes. I am getting better day after day.

And yes, of course the newsletter is on the way to all owners of X-Payments licenses.

Those who are on Hosted X-Payments plans do not need to worry as the patch has been applied by our data center staff.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote

The following user thanks ambal for this useful post:
carpeperdiem (12-11-2013)
  #15  
Old 12-11-2013, 07:20 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Dear Alex and Team X-Cart,

I just received an email with the hotfix notice.

Now THAT'S how you do it!!!

Considering php 5.3.x will be EOL by mid-year 2014, this is going to be an issue for many. You just covered your ass and helped many store admins, all at the same time.

I would love to see future hotfixes for minor and major bugs in a database as well as email.

Thanks for being proactive on this!

Best,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #16  
Old 12-11-2013, 07:25 AM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

I've been running on PHP5.4 for over a month without any problems.
Running 4.1.10 and xpayments 1.0.4

So the fact I'm not having any issues is strangely worrying.
Should this issue affect everyone running PHP5.4? in which case something is wrong, since my host says I'm set to PHP5.4.

Should I run the patch anyway? Or leave well alone since it seems quite happy?
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote
  #17  
Old 12-11-2013, 07:28 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Quote:
Originally Posted by gblair
I've been running on PHP5.4 for over a month without any problems.
Running 4.1.10 and xpayments 1.0.4

This may be only for x-payments 1.0.6 and 2.0x ?

Look at the file:
<xpayments_dir>/lib/XPay/Model/Base/Module.php

lines 131 and 153

if you see

self::$this->

then you need to patch.

Yes?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #18  
Old 12-11-2013, 07:32 AM
 
Mokee Mokee is offline
 

Newbie
  
Join Date: Jul 2010
Posts: 4
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Same here gblair, been running xc 4.6.1 and xp 1.0.6 on PHP 5.4 for a long while with no issues for months. I'm leaving it alone - when it ain't broke, don't fix it!
Reply With Quote
  #19  
Old 12-11-2013, 07:39 AM
 
Mokee Mokee is offline
 

Newbie
  
Join Date: Jul 2010
Posts: 4
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Quote:
Originally Posted by carpeperdiem
This may be only for x-payments 1.0.6 and 2.0x ?

Look at the file:
<xpayments_dir>/lib/XPay/Model/Base/Module.php

lines 131 and 153

if you see

self::$this->

then you need to patch.

Yes?

Hrm, no patch applied here but mine was already without 'self' scope operator. Was this an issue that had been addressed previously somewhere? I don't remember fixing this myself when the server was upgraded to 5.4 months ago.
__________________
X-Cart Gold 4.4.5
X-Payments 1.0.4
Reply With Quote
  #20  
Old 12-18-2013, 04:02 PM
 
vtandon vtandon is offline
 

Member
  
Join Date: Jul 2003
Posts: 25
 

Default Re: X-Payments Fatal error: Access to undeclared static property:

Thank you guys.
you are a life saver!
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:06 PM.

   

 
X-Cart forums © 2001-2018