First, great to see that there's now a 5.0 version.

Unfortunately, I get the following error when accessing a node with chat enabled, og just by accessing the demo1_simple.php page:

Error: the XML response that was returned from the server is invalid.
Received:
<br />
<b>Fatal error</b>: Call to undefined function: ctype_space() in
<b>/home/www/sommer/htdocs/modules/phpfreechat/phpfreechat/lib/csstidy-1.2/class.csstidy.php</b>
on line <b>591</b><br />

You have whitespace at the end of your response.

I get this error on both Firefox and Konqueror.

Also, commenting out the "if" statement that is causing the problem, gives a new error, now on line 634 -- again the ctype_space is causing problems. Commenting out that "elseif" make the chat load and run properly.

Any ideas what might be causing this? Please let me know if additional information is required.

Version information:

Linux: 2.6.14
Lighttpd: 1.4.11
PHP: 4.4.4
Drupal:  5.0
phpFreeChat: "trunk", checked out from SVN repository on 22. January 2007, 16:50 UTC
CommentFileSizeAuthor
#8 error_3.png6.78 KBioarvanit

Comments

owen barton’s picture

My guess is that your version of php was compiled with --disable-ctype.
See http://uk2.php.net/manual/en/ref.ctype.php for further details.

To fix this you can recompile php without setting this flag or, if you installed php from a package you should be able to install a package named something like 'php4-ctype'.

Let me know if this helps!

krasm’s picture

Doing a phpinfo() I indeed found --disable-ctype in the "Configure Command" section. Looks like you were right. I'll try a recompile and report back if it helps.

krasm’s picture

Status: Active » Fixed

Yes, that fixed it! Thanks for the quick response.

Anonymous’s picture

Status: Fixed » Closed (fixed)
davecormier’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active

I'm running beta 9 from the SVN

Drupal 5.1
Configuration file Protected
Cron maintenance tasks Last run 28 min 23 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
MySQL database 4.1.11
PHP 5.2.0-0.dotdeb.3
Unicode library PHP Mbstring Extension
Web server Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 PHP/5.2.0-0.dotdeb.3 with Suhosin-Patch mod_perl/1.999.21 Perl/v5.8.4

I can create the node for the chatroom module and then i get this in a gray popup.

Error: the XML response that was returned from the server is invalid
Received:

Warning : invalid argument supplied foreach() in
/mydirectories/modules/phpfreechat/phpfreechat/src/pfcglobalconfig.class.php
on line 537
bunch of header already sent errors

you have whitespace at the end fo your response

Here's all the debug stuff

Parameters: Array
(
[data_private_path] => /var/www/vre.upei.ca/htdocs/files/phpfreechat
[data_public_path] => /var/www/vre.upei.ca/htdocs/modules/phpfreechat/phpfreechat/data/public
[data_public_url] => /mhl/modules/phpfreechat/phpfreechat/data/public
[themepath] => /var/www/vre.upei.ca/htdocs/modules/phpfreechat/phpfreechat/themes
[theme_url] => /mhl/modules/phpfreechat/phpfreechat/themes
[serverid] => f9d9841c1b1314bc6a827823630a8560
[server_script_path] => /var/www/vre.upei.ca/htdocs/modules/phpfreechat/handler.php
[server_script_url] => /mhl/modules/phpfreechat/handler.php
[title] => chat room
[channels] => Array
(
[0] => chat room
)

[connect_at_startup] => 1
[debug] => 1
[debugxajax] => 1
[nick] => admin
[isadmin] => 1
)

Session: Array
(
[og_last] =>
[form] => Array
(
[ac54f9b2424eeb47468329a2284a7406] => Array
(
[timestamp] => 1171992727
[args] => Array
(
[0] => system_modules
)

)

[a1ad2b9845f298af1be641cf47a05974] => Array
(
[timestamp] => 1171992742
[args] => Array
(
[0] => system_modules
)

)

[508f7ec25dcfb14b0d8dfd9677624ea2] => Array
(
[timestamp] => 1171992762
[args] => Array
(
[0] => system_modules
)

)

)

[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_nick] =>
[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_active] =>
[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_channels] => Array
(
)

[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_privmsg] => Array
(
)

[node_overview_filter] => Array
(
)

)

Cookies: Array
(
[PHPSESSID] => 61eb4efb11fc9f1060595c3907e7b95a
)

owen barton’s picture

Thanks for your detailed report!

This does indeed look like a bug. I'll try and take a look - if you manage to figure if out it would be great if you could submit a patch!

davecormier’s picture

I'm running beta 9 from the SVN

Drupal 5.1
Configuration file Protected
Cron maintenance tasks Last run 28 min 23 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
MySQL database 4.1.11
PHP 5.2.0-0.dotdeb.3
Unicode library PHP Mbstring Extension
Web server Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 PHP/5.2.0-0.dotdeb.3 with Suhosin-Patch mod_perl/1.999.21 Perl/v5.8.4

