Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Error output

More
11 years 4 months ago #2633 by qpidity
Error output was created by qpidity
Hi,

I recently upgraded the latest news enhanced module and when I did so I suddenly ended up with the following error message:

Missing argument 4 for plgContentLoadModuleInArticle::onContentPrepare() in plugins/content/loadmoduleinarticle/loadmoduleinarticle.php on line 18

Any idea how to resolve? I've uninstalled and reinstalled the older version in the meantime but would like to go back to the lastest version asap as I need to removal of the plugin code from the module output

Thanks in advance

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

More
11 years 4 months ago - 11 years 4 months ago #2635 by admin
Replied by admin on topic Re: Error output
Hello,
I was using the module in a new website yesterday and into that same plugin 'load module in article' and got the same error. I am not sure what is causing that (other than the module now looks at plugins inside its content, so when called from the 'load module in article' plugin, it may be a problem of a plugin calling a plugin). My solution as a workaround for now, before I figure out what is going on (maybe it is a problem with the plugin 'load module', I have to investigate), is to disable error reporting on the live site. You can also comment line 271 of code in the module (in helpers/helper_standard.php if you are not using K2) :
$app->triggerEvent('onContentPrepare', array('com_content.article', &$item, &$params));

Olivier.
Last edit: 11 years 4 months ago by admin.

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

More
11 years 4 months ago - 11 years 4 months ago #2651 by admin
Replied by admin on topic Re: Error output
It turns out the issue comes from the plugin 'load module in article'.
The plugin should have
onContentPrepare($context, &$article, &$params, $limitstart=0)
instead of
onContentPrepare($context, &$article, &$params, $limitstart)

Olivier.
Last edit: 11 years 4 months ago by admin.

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

More
11 years 4 months ago #2663 by qpidity
Replied by qpidity on topic Re: Error output
Hi Olivier,

Thanks for getting back to me on this. Can you confirm which file needs to be altered?

Many thanks
Quentin

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

More
11 years 4 months ago #2665 by admin
Replied by admin on topic Re: Error output
Hi Quentin,
just go to the plugins/content/loadmoduleinarticle folder and alter the php file you will find in the directory. The developer of the plugin has been notified and replied to me that this bug fix will be part of its next update.

Olivier.

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

More
11 years 4 months ago #2675 by qpidity
Replied by qpidity on topic Re: Error output
Thanks Olivier. Much appreciated. That worked perfectly. :)

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