Incompatibility with smart search

gquadro 02 Dec, 2016
1 Likes
Indexing a site via the administrative interface for using Joomla Smart Search we encountered the following error

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
GreyHead 02 Dec, 2016
Hi gquadro,

I don't see any errors here so I guess that may be something in the way your site is configured??

Bob
gquadro 02 Dec, 2016
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
GreyHead 02 Dec, 2016
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
Max_admin 02 Dec, 2016
Hi,

Thank you for the fix, it should be available in the next update!

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.