[Skip to main content](#vessel-content)

#   error Class 'JRequest' not found in

##

- **[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")**
- [![farzadfarzad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile") Topic Author
- [ Offline](/forum/user/55939-farzadfarzad)

Less More

- Posts: 20
- Thank you received: 0
-
-

5 years 2 months ago [\#335776](#335776) by [farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")  *[error Class 'JRequest' not found in](/forum/29-payment-methods/903207-error-class-jrequest-not-found-in#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")* was created by *[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy85MDMyMDctZXJyb3ItY2xhc3MtanJlcXVlc3Qtbm90LWZvdW5kLWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 2 months ago [\#335789](#335789) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error Class 'JRequest' not found in](/forum/29-payment-methods/903207-error-class-jrequest-not-found-in#335789 "-- 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")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy85MDMyMDctZXJyb3ItY2xhc3MtanJlcXVlc3Qtbm90LWZvdW5kLWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")**
- [![farzadfarzad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile") Topic Author
- [ Offline](/forum/user/55939-farzadfarzad)

Less More

- Posts: 20
- Thank you received: 0
-
-

5 years 2 months ago [\#335794](#335794) by [farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")  Replied by *[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")* on topic *[error Class 'JRequest' not found in](/forum/29-payment-methods/903207-error-class-jrequest-not-found-in#335794 "-- 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")*

thank you i wrote

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy85MDMyMDctZXJyb3ItY2xhc3MtanJlcXVlc3Qtbm90LWZvdW5kLWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")**
- [![farzadfarzad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile") Topic Author
- [ Offline](/forum/user/55939-farzadfarzad)

Less More

- Posts: 20
- Thank you received: 0
-
-

5 years 2 months ago [\#335797](#335797) by [farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")  Replied by *[farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")* on topic *[error Class 'JRequest' not found in](/forum/29-payment-methods/903207-error-class-jrequest-not-found-in#335797 "-- 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")*

**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&amp;c...0006285412&amp;Status=OK](https://site.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=papapal&tmpl=component&lang=en&order_token=rbQegjBI&Itemid=970&order_id=68&amount=123000&Authority=0000000000000000000000000000006285412&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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy85MDMyMDctZXJyb3ItY2xhc3MtanJlcXVlc3Qtbm90LWZvdW5kLWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 2 months ago [\#335806](#335806) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error Class 'JRequest' not found in](/forum/29-payment-methods/903207-error-class-jrequest-not-found-in#335806 "-- 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")*

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.

The following user(s) said Thank You: [farzadfarzad](/forum/user/55939-farzadfarzad "View farzadfarzad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy85MDMyMDctZXJyb3ItY2xhc3MtanJlcXVlc3Qtbm90LWZvdW5kLWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
