Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 01.09.2004, 18:36   #11 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Posts: 22
inkpassion is on a distinguished road
Default Re: Cafepress mod wont work!

Quote:
Originally Posted by Admin
Gladly PHP says exactly what is wrong. You just have to read the error message:


Now what does this mean?
Your component is using a php class library which is called "cafepressbox". When you start the component, it tries to register this class in PHP. During this process PHP suddenly realises, that there already exists a class with the same name. As a class can only be registered to PHP once, PHP suddenly interrupts and drops the error message.

How can you solve this?
In most cases the error wasn't made by the user, but by the developer. And this error is a common one. After the develper coded the component, he maybe thought that a module would be a nice addition to his component. In this module he uses many functions, he already has coded in his component. So why invent the wheel twice? He just loads the class library and think he is safe. But he is not!

When you have already declared your class in the module, the component will fail to initialize the class again (if the component is loaded after the module, otherwise it's vice versa). So the developer must check, if the class is already declared if so, he didn't need to do this again.

You should try to turn off the module and see, if the component now loads fine. If it will, please inform the corresponding author (see XML file) and point him to this thread. If this is not the solution, than damn, it took me 5 minutes to explain this so very detailed...
Nicely done!
Right on its working! Now about this mod mistake, any ideas for a fix?
inkpassion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02.09.2004, 01:19   #12 (permalink)
Administrator
 
Join Date: Mar 2004
Posts: 807
Admin will become famous soon enough
Default Re: Cafepress mod wont work!

Quote:
Originally Posted by inkpassion
Now about this mod mistake, any ideas for a fix?
Yes, tha author should recode it and check, if the class is loaded before he tries to do so again. This has to be done in the module and in the component. Another solution would be to rename the class in the module, but this is just the quick and dirty way.
__________________
Regards,
Arthur Konze
Webmaster @ Mamboportal.com - Mambers.com
Admin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi template hack (sub_template ) will it work in 4.5.1 beta 4 Graemezee Development Discussions 2 16.08.2004 13:23
Please help me titledata.php wont work with alias yipppie Mambo 4.5 'How Do I' Questions 1 07.08.2004 16:55
AkoFormsBot dont work HELP kachete Mambo 4.5 'How Do I' Questions 1 19.07.2004 23:56


All times are GMT +2. The time now is 03:21.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.