Re: Site Integration Mod

Started by jkrlvgn, October 18, 2008, 01:45:02 PM

Previous topic - Next topic

jkrlvgn

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..?

Nathaniel

@jkrlvgn,
Can you please post your '/Sources/Load.php' file as an attachment?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

jkrlvgn


Nathaniel

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?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

jkrlvgn

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*

Nathaniel

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.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Davy-D

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

Davy-D

OK, found the solution in this great board:
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.


Advertisement: