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 / Presales / [RESOLVED] Community Builder plugin

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

×

Notice

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.

[RESOLVED] Community Builder plugin

4 years 8 months ago - 4 years 8 months ago #23348 by Reshylov
Hello,

I am evaluating the Adsmanager now and faced the issue with community builder plugin (the user ads tab). Once I install and publish the plugin I see the Fatal Error on opening the profile:

Fatal error: Call to a member function countFavorites() on a non-object in Z:\home\prostotak1.org\www\components\com_adsmanager\views\myads\view.html.php on line 160

Note: I have this issue with Ads plugin, not the Favourites one.
This error appears only when user have published ads. When no ads published, the profile and tab are displayed correctly.

Attachments:
4 years 8 months ago #23377 by loic
Hello,

Could you tell me which version of AdsManager you are using ? and which version of CB too ?

Did you enable the favorite feature of AdsManager ?

Best regards.
4 years 8 months ago #23444 by Reshylov
Hello,

I am using the Adsmanager 3.1.7 and CB 2.1.0.
The Favourites feature is enabled. The error appears anyway, no matter if the favorites feature is enabled or not.
4 years 8 months ago #23477 by loic
Hello,

A solution to that issue is to replace the code in component/com_adsmanager/views/myads/view.html.php, line 158 to 160:
$contentmodel	=$this->getModel( "content" );
 
return $contentmodel->countFavorites($adid);

by this :
$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.
4 years 8 months ago #23588 by Reshylov
Thanks, that works perfectly!
4 years 8 months ago #23610 by loic
Hello,

I update this topic to resolved.

Best regards.
Time to create page: 0.218 seconds
Powered by Kunena Forum