Loadmodule RSForm

More
1 year 5 months ago #82912 by nexteo
Loadmodule RSForm was created by nexteo
Hi there

Following a site migration from version 3.10.11 to version 4.2.3 of Joomla, I encounter a problem with the Loadmodule field in the item.php view when I call an RSform type module.
My environment is as follows:
  • Flexicontent 4.1.3 (latest version)
  • RS Form 3.1.3 (latest version ai,if only for module)
  • All my config settings are ok
  • Version of php 8.1
Here is the result of my investigations:
The problem comes from the hidden field used in my form to call the "recipient" variable (simple text field id=17), with the code used, which I had found in the Flexicontent support a few years ago.

//<code>
$db = & JFactory::getDBO();
$fcitem_id= JRequest::getInt('id',0);
$field_id=17;
if ($fcitem_id) {
   $query = 'SELECT c.title,c.alias,f.value'
      .' FROM '.'#'.'__content AS c '
      .' LEFT JOIN '.'#'.'__flexicontent_fields_item_relations AS f'
      .' ON f.item_id = c.id AND f.field_id='.(int)$field_id
      .' WHERE c.id = ' . $fcitem_id;
 
   $db->setQuery($query);
   $itemdata = $db->loadObject();
   $item_title = $itemdata->title;
}
return $itemdata->value;
//</code>

If I publish this hidden field, then I get the error 0 Class "JRequest" not found.
I don't know how to write php directly, would you have an idea to recover my "recipient" variable?

Thanks in advance for your insight.

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

More
1 year 5 months ago - 1 year 5 months ago #82913 by micker
Replied by micker on topic Loadmodule RSForm
hello you have a buf in your code joomla 4 depreciate jrequest
ordi-genie.com/joomla/developpement/code...omla-3-vers-joomla-4
 

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 1 year 5 months ago by micker.

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

More
1 year 5 months ago #82920 by nexteo
Replied by nexteo on topic Loadmodule RSForm
Everything is ok
Thank you Micker for this quick feedback

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

More
1 year 5 months ago #82923 by micker
Replied by micker on topic Loadmodule RSForm
with pleasure

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.287 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline