removing the parameter fixes the problem.
I did this by adding a line
unset($params['themepath']);
in line 274 of phpfreechat.module (just before return $params;)

Comments

hectorplus’s picture

I believe ray007's error is similar to what i am getting. I downloaded the new phpfreechat beta 10 release, and when i go to create a chat, i get:

Error: undefined or obsolete parameter 'themepath', please correct or remove this parameter

I wonder if this error is relevant to this module, maybe it's phpfreechat script error.

ray007’s picture

This was the error I got which I fixed with the added line I posted.
That said, I still haven't managed to get a phpfreechat to work embedded in the site through the module, while both versions work fine when called directly.

hectorplus’s picture

Yes, i got that fixed, other issues are showing up, though. Thanks

sutharsan’s picture

Title: phpfreechat 1.0 beta 10 doesn't like parameter themepath » phpfreechat doesn't like parameters

Same kind of fault occurs with phpfreechat 0.9.3, same kind of solution applied. This should be solved in a generic way, but every phpfreechat version seems to have problems with different parameters.

Modified code of handler.php :

  if (!$_GET['q']) $params = $_GET; // Only need to fetch query string after initial request
  // Explode channels into an array of strings
  $params['channels'] = explode(',', $params['channels']);
// ----------------------- Begin of modified section ------------------------------
// Lines added to suppress warning messages of phpfreechat of unused parameters
unset($params['theme_path']);
unset($params['theme_url']);
unset($params['channels']);
unset($params['isadmin']);
// ----------------------- End of modified section --------------------------------
  // $params['frozen_channels'] = explode(',', $params['frozen_channels']);
  require_once dirname(__FILE__)."/phpfreechat/src/phpfreechat.class.php";
  // print_r($params); // Debug (will break xml-rpc)
  $chat = new phpFreeChat($params);
sutharsan’s picture

Priority: Normal » Critical
drupalian’s picture

I made all the above changes, but it still reports the same problem.

drupalian’s picture

I made all the above changes, but it still reports the same problem.

hectorplus’s picture

I did the same thing too, same problems.

introfini’s picture

Hi,

It's themepath not theme_path

introfini

owahab’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.