PHP Notice: Undefined index: drupal_user in mysite/beta/sites/all/modules/phpfreechat/handler.php on line 78

I get this error and then the phpfreechat just hangs.

I already deleted files/phpfreechat to see if that would help.

Chris

Comments

agrigor1’s picture

I have similar problems.
I didnt notice you had posted this and I created a new issue.

agrigor1’s picture

by the way i use drupal 6.9 and the problem occurs in line 79.
Searching on google for similar problems and solutions had no result.

dzescsd’s picture

do you have a solution ?
I'm using drupal 6.10 and phpfreechat module 1.1

thanks

socialnicheguru’s picture

Version: 5.x-1.3 » 6.x-1.1

I get the same

PHP Notice: Undefined index: drupal_user in /dev/sites/all/modules/phpfreechat/handler.php on line 79

I am on drupal 10

socialnicheguru’s picture

Status: Active » Fixed

Fixed it

1. change following settings in php.ini to off
display_errors = Off

2. file location
i originally had my 'file' and 'file/tmp' folder in sites/default
I had to change it to sites/files

I think it didn't work because of the permissions of default

I tried it in mysite/com/files and that didn't work for me, but maybe others will have a different experience

socialnicheguru’s picture

Caveat to above- it is not working with custom theme. Just Garland

EDIT FIXED:

1. move $script variable in page.tpl.php to top if you moved it to the bottom for performance
2. in php.ini change display_errors= off
3. change files to sites/files

Status: Fixed » Closed (fixed)

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

socialnicheguru’s picture

Title: Chat not loading- drupal_user is undefined index » FIX- GET Phpfreechat to work Chat not loading- drupal_user is undefined index

old title: Chat not loading- drupal_user is undefined index

mattGWS’s picture

Our install of phpfreechat was also not loading..

After trying all the various tips scattered across this and the phpfreechat forums, it actually turnt out that there was a php error in the file info.php

This is located at: sites/all/modules/phpfreechat/phpfreechat/themes/zilveer/info.php

The existing code looked like:

<?php
$aka = ""zilveer;
$author = "Name: Isa Acar";
$date = "10th Oct-2006";
$mail = "zilveer@gmail.com";
?>

Of course, this needs to be changed to:

<?php
$aka = "zilveer";
$author = "Name: Isa Acar";
$date = "10th Oct-2006";
$mail = "zilveer@gmail.com";
?>

This might not be the case for everyone, but this took long enough to figure out to be very annoying.