X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   X-Payments Fatal error: Access to undeclared static property: (https://forum.x-cart.com/showthread.php?t=68276)

Duramax 6.6L 12-06-2013 04:52 PM

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.

cjstancil 12-08-2013 06:14 AM

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.

ambal 12-09-2013 12:58 AM

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.

mafriends 12-09-2013 03:20 AM

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?

ambal 12-09-2013 03:29 AM

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

mafriends 12-09-2013 04:30 AM

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 (282:openMail); 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)

ambal 12-09-2013 04:32 AM

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.

cjstancil 12-09-2013 09:22 PM

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!

ambal 12-10-2013 01:13 AM

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

carpeperdiem 12-10-2013 07:33 AM

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


All times are GMT -8. The time now is 06:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.