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.

Login

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

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

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

CB plugins error 0 countFavorite

More
8 years 2 months ago - 7 years 8 months ago #23578 by loic
CB plugins error 0 countFavorite was created by loic
Hello,

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;
 
$db->setQuery($query);
 
$favorite = $db->loadObjectList();
 
return $favorite[0]->total;

Best regards.
Last edit: 7 years 8 months ago by loic.
The following user(s) said Thank You: maryam_f123
More
7 years 8 months ago #26290 by maryam_f123
Replied by maryam_f123 on topic CB plugins error 0 countFavorite
Thanks. .
More
7 years 8 months ago #26345 by juloaadmin
Replied by juloaadmin on topic CB plugins error 0 countFavorite
You're welcome
More
7 years 8 months ago #26368 by upsonlinesite
More
7 years 8 months ago #26378 by juloaadmin
Replied by juloaadmin on topic CB plugins error 0 countFavorite
Don't hesitate to post a 100% review on extensions.joomla.org if you like our support
Moderators: perry
Time to create page: 0.206 seconds
Powered by Kunena Forum