- Posts: 3
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
Error output
- qpidity
-
Topic Author
- New Member
-
Less
More
IP: 79.146.53.27
13 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
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
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago - 13 years 4 months ago #2635
by admin
Olivier.
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) :
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) :
Code:
$app->triggerEvent('onContentPrepare', array('com_content.article', &$item, &$params));
Olivier.
Last edit: 13 years 4 months ago by admin.
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago - 13 years 4 months ago #2651
by admin
Olivier.
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
instead of
The plugin should have
Code:
onContentPrepare($context, &$article, &$params, $limitstart=0)
Code:
onContentPrepare($context, &$article, &$params, $limitstart)
Olivier.
Last edit: 13 years 4 months ago by admin.
- qpidity
-
Topic Author
- New Member
-
Less
More
- Posts: 3
IP: 83.39.206.44
13 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
Thanks for getting back to me on this. Can you confirm which file needs to be altered?
Many thanks
Quentin
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago #2665
by admin
Olivier.
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.
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.
- qpidity
-
Topic Author
- New Member
-
Less
More
- Posts: 3
IP: 78.129.246.24
13 years 4 months ago #2675
by qpidity
Replied by qpidity on topic Re: Error output
Thanks Olivier. Much appreciated. That worked perfectly.
