Page 1 of 1
SecurePay XML API (AU) token error
Posted: Fri Mar 09, 2012 2:49 pm
by MissLiss
Hi,
I have OC 1.5.2 and have downloaded and installed SecurePay XML API (AU) from
http://www.opencart.com/index.php?route ... order=DESC
I have filled in all the fields appropriately.
I have added Jimmymackay's fix (from within the discussion on the extension page)
I get this error when 'confirm order' is pressed at teh checkout:
Undefined index: token in /home/ecotanic/public_html/shop/catalog/controller/payment/sxml.php on line 11
How can I fix this? is token an old OC reference?
Thanks.
Re: SecurePay XML API (AU) token error
Posted: Mon Mar 12, 2012 4:12 pm
by MissLiss
ok, so I removed Jimmy Mackays fix.
Upgraded to 1.5.2.1
removed the token = part on line 11 (removes error notice but not the problem). I searched for undefined index:token and this was the proposed rectification.
in the error log there is this additional info:
2012-03-12 6:56:37 - PHP Unknown: Function split() is deprecated in /home/xxxxx/public_html/shop/catalog/controller/payment/securexml.php on line 1003
2012-03-12 6:56:37 - PHP Notice: Error: Could not load library json! in /home/xxxxx/public_html/shop/system/engine/loader.php on line 23
Can someone please help with this?
Re: SecurePay XML API (AU) token error
Posted: Mon Mar 12, 2012 7:58 pm
by Qphoria
MissLiss wrote:ok, so I removed Jimmy Mackays fix.
Upgraded to 1.5.2.1
removed the token = part on line 11 (removes error notice but not the problem). I searched for undefined index:token and this was the proposed rectification.
in the error log there is this additional info:
2012-03-12 6:56:37 - PHP Unknown: Function split() is deprecated in /home/xxxxx/public_html/shop/catalog/controller/payment/securexml.php on line 1003
2012-03-12 6:56:37 - PHP Notice: Error: Could not load library json! in /home/xxxxx/public_html/shop/system/engine/loader.php on line 23
Can someone please help with this?
1. EDIT: catalog/controller/payment/securexml.php
2. REPLACE:
"split"
with
"explode"
3. REMOVE:
4. REPLACE:
"Json::encode"
with
"json_encode"
Re: SecurePay XML API (AU) token error
Posted: Mon Mar 12, 2012 10:49 pm
by MissLiss
Thanks for your reply!
However I was not able to find 'json' on the page securexml or on loader.php?
New Error:
2012-03-12 14:34:47 - PHP Notice: Undefined index: order_id in /home/xxxxx/public_html/shop/catalog/controller/payment/sxml.php on line 88
2012-03-12 14:34:47 - PHP Notice: Error: Could not load library json! in /home/xxxxx/public_html/shop/system/engine/loader.php on line 23
I re-added the token= line that i deleted. Now the error is
2012-03-12 14:43:34 - PHP Notice: Error: Could not load library json! in /home/xxxxx/public_html/shop/system/engine/loader.php on line 23
Also interestingly, when I open the extensions/payment - securepay api in admin I get this page error
Fatal error: Cannot access private property Document::$title in /home/xxxxx/public_html/shop/admin/controller/payment/sxml.php on line 10
Re: SecurePay XML API (AU) token error
Posted: Tue Mar 13, 2012 12:44 pm
by MissLiss
I have fixed the fatal error in admin by applying the title to setTitle fix as proposed here:
http://forum.opencart.com/viewtopic.php?t=33251 and on the comments section from the extension.
However I still get the json error when trying to complete a transaction. When 'Confirm Order" is pressed nothing happens at all on the website. This error is shown in the admin error log.
2012-03-13 4:28:17 - PHP Notice: Error: Could not load library json! in /home/xxxx/public_html/shop/system/engine/loader.php on line 23
By search it seams that this error means that this 1.5.1 extension is not compatible with 1.5.2.1?
http://forum.opencart.com/viewtopic.php?t=48138
What to do?
Re: SecurePay XML API (AU) token error
Posted: Tue Mar 13, 2012 1:13 pm
by MissLiss
Yes!
I found the json reference in catalog/controller/payment/sxml.php and changed as you suggested and it works now.
thanks qphoria
Re: SecurePay XML API (AU) token error
Posted: Sat Mar 17, 2012 5:27 pm
by MissLiss
Now that I'm ready to test this Live I am having another problem.
In Extensions/payment if I try to edit the securepay module (like change it from test to live) it goes to the dashboard and does not save any changes.
There are no associated errors.
What can this mean? And What can I do to fix this?
Re: SecurePay XML API (AU) token error
Posted: Mon Mar 19, 2012 9:59 am
by MissLiss
So, Ive had to remove this as a payment option as I could not get it to go live.