FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Cannot use forum_login.php and fudapi.inc.php together
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Cannot use forum_login.php and fudapi.inc.php together [message #29687] Mon, 09 January 2006 20:01 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
One cannot use both forum_login.php and fudapi.inc.php in a single script.

Test case:
<?php
echo "About to load forum_login...";
include("forum_login.php");
echo "About to load globals...";
include("GLOBALS.php");
echo "About to load fudapi...";
include("fudapi.inc.php");
echo "Done!";
?>


Output:
About to load forum_login...About to load globals...
Fatal error:  Cannot redeclare fud_sql_error_handler()
(previously declared in .../data/scripts/forum_login.php:9) 
in .../data/include/core.inc on line 144


Best regards.

Frank
Re: Cannot use forum_login.php and fudapi.inc.php together [message #29697 is a reply to message #29687] Tue, 10 January 2006 03:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, here is the patch:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7513


FUDforum Core Developer
Re: Cannot use forum_login.php and fudapi.inc.php together [message #29720 is a reply to message #29697] Wed, 11 January 2006 06:15 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Thank you very much!

I haven't had time to test it yet, but will do so tonight.
Re: Cannot use forum_login.php and fudapi.inc.php together [message #29732 is a reply to message #29720] Wed, 11 January 2006 18:47 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi Ilia,

I've applied the patch. However, no matter in what order I load forum_login.php and fudapi.inc.php, I cannot get it to work. Can you please see if you can get the above test case to work?

Best regards.

Frank
Re: Cannot use forum_login.php and fudapi.inc.php together [message #29739 is a reply to message #29732] Thu, 12 January 2006 21:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This should do the trick
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7517


FUDforum Core Developer
Re: Cannot use forum_login.php and fudapi.inc.php together [message #29760 is a reply to message #29739] Sat, 14 January 2006 08:30 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Perfect - thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Empty Language list on Template Set Selection
Next Topic: Topics show above Announcements and Stickies + Consistency Check
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 27 18:10:33 GMT 2024

Total time taken to generate the page: 0.03043 seconds