I can create the node for the chatroom module and then i get this in a gray popup.

Error: the XML response that was returned from the server is invalid
Received:

Warning : invalid argument supplied foreach() in
/mydirectories/modules/phpfreechat/phpfreechat/src/pfcglobalconfig.class.php
on line 537
bunch of header already sent errors

you have whitespace at the end fo your response

Here's all the debug stuff

Parameters: Array
(
[data_private_path] => //mydirectories/files/phpfreechat
[data_public_path] => //mydirectories/modules/phpfreechat/phpfreechat/data/public
[data_public_url] => /multisitedirectory/modules/phpfreechat/phpfreechat/data/public
[themepath] => //mydirectories/modules/phpfreechat/phpfreechat/themes
[theme_url] => /multisitedirectory/modules/phpfreechat/phpfreechat/themes
[serverid] => f9d9841c1b1314bc6a827823630a8560
[server_script_path] => //mydirectories/modules/phpfreechat/handler.php
[server_script_url] => /multisitedirectory/modules/phpfreechat/handler.php
[title] => chat room
[channels] => Array
(
[0] => chat room
)

[connect_at_startup] => 1
[debug] => 1
[debugxajax] => 1
[nick] => admin
[isadmin] => 1
)

Session: Array
(
[og_last] =>
[form] => Array
(
[ac54f9b2424eeb47468329a2284a7406] => Array
(
[timestamp] => 1171992727
[args] => Array
(
[0] => system_modules
)

)

[a1ad2b9845f298af1be641cf47a05974] => Array
(
[timestamp] => 1171992742
[args] => Array
(
[0] => system_modules
)

)

[508f7ec25dcfb14b0d8dfd9677624ea2] => Array
(
[timestamp] => 1171992762
[args] => Array
(
[0] => system_modules
)

)

)

[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_nick] =>
[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_active] =>
[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_channels] => Array
(
)

[pfcuserconfig_f9d9841c1b1314bc6a827823630a8560_privmsg] => Array
(
)

[node_overview_filter] => Array
(
)

)

Cookies: Array
(
[PHPSESSID] => 61eb4efb11fc9f1060595c3907e7b95a
)

ioarvanit’s picture

Title: Error when accessing chat enabled page » Same error with server id invalid
Priority: Normal » Critical
StatusFileSize
new6.78 KB

When trying to access a node with chat i also get the following message:
Error the XML response that was returned from the server is invalid.
Received:
Please correct these errors: 'serverid' parameter is mandatory by default use 'md5(_FILE_)' value

Server: Linux, Apache
Browser: Firefox, explorer 7, opera
Client OS: Windows XP
Drupal: 5.1
Module version: 5.x-1.x-dev
phpfreechat version:1.0 beta 10
PHP ctype functions enabled

Debug parameters:
Parameters: Array
(
[data_private_path] => /hermes/web10/b2997/pow.ioarvanit/htdocs/home/files/phpfreechat
[data_public_path] => /hermes/web10/b2997/pow.ioarvanit/htdocs/home/modules/phpfreechat/phpfreechat/data/public
[data_public_url] => /home/modules/phpfreechat/phpfreechat/data/public
[theme_url] => /home/modules/phpfreechat/phpfreechat/themes
[serverid] => f90b5f99b8b75e3a086050c362980c5c
[server_script_path] => /hermes/web10/b2997/pow.ioarvanit/htdocs/home/modules/phpfreechat/handler.php
[server_script_url] => /home/modules/phpfreechat/handler.php
[title] => Φλώρινα Live Chat
[channels] => Array
(
[0] => Φλώρινα Live Chat
)

[connect_at_startup] => 1
[nick] => ioarvanit
[isadmin] => 1
)

Session: Array
(
[pfcuserconfig_f90b5f99b8b75e3a086050c362980c5c_nick] =>
[pfcuserconfig_f90b5f99b8b75e3a086050c362980c5c_active] =>
[pfcuserconfig_f90b5f99b8b75e3a086050c362980c5c_channels] => Array
(
)

[pfcuserconfig_f90b5f99b8b75e3a086050c362980c5c_privmsg] => Array
(
)

[node_overview_filter] => Array
(
)

)

Cookies: Array
(
[ScreenType] => wide
[florina_live_gr_portal_newbb1_LV] => 1173825402
[PHPSESSID] => c8607ac3b0f0415fc6d0e7985f255cca
[elxis_lang] => english
[ColorCSS] => orange
[sboard_settings] => Array
(
[current_view] => flat
[prevvisit] => 1162262515
[member_id] => 62
)

[JATheme] => ja_mercury
[elxis_alang] => greek
)

owahab’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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