Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
oneapplications
oneapplications
Hi all,
 
I get the following error when the WP callback script runs.
 
Fatal error: Call to a member function set_vars() on a non-object in /home/cc/public_html/store/includes/order_items.php on line 1237
 
The code at line 1237 is:-
$t->set_vars($order_info);
 
The "non-object" must be the $order_info array i'm guessing and this is set by:-
$order_info = $db->Record;
 
I don't really want to have to go through all the associated functions and classes to get to the bottom of this and was wondering if anyone had also seen this problem?
 
Cheers,
 
Chris.
 
oneapplications
oneapplications
Well i've emailed ViArt support a few times now about this but have yet to receive a reply. They did reply a few days ago to ask for my ftp and admin login details but since then they've been very quiet.
 
Can someone from support just confirm that this problem is being looked into?
 
Surely this is a simply "glitch" somewhere that the right person could fix in five minutes!! Sad
 
oneapplications
oneapplications
Is anybody else sucessfully using worldpay? I can't help feeling that either the worldpay_confirm.php script is simply "broken" or i'm missing something fairly basic in my setup somewhere...
 
The non-object error was because the order_items.php script requires an instance of the VA_Template class (as $t->). However this isn't even instantiated in the worldpay_confirm.php script or in any included script either! I added the line '$t = new VA_Template("");' at the start of the worldpay script and that's sorted the non-object error, however...
 
I then got a 'function set_order_links() not found' error. Well sure enough this function is within the order_links.php file so I added an include_once for this file at the start or worldpay_confrm.php and that sorted that problem, however...
 
I now have a 'class VA_Record not found' error! Well it's hard to tell in which file the VA_Record class is stored but this is starting to become crazy! Surely I have something fundamental missing here? Some sort of global reference or something? I notice that all other "payment system confirm scripts" have an include for the var_definition.php file. Should worldpay_confirm.php also have this??
 
HELP!!! :)
 
msquared
msquared
Hi,
Have you had any response to this question? I have a client gone live today and they use Worldpay, not quite the same problem but I cannot get it to work or accept payments.
 
My head is being chewed off and I also need to understand what is missing.
 
Thanks
Msquared
 
oneapplications
oneapplications
Hi,
 
Yes. Viart had to make some alterations to the worldpay_confirm.php script. I would imagine that this is now available in the latest build.
 
If not I can probably email my script to you. Just give me a shout at support [at] oneapplications [dot] com.
 
Cheers,
 
Chris.
 
msquared (Guest)
msquared (Guest)
Hi Chris,
A Big Thank you for the info and update, just to confirm for anyone else looking or having problems with Worldpay my error message is "Call to a member function set_var() on a non-object in /home/fhlinux160/w/wheredidyoubuythat.com/user/htdocs/includes/order_items.php on line 466"
 
I have exhausted all I know to rectify this error, I am waiting for a response from Viart to assist me in fixing the problem, thanks also to Worldpay who spent almost two hours trying to find a cure or work around but all to no avail.
 
 
Regards
Msquared
 
msquared
msquared
Many thanks to Chris who kindly assisted me in resolving this problem, just to update this post the problem was fixed by replacing the file "worldpay_confirm.php".
 
When this file was updated the system functioned as expected with all information being received back in the orders section and the customer receiving the correct final order screen.
 
Thanks Chris.
 
Regards
Msquared
 
oneapplications
oneapplications
Thanks Roy (MSquared),
 
Just for the info of anyone else that may be having similar problems with the worldpay script, the reason I was able to help in this case was because ViArt actually amended my worldpay_confirm script about three weeks ago. There were a few fundamental errors with the script that meant it would not work with my customer's setup.
 
ViArt did eventually make the alterations and it's been working fine ever since. The problem appears to be that this script has not yet been uploaded to ViArt's latest build of the software and so people are still seeing this problem.
 
Maybe someone from the ViArt support team can comment on when this script will be "fixed" and available for download? In the meantime if anybody else has this problem please feel free to drop me an email at the address below and I'll gladly email the amended script to you.
 
Cheers,
 
Chris
One Vision Applications
support@oneapplications.com
 
oneapplications
oneapplications
Hi all,
 
Just to update you, as it seems no one from ViArt have commented yet, I've just emailed them at the support address to see if and when the amended script will be available for download.
 
I'll keep you posted...
 
Cheers,
 
Chris.
 
Anjula
Anjula
Hello,
 
Please, use the link below to download an updated file for worldpay payment gateway:
 
http://www.viart.com/downloads/worldpay_confirm.zip
 
This file is valid for versions started from 3.4.13.
 
Should you have any problems, please contact our support team via https://www.viart.com/support.php
 
With kind regards,
ViArt Support Team