problem with virtuemart 4.0 - 0 Class 'JRequest' not found

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
cabreradog
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Mar 31, 2016 6:11 pm

problem with virtuemart 4.0 - 0 Class 'JRequest' not found

Post by cabreradog » Wed May 18, 2022 12:59 am

Hello, I am migrating from joomla 3.9 to 4.1
Now I have a problem with virtuemart 4.0 When I click buy, I get an error 0 Class 'JRequest' not found
Maybe someone knows where it can come from?
I attach image of joomla error table.
tks.
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Wed May 18, 2022 1:24 am, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 14701
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: problem with virtuemart 4.0 - 0 Class 'JRequest' not found

Post by toivo » Wed May 18, 2022 3:59 am

The stack trace shows that the error occurs in the file plugins/vmcustom/stockable/stockable.php that is trying to access the JRequest class. The JRequest class was deprecated in Joomla 3 and therefore it is no longer available in Joomla 4.

If you are happy to modify the VirtueMart plugin, the following topic at the Joomla forum could be useful: JRequest replacement in Joomla 4.

If further incompatibilities are reported, it is best to ask for advice at the VirtueMart forum.
Toivo Talikka, Global Moderator

cabreradog
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Mar 31, 2016 6:11 pm

Re: problem with virtuemart 4.0 - 0 Class 'JRequest' not found

Post by cabreradog » Wed May 18, 2022 11:03 pm

Hello, thanks for the answer. I'll try contact the virtuemart forum, I'll post the solution.

User avatar
jenkinhill
Joomla! Explorer
Joomla! Explorer
Posts: 362
Joined: Wed Sep 07, 2005 11:25 am
Location: Lowestoft UK
Contact:

Re: problem with virtuemart 4.0 - 0 Class 'JRequest' not found

Post by jenkinhill » Sat May 21, 2022 9:44 am

I believe the breakdesigns.net Stockable Custom Fields plugin is not yet J4 compatible.


Post Reply

Return to “Extensions for Joomla! 4.x”