Autor Gast
Datum 08.10.2011 23:02
Beiträge: Hallo Flash,
ich bin am Verzweifeln...ich schaffe es bis vor die Tore Roms, aber nicht hinein. Und das schon seit Tagen...

Zu meiner prinzipiellen Konfiguration/Idee:
- Ich habe als Chat-Bereich eine PHP-Box, die das Chat-Script lädt
- Das Chat-Skript ermittelt den angemeldeten User selbst (das ist einfacher wegen der Parameterübergabe)
- Das funktioniert auch prinzipiell - mit folgenden Code-Teilen bekomme ich den User ins Chat-Skript rein (das Echo habe ich zu Testzwecken reingetan, damit ich sehe, ob das was ich ermittle, auch stimmt):

global $opnConfig;
if (!defined ('_OPN_MAINFILE_INCLUDED') ) {
     include ('../opn/mainfile.php');
}
$userinfo = $opnConfig['permission']->GetUserInfo ();
$username = $userinfo['uname'];
echo 'User:'.$username;

- Damit hätte ich alles, um dem Chat-Skript den User $username mitzugeben.
- Sobald ich aber obigen Code einfüge, "bedankt" sich der Chat mit folgenden Fehlermeldungen, die ich nicht deuten kann:

User:Boby
--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 44

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcI18N::Init() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcglobalconfig.class.php]
FOUND AT 648

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcI18N::GetAcceptedLanguage() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfci18n.class.php]
FOUND AT 59

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcContainer::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcglobalconfig.class.php]
FOUND AT 737

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcUserConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 47

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 21

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 58

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 58

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 58

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 58

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/pfcuserconfig.class.php]
FOUND AT 58

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 99

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcUserConfig::Instance() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 100

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcI18N::SwitchOutputEncoding() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 111

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
STRICT [2048] Non-static method pfcI18N::SwitchOutputEncoding() should not be called statically, assuming $this from incompatible context
FOUND IN [/www/htdocs/vxxxxxx/chat/src/phpfreechat.class.php]
FOUND AT 119

--------------------------------------------------------------------------------



Der Chat lädt
Warte bitte

Sobald ich die "User-Ermittlung" wieder wegtue, funktioniert der Chat wieder (allerdings ohne User - den muss man wieder händisch eingeben).

Es dürfte ein prinzipielles Problem im PHP sein, dass ich als PHP-Noob nicht verstehe. Vielleicht kann mir ja einer der Profis den entscheidenen Tipp geben.

Danke & LG,
Boby



Diese Seite drucken
Diese Seite schließen

Dieser Artikel kommt von: OpenPHPNuke - das Open Source CMS

http://www.openphpnuke.info/