PHP8 stops confirmed status from Worldpay plugin

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
1 year 2 months ago #348916

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.1
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : No Error message, no confirmed status accepted in to Hikashop

A bit of a weird one, I updated to PHP8 and all of a sudden we aren't getting any confirmed status form WorldPay even though the customers transactions have gone through fine with WorldPay. I went back to PHP7.4 and all is working again, tried looking at debug and logs but can't seem to see anything because of the call back?

Any ideas?

Thanks in advance
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 2 months ago #348917

Hi,

You must be using an old version of the worldpay plugin. Download the latest version on our website and install it on your and it should solve the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
1 year 2 months ago #348927

Hi Nicolas,
Downloaded and installed the new plugin, unfortunately it's still not working.
Any other thoughts?

Thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 2 months ago #348929

Hi,

Which worldpay plugin are you using ?
Did you update the correct one ?
It might actually not be linked to this plugin, but another plugin doing stuff when the order is confirmed and which needs to be updated.
So, it's likely you have a fatal error somewhere. The best would be to check the PHP error log of your server (you might need to ask your hosting company support for that). In it, search for "fatal error" messages. These are the ones which can break the processing and the message should point to the file causing the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
1 year 2 months ago #348952

Hi Nicolas, I'm using the Hikashop WorldPay Plugin (plg_hikashoppayment_bf_rbsbusinessgateway.zip version downloaded today), the old Brain Forge no longer shows any options and I haven't used that for a very long time.

I found the web logs and the error logs but no errors show up. It shows the world pay transactions and a failed transaction, but actually doesn't say it failed anywhere do you want me to send these over as I might be missing something.
Thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 2 months ago #348954

Hi,

Yes. It's likely the problem is elsewhere. Please send that to contact AT hikashop DOT com

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
7 months 2 days ago #355364

Hi Nicolas,
Yes it's been a long time since I last looked at this, but since I went live at the weekend with Joomla4 update, I had to change the PHP to 8.2 :-/
I actually went back to Namesco and saw a message from them, not sure if this helps:


"Hi Ian

I've looked more at this, and added the config change,. This errors immediately on home page under php7.4:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemBigshotgoogleanalytics has a deprecated constructor in /var/www/web/plugins/system/bigshotgoogleanalytics/bigshotgoogleanalytics.php on line 18 Notice: Only variables should be assigned by reference in /var/www/web/plugins/system/bigshotgoogleanalytics/bigshotgoogleanalytics.php on line 29\


