error Class 'JRequest' not found in

  • Posts: 11
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
4 weeks 1 day ago #335776

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 4.0.3
-- PHP version -- : 7.4
-- Error-message(debug-mod must be tuned on) -- : JRequest Error

hi
We wrote a payment gateway. It was not a problem on Joomla 3.9 and it has been working since we updated Joomla to version 4. Unfortunately this plugin has encountered an error Class 'JRequest' not found in. How can I change this JRequest class?

thank you

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

  • Posts: 73880
  • Thank you received: 11330
  • MODERATOR
4 weeks 7 hours ago #335789

Hi,

Instead of JRequest::getVar('xxx'); you can use hikaInput::get()->getVar('xxx');

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

  • Posts: 11
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
4 weeks 4 hours ago #335794

thank you i wrote

function onPaymentConfiguration(&$element)
{
$subtask = hikaInput::get()->getCmd('subtask', '');
parent::onPaymentConfiguration($element);
//$this->address = hikashop_get('type.address');
}
Unfortunately, I got an error

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

  • Posts: 11
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 weeks 6 days ago #335797

hi
thanks for your help. JRequest error problem solved.

But after returning from the payment gateway(callback), I encounter the following error:
0
Invalid address: (to):


site.com/index.php?option=com_hikashop&c...0006285412&Status=OK

In the return link, you can see that the purchase is correct, but due to this error, the status of the orders will not be confirmed. I think the reason for this is this error.
thank you.

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

  • Posts: 73880
  • Thank you received: 11330
  • MODERATOR
3 weeks 5 days ago #335806

Hi,

Well, there is no error "Invalid address" in HikaShop. So I'm not sure what's going on.
I would recommend you activate the "error reporting" and "debug mode" settings of the joomla configuration.
That will give you an error message with more information on what's going on.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum