VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on November 10, 2022, 19:28:02 PM

Title: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: hazael on November 10, 2022, 19:28:02 PM
I noticed that in Joomla 4.2.5 the link:
/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived
reports an error:
0: Class "JRequest" not found
I don't see this problem in Joomla 3.

4.0.7 10730
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: Milbo on November 10, 2022, 19:45:52 PM
Hmm, I checked any JRequest in the code, there is none in this file. Just in the router but only used if the function is available. But a plugin may use it. Activate the trace by enabling the joomla debug. I see for example that the multisafepay has still JRequests in the code.
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: hazael on November 10, 2022, 20:02:31 PM
The router doesn't seem to have anything to do with it. I turned off SEF on the website - the message still appears

index.php?option=com_virtuemart&view=pluginresponse
the message is probably ok: View not found [name, type, prefix]: pluginresponse, html, virtuemartView.

index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived
Here should appear the message: "thank you" but is 0: Class "JRequest" not found

Generally, the entire payment process works flawlessly. The client receives an email notification.
Before the Joomla update, everything worked fine. Google Analytics statistics led me to this problem - they stopped recording purchase conversions

I tried to enable debugging on this page, but I don't know why this analysis is not showing up on this page ...: - /
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: hazael on November 10, 2022, 23:02:42 PM
I found a bug. I had the old payment plugin installed in the vmpayment folder. Although the plugin was unpublished, it generated an error.
The topic can be closed.
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: Jörgen on November 14, 2022, 15:32:46 PM
Was the plugin activated as a plugin in Joomla plugins ? It should be deactivated there too.

Jörgen
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: hazael on November 14, 2022, 16:46:23 PM
Quote from: Jörgen on November 14, 2022, 15:32:46 PM
Was the plugin activated as a plugin in Joomla plugins ? It should be deactivated there too.
Yes, that's exactly why I had this error. I finally removed the incompatible plugin
Title: Re: pluginresponsereceived Class "JRequest" not found [j4.2.5]
Post by: Jörgen on November 14, 2022, 23:24:07 PM
All plugins that are active in Joomla, but have only unpublished payment methods actually get called. And if the contain badly written code, they can take down your site ☹️

Regards

Jörgen @ Kreativ Fotografi