Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: jkrlvgn on October 18, 2008, 01:45:02 PM

Title: Re: Site Integration Mod
Post by: jkrlvgn on October 18, 2008, 01:45:02 PM
Hm...I'm sure that I'm missing something, but I still can't seem to get this to work.  Most of the time, the error I get is:

Fatal error: Cannot redeclare reloadsettings() (previously declared in /home/jkrlvgn/public_html/midnightrealms/Sources/Load.php:160) in /home/jkrlvgn/public_html/midnightrealms/Sources/Load.php on line 366

I'm not sure where/what is redeclaring anything, but I'm about to go insane.

I'm trying to use FlashChat with SMF 1.1.6+TinyPortal 1.0.6b2. (I know, I should make a switch, but SP doesn't have the features I want yet...).

Any help?  What do you need, if anything, for me to provide..?
Title: Re: Site Integration Mod
Post by: Nathaniel on October 18, 2008, 06:16:08 PM
@jkrlvgn,
Can you please post your '/Sources/Load.php' file as an attachment?
Title: Re: Site Integration Mod
Post by: jkrlvgn on October 18, 2008, 06:34:34 PM
Sure!

Here you go.

:)
Title: Re: Re: Site Integration Mod
Post by: Nathaniel on October 20, 2008, 04:43:55 AM
This issue isn't really related to the Site Integration Mod, so I have split these posts and moved them to the "SMF 1.x Support" board. :)

There don't really seem to be any errors with that file. Although the error message you are getting is very odd. Under what circumstances do you get that error messsage? Which page? Which users?
Title: Re: Site Integration Mod
Post by: jkrlvgn on October 20, 2008, 06:41:06 PM
Yeah, I thought it was odd that I was getting that too, but couldn't figure it out.  And, as I said, it's when I try to access the php file for the "flashchat", though flashchat works outside the integration fine..so...thinking there might some conflict, though...

It seems to happen when I set the SI mod to allow for the php files in the flashchat directory.


I'm going to try to reinstall.  i've got quite a few mods, so I might try to do it on a clean install of 1.1.6, then the SI mod, and then install flashchat, and see what happens, but it's still very odd.  Maybe it's another mod that's causing it.


*crosses fingers*
Title: Re: Re: Site Integration Mod
Post by: Nathaniel on October 21, 2008, 01:41:02 AM
Well, if it happens when you allow php files from the 'flashchat' directory, try creating a php file in a different directory that opens the necessary flashchat files. It may be an issue with including all of the flash chat files.
Title: Re: Site Integration Mod
Post by: Davy-D on November 06, 2008, 02:17:20 PM
Hi,

I seem to have the same problem: my index.template.php contains an include to info_custom.php which shows some info about currently logged in users to the FlashChat.

If I remove the include, the error vanishes, but I still want to have this info.

BTW, I didn't have any problems with PHP 4.4.9 and this crappy behaviour started when upgrading to PHP 5.2.6.

Any ideas?

Thx
Davy
Title: Re: Site Integration Mod
Post by: Davy-D on November 06, 2008, 03:13:51 PM
OK, found the solution in this great board:
http://www.simplemachines.org/community/index.php?topic=27137.msg1297210#msg1297210 (http://www.simplemachines.org/community/index.php?topic=27137.msg1297210#msg1297210)

For me it only worked when replacing:

include($smf_root_path . 'Sources/Load.php');
include($smf_root_path . 'Sources/Subs-Auth.php');

with:
require_once($smf_root_path . 'Sources/Load.php');
require_once($smf_root_path . 'Sources/Subs-Auth.php');

The other entries need to be included to provide some functions/variables in memory.

Hope it helps you also.