Hello all!

I'm having problems getting phpfreechat to load. I get the error message below.

Please correct these errors:

* Error: undefined or obsolete parameter 'short_url', please correct or remove this parameter
* Error: undefined or obsolete parameter 'display_ping', please correct or remove this parameter
* Error: undefined or obsolete parameter 'get_ip_from_xforwardedfor', please correct or remove this parameter

I've added the params to the index.php file in the sites/all/modules/phpfreechat/phpfreechat/
They are as follows.

1 <?php
2
3 require_once dirname(__FILE__)."/src/phpfreechat.class.php";
4 $params = array();
5 $params["title"] = "Quick chat";
6 $params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
7 $params["isadmin"] = true; // just for debug ;)
8 $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
9 //$params["debug"] = true;
10 $params["short_url"] = false;
11 $params["display_ping"] = true;
12 $params["get_ip_from_xforwardedfor"] = false;
13 $chat = new phpFreeChat( $params );

I've tried all kinds of param settings, but get the same error message. Lines 10, 11 and 12 of the above code, I've added since this error message appeared. Does not matter what I do, I still get the same error message. I've even replaced the index.php file with the config files from the demo directory.
Any changes I make to this file, I then delete the directory sites/default/files/phpfreechat to rehash, but still I get the same error message!

It would seem that any changes I make to the index.php file or to the settings page at admin/settings/phpfreechat does not seem to take effect, even after rehashing.

Initially I did get it working, but then I altered a couple of settings (not the advanced settings) and then this error message appeared, I reverted back to the default settings, but now it won't work!!!

Any help much appreciated.

Thanks.

Comments

lloowen’s picture

Assigned: lloowen » Unassigned

Description
Hello all!

I'm having problems getting phpfreechat to load. I get the error message below.

Please correct these errors:

* Error: undefined or obsolete parameter 'short_url', please correct or remove this parameter
* Error: undefined or obsolete parameter 'display_ping', please correct or remove this parameter
* Error: undefined or obsolete parameter 'get_ip_from_xforwardedfor', please correct or remove this parameter

I've added the params to the index.php file in the sites/all/modules/phpfreechat/phpfreechat/
They are as follows.

1 <?php
2
3 require_once dirname(__FILE__)."/src/phpfreechat.class.php";
4 $params = array();
5 $params["title"] = "Quick chat";
6 $params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
7 $params["isadmin"] = true; // just for debug ;)
8 $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
9 //$params["debug"] = true;
10 $params["short_url"] = false;
11 $params["display_ping"] = true;
12 $params["get_ip_from_xforwardedfor"] = false;
13 $chat = new phpFreeChat( $params );

I've tried all kinds of param settings, but get the same error message. Lines 10, 11 and 12 of the above code, I've added since this error message appeared. Does not matter what I do, I still get the same error message. I've even replaced the index.php file with the config files from the demo directory.
Any changes I make to this file, I then delete the directory sites/default/files/phpfreechat to rehash, but still I get the same error message!

It would seem that any changes I make to the index.php file or to the settings page at admin/settings/phpfreechat does not seem to take effect, even after rehashing.

Initially I did get it working, but then I altered a couple of settings (not the advanced settings) and then this error message appeared, I reverted back to the default settings, but now it won't work!!!

Any help much appreciated.

Thanks.