Setting PHP to 8.2 does indeed HTTP500, but there's an immediate redirect and then a load of errors:

Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/web/libraries/vendor/joomla/input/src/Input.php on line 41 Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/web/libraries/vendor/joomla/input/src/Input.php on line 170 Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/web/libraries/src/Input/Input.php on line 31 Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/web/libraries/src/Input/Cookie.php on line 21 Deprecated: Creation of dynamic property Joomla\CMS\User\User::$aid is deprecated in /var/www/web/libraries/src/User/User.php on line 953 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\User\User::$aid is deprecated in /var/www/web/libraries/src/User/User.php on line 255 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property PlgSystemAdvancedModules::$_id is deprecated in /var/www/web/libraries/regularlabs/src/SystemPlugin.php on line 65 Deprecated: Creation of dynamic property PlgSystemSourcerer::$_id is deprecated in /var/www/web/libraries/regularlabs/src/SystemPlugin.php on line 65 Deprecated: Creation of dynamic property plgSystemHikashopuser::$currency is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 25 Deprecated: Creation of dynamic property plgSystemHikashopuser::$entries is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 26 Deprecated: Creation of dynamic property plgSystemHikashopuser::$session is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 29 Deprecated: Creation of dynamic property plgSystemHikashopuser::$cart is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 31 Deprecated: Creation of dynamic property plgSystemHikashopuser::$wishlist is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 32 Deprecated: Creation of dynamic property plgSystemHikashopuser::$checkout_fields is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 33 Deprecated: Creation of dynamic property plgSystemHikashopuser::$checkout_fields_ok is deprecated in /var/www/web/plugins/system/hikashopuser/hikashopuser.php on line 34 Deprecated: Creation of dynamic property plgSystemDJjQueryMonster::$_enabled is deprecated in /var/www/web/plugins/system/djjquerymonster/djjquerymonster.php on line 51 Deprecated: Creation of dynamic property PlgSystemModals::$_id is deprecated in /var/www/web/libraries/regularlabs/src/SystemPlugin.php on line 65 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/web/libraries/src/Uri/Uri.php on line 141 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property ContactRouterRulesLegacy::$router is deprecated in /var/www/web/components/com_contact/helpers/legacyrouter.php on line 30 Deprecated: Creation of dynamic property ContentRouterRulesLegacy::$router is deprecated in /var/www/web/components/com_content/helpers/legacyrouter.php on line 30 Deprecated: Creation of dynamic property NewsfeedsRouterRulesLegacy::$router is deprecated in /var/www/web/components/com_newsfeeds/helpers/legacyrouter.php on line 30 Deprecated: Creation of dynamic property UsersRouterRulesLegacy::$router is deprecated in /var/www/web/components/com_users/helpers/legacyrouter.php on line 30 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: Creation of dynamic property Joomla\CMS\Cache\Storage\FileStorage::$_threshold is deprecated in /var/www/web/libraries/src/Cache/CacheStorage.php on line 107 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/web/plugins/system/djjquerymonster/djjquerymonster.php on line 303 Notice: Only variables should be assigned by reference in /var/www/web/plugins/system/bigshotgoogleanalytics/bigshotgoogleanalytics.php on line 29 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/web/libraries/src/Date/Date.php on line 112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

Many thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
7 months 2 days ago #355375

Hi,

These messages are from the bigshotgoogleanalytics plugin and Joomla itself.
So they are not related to the issue from worldpay.
The message " Deprecated: Function utf8_encode() is deprecated in /var/www/web/libraries/src/Filter/InputFilter.php on line 1181 " has been fixed by Joomla with this pull request:
github.com/joomla/joomla-cms/pull/39583
The fix was included at the beginning of the year in Joomla 4.2.7 as far as I can see. Are you using the latest version of Joomla 4 ?

If you have a 500 error, it means that there is a fatal error. Normally, the error should appear on the page directly, but it can be hidden by the web server based on how it is configured. So the best is to look at the PHP error log and the web server error log to get the real error message.

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
7 months 2 days ago #355379

Hi Nicolas,
I've switched off every non-system plugin I could find, still happening and now I get a call back failure from worldpay if I cancel the transaction.

I think the biggest issue here is the support from NAMESCO host who say the don't have error logs because they don't have it switched on!!! And they won't switch it on for me :-( Not sure what I can do now.
Thanks as usual for all your hard work and help.

Thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
7 months 2 days ago #355381

Hi,

Well, without the error message, I can't do anything.
It's like going to the car repair shop without the car and asking them how to fix the car for a problem they never had to deal with. They'll tell you you need to bring the car so that they can first check what's going on.

Would it be possible to move the website to another hosting in order to check what's going on there ?

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
7 months 2 days ago #355387

Exactly, I know what you're saying. I had a bit of a meltdown with Namesco this morning, they said they would re-investigate the logs (which don't exist!!)... I'm not going to hold my breath...

I have thought about loading it on to Krystal's servers, and my customer also has an extra unused Worldpay junior select account... The jpa is already on the server..
I'll speak to Krystal first about my intentions.

Thanks

Ian

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
6 months 3 weeks ago #355556

Hi Nicolas,
Hope you are well.

