Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Missing argument 2 for plgSystemJoomsef::onContent
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Missing argument 2 for plgSystemJoomsef::onContent

Missing argument 2 for plgSystemJoomsef::onContent 12 years, 9 months ago #28858

Missing argument 2 for plgSystemJoomsef::onContentPrepare() in /plugins/system/joomsef/joomsef.php on line 104
Missing argument 3 for plgSystemJoomsef::onContentPrepare() in /plugins/system/joomsef/joomsef.php on line 104

I don't understand this warnings ? I have make all possible setting and no possibility to resolve.

This warnings are only on ads page of adsmanager component.

Using joomla 2.5.3 with JoomSEF 4.2.5 Adsmanager extension 3.0.0 Comprofiler extension 3.0.1

You can see warnings on www.bonsplansdanslaire.fr and select each ad.

Thank you for help !
The topic has been locked.

Re: Missing argument 2 for plgSystemJoomsef::onContent 12 years, 9 months ago #28883

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
I've checked the AdsManager component and it doesn't follow the correct Joomla 2.5 signature for onContentPrepare plugin method. The method in Joomla 2.5 requires 3 arguments, as it's defined as:
public function onContentPrepare($context, &$row, &$params, $page = 0)

but AdsManager provides only one argument in /components/com_adsmanager/views/details/view.html.php on line 102:
$results = $dispatcher->trigger('onContentPrepare', array ($content));

Please contact AdsManager developers about this.
ARTIO Support Team
The topic has been locked.

Re: Missing argument 2 for plgSystemJoomsef::onContent 12 years, 9 months ago #28899

Thank you very much, for your answer.

I've immediately post on joomprod adsmanager forum.

Now, I've tested this.

I've replaced in /components/com_adsmanager/views/details/view.html.php on line 102:

$results = $dispatcher->trigger('onContentPrepare', array ($content));

BY
$results = $dispatcher->trigger('onContentPrepare', array ($context, &$row, &$params, $page = 0));


Now it works, but I'm not sure that all work with this code.
I'll post joomprod forum answer as soon as I have.

PS : sorry for my english, I'm French.
The topic has been locked.
  • Page:
  • 1
User Login Empty