• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Class 'JRequest' Not Found after migration to J4

Class 'JRequest' Not Found after migration to J4 2 years 6 months ago #41601

  • dhoeke
  • dhoeke's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi there,

After migration to Joomla 4 I get this error when asking for the form (contact and another one)..

Class 'JRequest' Not Found

Anyone any idea? All has the latest version. Thanks.
The administrator has disabled public write access.

Class 'JRequest' Not Found after migration to J4 2 years 6 months ago #41605

  • dhoeke
  • dhoeke's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
This problem is solved with a rewrite of PHP script called on form display.

OLD

$submission_value = JRequest::getVar('submissionId');
list($replace, $with) = RSFormProHelper::getReplacements($submission_value);
$formLayout = str_replace($replace, $with, $formLayout);

NEW

$submission_value = JFactory::getApplication()->input->getInt('submissionId');
list($replace, $with) = RSFormProHelper::getReplacements($submission_value);
$formLayout = str_replace($replace, $with, $formLayout);
The administrator has disabled public write access.

Class 'JRequest' Not Found after migration to J4 9 months 4 days ago #42860

  • 41global
  • 41global's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
I have this same issue currently. Where exactly does this script need to go? Thnx
The administrator has disabled public write access.

Class 'JRequest' Not Found after migration to J4 9 months 3 days ago #42861

  • dhoeke
  • dhoeke's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
At Form Properties - Scripts - PHP scripts.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!