I gave up with Namesco, so I dumped a copy of the website on a different hosted server, had them looking for the 500 error this afternoon, but sadly they couldn't locate anything. They didn't find any 500 errors, even though I have had a 500 Error bounce fro WorldPay :-( However there is a log which I could sent ou and the WorldPay Error, it's got some private information in though.
Thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
6 months 3 weeks ago #355559

Hi,

Great ! I think we're moving forward.
What's great is the response.txt file you provided.
In it, you can find the abridged PHP error message:

0 - implode(): Argument #2 ($array) must be of type ?array, string given
Ideally, it would be great to replicate the same issue with the "debug" setting of the Joomla configuration turned on. That response.txt would then contain the full error message with the file path and line number where the problem is.
Without it, I can only guess what the exact problem is. Potentially, it could be in anything linked to HikaShop, not necessarily in the payment plugin.
However, supposing that the error is inside the code of the Worldpay plugin, there are only 2 "implode" calls in there.
One of them is this one:
$hostError = (!preg_match('#('.implode('|',$ips).')#',$ip) );
it checks the IP address of the worldPay server based on the IP addresses configured in the settings of the WorldPay payment method. That setting is empty by default. If you filled it, it could well explain the problem.
So supposing this setting is filled on your website, try changing this line in the file plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php to:
$hostError = (!preg_match('#('.$ips.')#',$ip) );
and it should fix the problem.

If that's not the problem, then will need the response.txt with the debug turned on to be able to tell you what to do to fix the problem.

The following user(s) said Thank You: ianspeed

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
6 months 3 weeks ago #355566

Hi Nicolas,
That's has stopped the 500 error, but given us another slight problem...

Instead of setting the status to confirmed, it's set it to cancelled? Any ideas, as under PHP 7.4 it all works as normal..

Thanks
Ian

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
6 months 3 weeks ago #355568

Hi,

Potential issues could be:
- the IP address not matching. Try emptying the "IPs" setting of the payment method and see if that helps.
- the amount paid not exactly the same as the total amount of the order in HikaShop. Please check that.
- the transaction being refused by the bank for some reason. Probably not this since I suppose that the payment went through successfully in your WorldPay merchant interface (make sure that's the case).
If that doesn't help, we'll need the debug data to be able to say. Try again after activating the "debug" setting of the payment method, do a test, and provide what you get in the "payment log file" setting of the HikaShop configuration page.

The following user(s) said Thank You: ianspeed

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
6 months 3 weeks ago #355571

Thanks Nicolas,
Guess they don't need the IP anymore... or a specific server.
Next caveat is the cart isn't being emptied on the confirmed status, works for PayPal but not for WorldPay, again was working under PHP 7.4?

Thanks for all your help so far
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
6 months 3 weeks ago #355573

Hi,

First, are you sure this is the case ?
Supposing that you have the "enable multiple cart" setting activated in the HikaShop configuration, you can have several carts linked to your account. And with all the tests you did recently, it's probable that you would have created many carts with the exact same thing in them, and you might not have transformed all of them into orders. And when HikaShop clears the cart, it automatically loads the next one linked to your account as the current cart.
So it's possible that you might think the cart is not being cleared when in fact it is, but the next one just has the same content.
So first, check your carts in the menu Customers>Carts and that "enable multiple cart" setting.
Or just make a test with a new user account in order to make sure you don't have other carts interfering with your test.

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
6 months 3 weeks ago #355576

Hi Nicolas,
"Allow Multiple Cart" is off, I did an actual live purchase as well, which was on the live server.
Thanks
Ian

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
6 months 3 weeks ago #355587

Then I don't see why the behavior would be different for Worldpay and other payment methods.
It should behave the same.
Basically, it first depends on the "clean cart when order is" setting of the HikaShop configuration.
When the setting set to "created", it will clear the cart when the order is created, before the customer is redirected to the payment gateway. So this shouldn't happen.
When the setting is set to "confirmed", it will clear the cart when the customer comes back to the thank you page, after the payment.

The only reason the cart wouldn't be cleared would be if the setting is set to "confirmed" and the customer doesn't click on the "go back to the shop" link at the end of the payment process on Worldpay.

Please Log in or Create an account to join the conversation.

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
6 months 3 weeks ago #355589

Hi Nicolas,
There is a payment response page which sits between the completed WorldPay payment and the website, I haven't bypassed any of these and I have always let the status page redirect me straight back to the initiating sending website.
At no point am I breaking the call back from WorldPay.
Thanks
Ian

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum