• 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: call to a member function setquery() on null

call to a member function setquery() on null 2 years 2 months ago #42559

  • fotograaf
  • fotograaf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Chris
  • Posts: 1
In an new form i want to display the amount of the total subscritions for an upcoming workshop. Therfore I using a textbox with the following code in te standard value field:
//<code>$db = JFactory::getDbo();
$db->setQuery("SELECT COUNT(`SubmissionId`) FROM #__rsform_submissions WHERE `FormId`='".(int) $formId."'");
return "Er zijn op dit moment " . $db->loadResult() . " inschrijvingen. ";//</code>

The result is an fatal error.
when is use te same query in php scripts(without //<code> and //</code> and changes return into $formLayout the correct value is printed

using rsform pro 3.1.1 on joomla 3.10 running on php 8.1.
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!