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

Home » FUDforum Development » Bug Reports » pdo_concat() declared in both index.php and db.inc
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
pdo_concat() declared in both index.php and db.inc [message #39148] Wed, 03 October 2007 16:52 Go to previous message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma:
Junior Member
I've building out a new website with FUDforum using the API to automate the login and user creation with our single sign on. How this works is that you click on the login button from any page in the site and it takes you out to a SSO website which bounces you back to the page you were on upon successful login.

Everything is working so far with one exception - if I login on a page outside of the forums then browse into the forum, no problem.
However, if I am on a forum page and login - my redirect back goes into the forum and the forum processing happens first and I get the following error:

Fatal error: Cannot redeclare pdo_concat() (previously declared in E:\web\support\production\community\index.php:68) in E:\web\support\FUDforum_data\include\theme\default\db.inc on line 67

The index.php page contains the same code as db.inc file so to fix on my end, I have wrapped the top half of index.php down to and including function _esc declaration in a if !function_exists('pdo_concat'
when I did this, the error message swapped saying previously declared in db.inc - so I had to make the same change in db.inc and db.inc.t
I just wonder if I rebuild the theme, will my main forum index.php get blown away (coudn't find the template for that).

The reason this is happening is because in my template header, I call my site's global login handler, which because it is the first time the user has authed to the site, pulls in fudapi/forum_login (and so db.inc) in order to setup/login the user.

Thanks,
PG
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Odd bit of code...
Next Topic: FUDforum extremely slow with Geo-Location enabled
Goto Forum:
  

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

Current Time: Wed Nov 27 15:16:30 GMT 2024

Total time taken to generate the page: 0.03985 seconds