404 error on checkout after updating

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348307

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.6.
-- PHP version -- : 8.1.14
-- Browser(s) name and version -- : Chrome and Firefox
-- Error-message(debug-mod must be tuned on) -- : 404

Hi, URGENT LIVE BUSINESS SITE.... NO ORDERS BEING TAKEN.

Updated to 4.7.0 this morning and we are now getting a 404 error when trying to pay?? Nothing worked PayPal, Worldpay or bank transfer??
I have reinstalled the plg_hikashoppayment_bf_rbsglobalgateway and PayPal works without the 404 error but Worldpay and bank transfer still give a 404 error. They do however create the order?

I did revert back to a previous version as this usually fixes error but not this time?

Rgds

Attachments:
Last edit: 1 year 10 months ago by mohairbears.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 10 months ago #348309

Hi,

The error on your screenshot indicates that you have an old version of the plg_hikashoppayment_bf_rbsglobalgateway plugin.
So download it again on our website here: www.hikashop.com/marketplace/product/123...-global-gateway.html
Then, install it on your website and it will fix that error.

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348317

Hi, did that and just done it again from your link and WorldPay still give a 404 error?

I did have the same error 2 months ago and you gave me this fix. I have checked and it is not this as that is now correct?

This plugin is included in HikaShop.
I believe this issue is linked to your PHP version, not Joomla and is caused by a typo in the code of the plugin.
Change the line:
$ohistory->data = ob_get_clean();
to:
$history->data = ob_get_clean();
in the file plugins/hikashoppayment/cardsave/cardsave.php and it should fix the problem.
We'll include the fix in the next version of HikaShop.

Last edit: 1 year 10 months ago by mohairbears.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 10 months ago #348320

Hi,

What are we talking about here ?

The error in www.hikashop.com/media/kunena/attachments/916/404_error.jpg comes from the WorldPay plugin. This plugin is NOT included in HikaShop and if you updated it with the install package from our marketplace, it is completely impossible you get that exact same error.

If you have another error message, please provide the exact message along with the corresponding callstack from the debug.

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348322

Hi Error is coming from the 'Hikashop Worldpay Business Gateway Plugin' you have ther screendump of the error on first contact!
I have no idea WHAT a callstack is, I'm guessing most Hikashop users are not IT specialists either!???

I have told you what is happening! 404 error on pressing pay but an order is created, exactly the same thing is happening with the HIKASHOP bank transfer plugin! this has only only happened after upgrading to Hikashop 4.7

Checkout post www.hikashop.com/forum/checkout/905027-e...checkout.html#344835

Call stack
# Function Location
1 () JROOT/plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway_end.php:39
2 require() JROOT/administrator/components/com_hikashop/helpers/helper.php:3071
3 hikashopPlugin->showPage() JROOT/plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php:273
4 plgHikashoppaymentbf_rbsbusinessgateway->onAfterOrderConfirm() JROOT/administrator/components/com_hikashop/classes/order.php:965
5 hikashopOrderClass->createFromCart() JROOT/components/com_hikashop/controllers/checkout.php:674
6 checkoutController->confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:672
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2408
8 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:88
9 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
11 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
12 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:200
13 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:241
14 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
15 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
16 require_once() JROOT/index.php:32

Rgds

Last edit: 1 year 10 months ago by mohairbears.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 10 months ago #348326

Hi,

In simple terms, a "call stack" is a list of files related to an error. If you look at the screenshot in your first message, you can see the text "call stack" in the center of the image, just before the long list of files.

What I'm saying is that even if the error message above that text "call stack" is the same, the files list below must be different.

And you confirm it with this new message. Before the call stack was pointing at the WorldPay Global gateway plugin. The new call stack you provided is pointing at the WorldPay Business gateway plugin. So similarly to what you did for the global gateway plugin, you need to download the latest version of the Business gateway plugin on our website to not get that error.

You're saying that these errors happened after updating HikaShop. However, HikaShop doesn't include these plugins anymore so it shouldn't do that. I suppose that you must have started with a really old version of HikaShop and you still have the folders for the global gateway and business gateway plugins in the administrator/components/com_hikashop/extensions/ folder. And the update process finds these old versions and reinstall them which overwrite the new versions you're using, generating these errors.
Please delete that whole administrator/components/com_hikashop/extensions/ folder via FTP. It will prevent the issue from happening again in the future.

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348328

Yeah saw it was called a 'call stack' when I looked at what I sent ;o)

Guessing I downloaded the 'global' instead of the business before contatcing you when trying to fix it? hence the confusion, sorry. I used to use the global for cardsave.

With your advice to delete the extentions folder, I have an issue with monthly data from 'mass actions' that show 2 different 'payent methods'
is this to do with the 'global' and 'business' plugins?

order_id order_number order_payment_method
75727 G7F5D7M27 bf_rbsbusinessgateway
75728 G7F5D7N28 bf_rbsbusinessgateway
75729 G7F5D7P29 bf
75731 G7F5D7R31 bf
75732 G7F5D7S32 bf
75741 G7F5E7C41 bf
75742 G7F5E7D42 bf
75743 G7F5E7E43 bf_rbsbusinessgateway
75750 G7F5E7M50 bf
75753 G7F5E7Q53 bf

Last edit: 1 year 10 months ago by mohairbears.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 10 months ago #348331

Hi,

Mmm. It's hard to follow you.
I presume the error is fixed on the frontend. Is that correct ?

You're talking about a new issue with a mass action. However, it is not related to what you did so far to fix the previous issues.
Could you provide a screenshot of the settings of the mass action ?
It seems you're saying that the payment method name is wrong for some of the orders in the export from the mass action. Can you confirm what you see for the payment method in the corresponding orders details page in the backend ?

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348375

Hi, Yes the front end is now fixed thanks.

Yes, it just gives me 2 names where there used to be 1? not a mega issue as I use a pivot table for the data, just thought I would mention it.

Payment method in the backend states 'WorldPay'

Screen shot attached

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 10 months ago #348378

Hi,

I would recommend including the order_payment_id in the export. This contains the id of the payment method. That way, you'll be able to confirm if it's the same for all of the orders and only the method is wrong, or if it is actually using another payment method.

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

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
1 year 10 months ago #348437

Hi, Tried this and just numbers came up. Doing what you told me to do above (deleting the extensions folder) appears to have fixed the issue though.

Rgds

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

Time to create page: 0.075 seconds
Powered by Kunena Forum