Strange naming conflict

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
beate_r
Posts: 174
Joined: Thu May 22, 2008 11:44 pm
Location: Hessen / Germany

Strange naming conflict

Post by beate_r » Wed May 06, 2009 9:51 pm

Upon integrating a Simple Machines Forum with CMSIMPLE i recognized the following problem:
PHP Fatal error: Cannot redeclare writelog() (previously declared in /home/www/te/cmsimple/login.php:29) in /home/www/te/forum/Sources/Subs.php on line 2571
Strange enough, Subs.php does apparently not declare writelog(), neither in this place nor at all. In other places of SMF, however, a function WriteLog() is being declared.

Workaround: rename writelog() to cms_writelog() in CMSIMPLE login.php.

Beate

PS: more on the SMF integration soon (next week), and probably in the wiki. It works, and it is cool...

Post Reply