Chat Ver 0.8.8 and phpbb 3.1.4

262 views
Skip to first unread message

eM Ka

unread,
May 28, 2015, 5:55:52 AM5/28/15
to ajax...@googlegroups.com
I made a fresh install of phpbb 3.1.4 and installed AjaxChat ver 0.8.8 (same issue with 0.8.7).

After I've fixed the cookies and solved it

I get the errormessage (generatet from phpBB):

General Error

Illegal use of $_SERVER. You must use the request class or request_var() to access input data. Found in ../chat/lib/class/AJAXChat.php on line 423. This error message was generated by deactivated_super_global.

it seems that accessing 

// IP Security check variable:
line 423 $this->setSessionIP($_SERVER['REMOTE_ADDR']);



is not allowed by phpBB. 
I tried to change it to $request->server('REMOTE_ADDR', '') (according to the phpBB3 coding guidelines) which workes fine in file ../chat/lib/custom.php but it does not work in ../chat/lib/class/AJAXChat.php. I tried to include require($phpbb_root_path.'common.'.$phpEx); like included in custom.php but this did not solve the issue.

Any ideas to solve this?

Thanks in advance eM Ka

Fabian Wilson

unread,
May 28, 2015, 8:44:46 AM5/28/15
to eM Ka, ajax...@googlegroups.com
Looks to me like you maybe using the wrong version of php. You may want to double check the version you have installed vs the version required by phpbb and AjaxChat. This is just a guess though. You can also create a php info page.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>



--
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eM Ka

unread,
May 28, 2015, 1:46:07 PM5/28/15
to ajax...@googlegroups.com
version is  PHP Version 5.5.9-1ubuntu4.9 which is good enough for phpBB3 and for ajaxchat 0.8.8
tried the workaround with:

global $request;
$request->enable_super_globals();
//do the stuff in this case $_SERVER['REMOTE_ADDR']
$request->disable_super_globals();


 I fixed two issues in  ../chat/lib/class/AJAXChat.php at line 423 and around 1500
and one issue in  ../chat/lib/class/CustomAJAXChat.php line 181

Now the Chat shows up, but there is another errormessage
ChatBot: Error: Connection status: 503

cpg

unread,
Jun 1, 2015, 6:23:59 AM6/1/15
to ajax...@googlegroups.com
Hallo,


>>>After I've fixed the cookies and solved it

How is the way to fix the cookies?

Best regards
cpg

eM Ka

unread,
Jun 1, 2015, 7:42:28 AM6/1/15
to ajax...@googlegroups.com
To fix the cookies

open /chat/lib/config.php

on line 70 you find $config['sessionName'] = 'ajax_chat';

change the value to what you find in your phpBB acp cookies/Cookie-Name

It seems that the all requests to the $_SERVER vars are blocked so i think ajax chat needs to be updated to work with 3.1.4

Hope that helps

Cheers

cpg

unread,
Jun 1, 2015, 8:30:57 AM6/1/15
to ajax...@googlegroups.com
Thank you!


Am Donnerstag, 28. Mai 2015 11:55:52 UTC+2 schrieb eM Ka:

cpg

unread,
Jun 1, 2015, 9:07:10 AM6/1/15
to ajax...@googlegroups.com
I don't come forward because "'...@'localhost' (using password: NO) Error-Code: 1045"


Am Donnerstag, 28. Mai 2015 11:55:52 UTC+2 schrieb eM Ka:

cpg

unread,
Jun 1, 2015, 9:43:54 AM6/1/15
to ajax...@googlegroups.com
So - the "denied"-mistake is gone ;-)  I'm now at the same step: "ChatBot: Fehler: Verbindungsstatus: 503" - and the chat is shown.

Am Donnerstag, 28. Mai 2015 11:55:52 UTC+2 schrieb eM Ka:
Message has been deleted
Message has been deleted

eM Ka

unread,
Jun 8, 2015, 2:57:01 AM6/8/15
to ajax...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages