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
  #1  
Old 12-06-2013, 04:52 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

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

I installed xpayments V2.0.0 and set every thing up. Logged into the admin back end and when I go to settings/payment configurations I am getting the following error.

Fatal error: Access to undeclared static property: XPay_Model_Base_Module::$this in /homPPduramax/public_html/xxxxxxxxxxx/lib/XPay/Model/Base/Module.php on line 153

Any Idea on how to fix, Submitted ticket to X-Cart, waiting for reply.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #2  
Old 12-08-2013, 06:14 AM
 
cjstancil cjstancil is offline
 

Member
  
Join Date: May 2011
Posts: 13
 

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

I've got the same error message today (and have had customer orders FAIL for the past 2 days). In my case a different line number (131) in the same module.

What's going on here?! I've made NO changes to any configurations or files in our store in the past week!

Running X-Cart 4.5.5 and X-Payments 1.0.6.
__________________
Chuck
Logic Rail Technologies
X-Cart 4.7.10
Reply With Quote
  #3  
Old 12-09-2013, 12:58 AM
  ambal's Avatar 
ambal ambal is offline
 

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

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

It is due to updating PHP to v 5.4.

To fix the problem, in lines 131 and 153 of

<xpayments_dir>/lib/XPay/Model/Base/Module.php

change

PHP Code:
self::$this-> 

to

PHP Code:
$this-> 

Please let me know if this helps.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote

The following 2 users thank ambal for this useful post:
carpeperdiem (12-10-2013), cjstancil (12-09-2013)
  #4  
Old 12-09-2013, 03:20 AM
 
mafriends mafriends is offline
 

Newbie
  
Join Date: Apr 2009
Posts: 8
 

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

I was getting these errors too. This fixed the problem, but it looks like there are more issues.

Getting this error message when trying to lock or unlock an account. Also getting it when trying to generate new keys on this page: admin.php?target=encrypt_keys
Internal error
The requested action cannot be performed. See logs for details.
Is there anything else that needs to be changed?
__________________
X-Cart Pro Version 4.6.1
XPayments v 1.0.6
Reply With Quote
  #5  
Old 12-09-2013, 03:29 AM
  ambal's Avatar 
ambal ambal is offline
 

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

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

> See logs for details.

And what the logs say?
See http://help.x-cart.com/index.php?title=X-Payments:FAQ#Where_can_I_find_X-Payments_logs.3F
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #6  
Old 12-09-2013, 04:30 AM
 
mafriends mafriends is offline
 

Newbie
  
Join Date: Apr 2009
Posts: 8
 

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

This is the error:

Failed to perform SMTP command: ("503") "AUTH command used when not advertised"
Affected systems: Core/SMTP.php file (403:assert); Core/SMTP.php file (347:doCommand); Core/SMTP.php file (419:sendCommand); Core/SMTP.php file (483:sendLoginAuth); Core/SMTP.php file (625:doAuth); Core/Mailer.php file (282penMail); Core/Mailer.php file (258:prepareQueue); Core/Dispatcher.php file (152:send); Application.php file (156:dispatch); /home/xxxxxxxx/public_html/xpay/admin.php file (26:run)
__________________
X-Cart Pro Version 4.6.1
XPayments v 1.0.6
Reply With Quote
  #7  
Old 12-09-2013, 04:32 AM
  ambal's Avatar 
ambal ambal is offline
 

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

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

As you can see your issue does not relate to the original one reported here. For some reason your X-Payments v1 cannot connect to SMTP server to send notifications. I suggest you to contact our techs using your HelpDesk account at https://secure.x-cart.com to figure our what's wrong with SMTP server connection on your X-Payments server.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #8  
Old 12-09-2013, 09:22 PM
 
cjstancil cjstancil is offline
 

Member
  
Join Date: May 2011
Posts: 13
 

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

My web host decided to just revert us back to PHP 5.3. Will this change that you recommend still work for PHP 5.3? If so then I'll make the change and not have to worry about my web host changing back to PHP 5.4 in the future!
__________________
Chuck
Logic Rail Technologies
X-Cart 4.7.10
Reply With Quote
  #9  
Old 12-10-2013, 01:13 AM
  ambal's Avatar 
ambal ambal is offline
 

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

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

Quote:
Originally Posted by cjstancil
My web host decided to just revert us back to PHP 5.3. Will this change that you recommend still work for PHP 5.3? If so then I'll make the change and not have to worry about my web host changing back to PHP 5.4 in the future!

It should work with PHP 5.3
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #10  
Old 12-10-2013, 07:33 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:

I had the exact issue today -- and THANK YOU, Alex for sending me a fast PM reply.

Chuck, my host (Hands-on) also suggested we revert to php 5.3 for now.

Alex, when you feel better, can you share any other known issues with php 5.4.x and x-payments 1.0.6 ?

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 10:15 AM.

   

 
X-Cart forums © 2001-2018