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

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.

[RESOLVED] Community Builder plugin

More
8 years 3 months ago - 8 years 2 months ago #23348 by Reshylov
[RESOLVED] Community Builder plugin was created 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:
Last edit: 8 years 2 months ago by loic.
More
8 years 3 months ago #23377 by loic
Replied by loic on topic Community Builder plugin
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.
More
8 years 3 months ago #23444 by Reshylov
Replied by Reshylov on topic Community Builder plugin
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.
More
8 years 3 months ago #23477 by loic
Replied by loic on topic Community Builder plugin
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.
More
8 years 2 months ago #23588 by Reshylov
Replied by Reshylov on topic Community Builder plugin
Thanks, that works perfectly!
More
8 years 2 months ago #23610 by loic
Replied by loic on topic Community Builder plugin
Hello,

I update this topic to resolved.

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