Indexing a site via the administrative interface for using Joomla Smart Search we encountered the following error
Class JApplicationWeb defines getParams(), but that is not present in JApplicationAdministrator.
We changed the line
with
and the error disappeared
Call to undefined method JApplicationAdministrator::getParams() in <SITE ROOT>/administrator/components/com_chronoforms5/chronoforms/actions/joomla_plugins/joomla_plugins.php on line 27
Class JApplicationWeb defines getParams(), but that is not present in JApplicationAdministrator.
We changed the line
$contentParams = $mainframe->getParams('com_content');
with
$contentParams = \JComponentHelper::getParams('com_content');
and the error disappeared
Hi gquadro,
I don't see any errors here so I guess that may be something in the way your site is configured??
Bob
I don't see any errors here so I guess that may be something in the way your site is configured??
Bob
We looked some more in the issue and we found that perhaps we tried something too involuted...
To reproduce, starting with a clean Joomla install and Chronoforms component, module and plugin:
1. open a form and add "Joomla Plugins" to the "On load" event (Setup tab)
2. add the form to an article using the Chronoforms5 content plugin
3. save the article
We get the error message specified in the opening post, but the article is correctly saved and displayed
To reproduce, starting with a clean Joomla install and Chronoforms component, module and plugin:
1. open a form and add "Joomla Plugins" to the "On load" event (Setup tab)
2. add the form to an article using the Chronoforms5 content plugin
3. save the article
We get the error message specified in the opening post, but the article is correctly saved and displayed
Hi gquadro,
Ah, I can see that embedding a plug-in in a form that's embedded in a plug-in in an article might cause a problem. I suspect that really isn't what Max had in mind - the action is there to enable other Joomla! plug-ins to be be shown in a form.
If you really do need to do the double embedding then your fix is probably needed.
Bob
Ah, I can see that embedding a plug-in in a form that's embedded in a plug-in in an article might cause a problem. I suspect that really isn't what Max had in mind - the action is there to enable other Joomla! plug-ins to be be shown in a form.
If you really do need to do the double embedding then your fix is probably needed.
Bob
Hi,
Thank you for the fix, it should be available in the next update!
Best regards,
Max
Thank you for the fix, it should be available in the next update!
Best regards,
Max
This topic is locked and no more replies can be posted.