dragonfly - adodb-time.inc.php conflict with calendar module
majorheadache
Joined: 2004-04-22
Posts: 66 |
Posted: Fri, 2006-02-17 21:21 |
Tried installing 2.02 on a dragonfly CMS which also had a calendar module. Upon entering the gallery in embedded mode, I get this error: Fatal error: Cannot redeclare adodb_date_test_date() (previously declared in /home/xxxxxx/public_html/modules/CPGNuCalendar/includes/adodb-time.inc:375) in /home/xxxxxx/public_html/gallery2/lib/adodb/adodb-time.inc.php on line 379 Is there any workaround for this? I tried commenting out line 379 on the gallery adodb-time.inc.php file which let gallery display, but with a time error. Gallery 2.02 @ http://www.mlparena.com/gallery2.html |
|
Posts: 2258
You could wrap all of each adodb file that causes this error in an if defined ADODB_INCLUDED and put a define ADODB_INCLUDED as the first item inside the loop. It's a bit of a hack but would work.
Posts: 66
Could you possibly post the code on how that would be done?
Here is the area where I get the error message: (line 379 starts with "function")
Gallery 2.02 @ http://www.mlparena.com/gallery2.html
Apache/1.3.34
PHP/4.4.1
PHPInfo www.mlparena.com/gallery2/lib/support/phpinfo.php
MySQL/4.0.25
RedHat Ent 3
Posts: 2258
Or something like that
Oh yeah, instead of the defined thing, you could use http://us2.php.net/function_exists
--
http://ckdake.com/
If you found my help useful, please consider donating to Gallery.