Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.


Or Register
Accueil / forum / Public Forum / Main Forum / CB plugins error 0 countFavorite

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers



The forum is in read only mode.

End of Forum > Moving to ticket system (01 Jan 2014)

The forum is now in read-only mode.

To send us support request, please open a tickets > Support > Tickets Support

We have tested the ticket system during the last 3 months and we are sastified with it. So the forum is just for history now.

× OLD Forum post could be checked here : forum.joomprod.com

CB plugins error 0 countFavorite

5 years 4 months ago - 4 years 9 months ago #23578 by loic

Since the beginning of the year, an update from CB cause an issue on an AdsManager plugin.

For those who have that error:
0 Call to a member function countFavorites() on null

Here is the solution.

Open components/com_adsmanager/views/myads/view.html.php and replace the line 158 to 160:
$contentmodel	=$this->getModel( "content" );
return $contentmodel->countFavorites($adid);

By those lines:
$db = JFactory::getDbo();
$query = "SELECT COALESCE(count(*),0) as total from #__adsmanager_favorite where adid = ".$adid;
$favorite = $db->loadObjectList();
return $favorite[0]->total;

Best regards.
The following user(s) said Thank You: maryam_f123
4 years 9 months ago #26290 by maryam_f123
Thanks. .
4 years 9 months ago #26345 by juloaadmin
You're welcome
4 years 9 months ago #26368 by upsonlinesite
4 years 9 months ago #26378 by juloaadmin
Don't hesitate to post a 100% review on extensions.joomla.org if you like our support
Moderators: perry
Time to create page: 0.379 seconds
Powered by Kunena Forum