Re: WorldPay Module version 3.0 - Support thread
Quote:
Originally Posted by
bottyz
Hi Explorer,
That's great news. So its unlikely the worldpay module itself is causing the issue. It'll more likely be something on your live cart that is conflicting and causing extra bytes to be passed. Maybe even a corruption in your database.
Unfortunately, there is no fast way of testing. However, the way I would do it would be to to work logically through adding modules, settings, etc... one by one from your live zen cart to the new test version and check after each addition to see if the worldpay module still works.
If you then add something and it suddenly causes that error, you'll be able to pinpoint what it is that causes the issue and you can then investigate further in correcting the problem.
I hope this helps. Please do post on here if you find out what it was causing this issue, so that other users with the same problem can see in future what you found.
If you need any more advice please post on here.
Good luck
P.S. is there a reason you tried a new test cart using v1.5.1, you'd be better off upgrading to the latest v1.5.4 as it'll stop you needing to upgrade twice.
Hi Bottyz,
I restore the MySQL DB to test it again
Here are my test environment ZC 1.5.1 + WP 3.0 + Default Themes + Restore MySQL DB (DB copy from Live Shop), but without any images (FTP haven't upload all Live Shop Image on it)
Then re enter all my account and PW on it and buy something on front end
Tested it work!
This mean our DB haven't any problems
My next test plan is replace the Default ZC Themes with our themes see what will happened.
Why I not using ZC 1.5.4 since the Super Order and Edit Order Module, special the Super Order it not work with ZC 1.5.3 that can download from Official Zen Cart (countrycharm already give me a GitHub link to the more new version, I will make a test later on when free.)
Thank you all in there help and suggestion for me. I will post my test result once done.
2 Attachment(s)
Re: WorldPay Module version 3.0 - Support thread
I am having problems with the Worldpay module installed on a customers website.
Bellow are the setup screen from WorldPay admin and an error log from WorldPay for a transaction I ran to test it.
The customer is using Zen Cart 1.5.4 and WorldPay module 3.0
WorldPay worked fine prior to a new build of the website and a move of servers.
I have removed all redirects from the .htaccess file as it seems that the redirect url being presented is different from the one sent. I have also ensured that the site is set as http://www.domain-url.co.uk in both normal configure.php and the one in admin.
Hitting a brick wall with WorldPay as they say that it is a Zen Cart problem. I have also tested the issue with the standard template to ensure there is nothing in the new template causing the issue.
All help will be gratefully appreciated.
I should add, whilst this is a move to a new server, the site is a new build (the customer, orders and products tables were imported to the new database only - all other tables are from the new build).
Attachment 15557
Attachment 15558
Re: WorldPay Module version 3.0 - Support thread
Hi,
Long time ago I am try to make WP 3.0 work on my ZC 1.5.1, it callback failed, but, after I change my server's PHP POST size from 2M to 2040M, it can work again with my ZC 1.5.1...
But... now I am starting on processing the ZC 1.5.4 upgrade integration, the same callback oversize error again (Yes, ZC version is different, and yes, new themes, but, if using new themes without restore the ZC 1.5.1 DB (Run the ZC install DB upgrade), mean new install, no addition modules, it can work!!!
But it confused me again is, the ZC 1.5.1 work again, why same DB (actually the PHP files many haven't add the modules, I just want to quick test with WP, so using ZC 1.5.1 DB, then run the ZC 1.5.4 upgrade PHP script, it sucessful, then test buy, it not work again)
Now, I look for the worldpay module PHP files, have some idea, but ..... but ... since I am not programmer, I am from IT Pro field more than from programming filed, so my PHP is still learning more more on it ....
My idea is ...
look on /includes/modules/payment/wordlpay.php
Line about 195 to 203
PHP Code:
function _build_callback(){
$ssl = (defined('ENABLE_SSL') && ENABLE_SSL == true) ? 'SSL' : 'NONSSL' ;
$sid = ( defined('SID') && zen_not_null(SID) ) ? false : true ;
$callback_url = str_replace( array('http://','https://'),'', zen_href_link(FILENAME_WP_CALLBACK, zen_session_name().'='.zen_session_id() , $ssl, $sid));
return $callback_url ;
}
I am wonder, how to add some PHP coding that can output the '$callback_url' and 'return $callback_url' to the ZC's buildin logs folder /logs with a new filename like worldpay_callback.txt etc?? Or "Catch" it $_POST array value to the same /logs/worldpay_callback.txt for troubleshoot why it error over size The maximum limit of 131072
bytes has been exceeded
Thank you.
Re: WorldPay Module version 3.0 - Support thread
And one more inform, I enabled the WorldPay debug log, see some diff, but I am don't know why like this
Here are the key diff part that I am using WinMerge to compare two file ... hope someone here can post me to a direction how to check why no value ...
the work one
PHP Code:
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[1] => Array
(
[page] => checkout_shipping
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[2] => Array
(
[page] => checkout_payment
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[3] => Array
(
[page] => checkout_confirmation
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[4] => Array
(
[page] => wp_callback
[mode] => NONSSL
[get] => Array
(
[installation] => 1xxxxx
[zenid] => ef7566e8ec4a39377f7c88fa8efc2910
[msgType] => authResult
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
the not work one
PHP Code:
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
[1] => Array
(
[page] => wp_callback
[mode] => NONSSL
[get] => Array
(
[installation] => 1xxxxx
[zenid] => 3599c4d20d33a49110bf3665f6df79c3
[msgType] => authResult
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
Re: WorldPay Module version 3.0 - Support thread
Hi all,
I final find the problems source!!!!!
It is from Products Tables (Maybe)
I using a new install with themes and WorldPay 3.0, but export the bad DB tables one by one, then using those tables as unit by group, for example, customers, shipping etc restore one by one (Or groups, since ZC have relationship with multi tables) ...
OK, then after I am restore
- Test Products -
products
products_attributes
products_attributes_download
products_description
products_discount_quantity
products_notifications
products_options
products_options_types
products_options_values
products_options_values_to_products_options
products_to_categories
product_music_extra
product_types
product_types_to_category
product_type_layout
featured
specials
those of above tables ...
The stop redirect problems come again, so I know the problems from there.
OK, then I go to back end Disable them all Categories, then try just enable one or two Main Categories, IT CAN WORK!!!!
Then I enable more Categories, then try again, this time STOP WORK!!!!!
Then I review the Categories, inside it have many sub-categories, and .... totals Products (Many with Link) over 7000 ....
So .... I thinking this maybe why WorldPay Log have
wp_callback: failed CAUSED BY The maximum limit of 131072 bytes has been exceeded.
But .... if same DB with other themes on ZC 1.5.1, it can work .....
Or ZC back end have value control Categories send data max size??
So, ZC 1.5.4 changed many??? Or any idea are welcome ....
Thank you.
Re: WorldPay Module version 3.0 - Support thread
Quote:
Originally Posted by
explorer1979
So, ZC 1.5.4 changed many???
No, not likely.
Quote:
Originally Posted by
explorer1979
The maximum limit of 131072 bytes has been exceeded.
That sort of message is *usually* a PHP max memory_limit problem. Change your PHP configuration in php.ini and set memory_limit to 128M
Re: WorldPay Module version 3.0 - Support thread
Dr. Byte,
Thx for your kindly reply, but my server PHP.ini is using 512MB already before this problems coming ...
PHP File Uploads: On Max Size: 2048M POST Max Size: 2040M
PHP Version: 5.4.35 (Zend: 2.4.0) PHP Memory Limit: 512M
HTTP Server: Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9
PHP Safe Mode: Off
This server it is on USA Godaddy VPS Hosting
This VPS Server is 4G RAM, cPanel
It real make me trouble many time and I am used few month to try fix it. (Include hired at least 3 person to fix, no one find the problems where come from).
Until now I restore the mysql tables one by one then test on a new install ZC 1.5.4, and now lock down on all products tables and categories .. so I know it is the problems from there.
Or how about we hired and payment you for help if you can? (PM me if you can, other detail can talk by SkyPe)
And I have a new post here
https://www.zen-cart.com/showthread....ldPay-Callback
Maybe you can help to teach me how to rewrite ....
Thank you
Re: WorldPay Module version 3.0 - Support thread
Hi. I'm trying to integrate Worldpay with two Zen Cart based websites. I already have two Worldpay Ecommerce accounts ready, but after installing this module, and trying my best to integrate my Zen Cart stores with Worldpay, I've come to the conclusion that I will not be able to do this without help. Can anyone suggest companies that provide this service for a fee? Feel free to DM me.
Re: WorldPay Module version 3.0 - Support thread
Hi, has anyone got a link to a working version of this mod on their site so that we can see exactly how it works from a custtomer perspective?
Many Thanks.
Re: WorldPay Module version 3.0 - Support thread
Quote:
Originally Posted by
bonheddwr
Hi. I'm trying to integrate Worldpay with two Zen Cart based websites. I already have two Worldpay Ecommerce accounts ready, but after installing this module, and trying my best to integrate my Zen Cart stores with Worldpay, I've come to the conclusion that I will not be able to do this without help. Can anyone suggest companies that provide this service for a fee? Feel free to DM me.
Hi Bonheddwr,
What kind of issues are you experiencing when installing the module? I can confirm I have it working in v1.5.5a of zen cart.