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 / 2 Copies of AdManager Installed- Fatal Error!

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

2 Copies of AdManager Installed- Fatal Error!

More
11 years 3 months ago - 11 years 3 months ago #2958 by adsMngrSprt
Our requirement is to have a Used Ad Manager
And a New Ad manager..

To achieve this, we installed 2 copies of "Ad Manager Component"

Everything in the database, and backend is fine. But the front end of the website is showing up following error:

Fatal error: Cannot re declare class TRoute in /home3/public_html/project/components/com_adsused/lib/route.php on line 11

Please advice!

Thank you,
Pankaj
Last edit: 11 years 3 months ago by adsMngrSprt.
The following user(s) said Thank You: adarr
More
11 years 3 months ago #2971 by tompap
Hello,

Yes you cannot have two times the same class.
So you should look in your "clone" to all line like

require_once(JPATH_COMPONENT.'/lib/core.php');
or
require_once(components/com_adsmanagerclone/lib/core.php');

and replace by
require_once(JPATH_ROOT.'/components/com_adsmanager/lib/core.php');

you should load the same lib/core.php in both components
The following user(s) said Thank You: adarr
More
11 years 3 months ago #2992 by adsMngrSprt
Replied by adsMngrSprt on topic 2 Copies of AdManager Installed- Fatal Error!
Thanks very much for your quick support!

We followed your instructions and it did resolve the errors but now we are getting errors on Ad Details page as well.

We were getting error related to CONSTANTS hence we changed the CONSTANTS
example: ADSMANAGERCLONE_SPECIAL to ADSMANAGER_SPECIAL

Following are the 3 errors appearing on the Ad Detail page.
Notice: Undefined offset: 5 in F:\xampp\htdocs\project\administrator\components\com_adsmanagerclone\models\category.php on line 101

Notice: Trying to get property of non-object in F:\xampp\htdocs\project\administrator\components\com_adsmanagerclone\models\category.php on line 101

Notice: Undefined property: stdClass::$text in F:\xampp\htdocs\project\components\com_adsmanagerclone\views\details\view.html.php on line 102

If we fix these errors we are ready to go Live! :)

Thanks in Advance!
The following user(s) said Thank You: adarr
More
11 years 3 months ago #3015 by tompap
You should keep ADSMANAGER_SPECIAL everywhere.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.127 seconds
Powered by Kunena Forum