When viewing a node or at other odd (seemingly random) times like manually forcing a cron run I get this:

Please correct these errors:

    * 'max_msg' parameter must be a positive number

I turn off phpfreechat and I don't get the error. :-\

Comments

jonahan’s picture

Ha! Ok, I figured out that if you have anything set for "Message History Length:" (in the phpfreechat settings) it will give you this error. I took out the number I had in there ('5') and it now works.

----

Ok, this is weird. I put the value 5 back into the "Message History Length:" and reloaded the node and it still works (I can't break it now to replicate it again). Perhaps this is just a weird Drupal issue - I know that sometimes if you change a setting or just save the settings it will fix whatever's wrong.

Very stupid little issue, but hopefully this helps someone.....

:)

permutations’s picture

This is because of an incompatibility between Drupal forms and some strong type-checking in phpFreeChat. I tried to fix this from within the Drupal module, but it didn't work. The easiest solution is to fix it within phpFreeChat. There's info on how to do this here:

http://drupal.org/node/255702

permutations’s picture

Status: Active » Closed (fixed)

Fixed within the current version of the Drupal module (1.2 - just uploaded). No need to edit phpFreeChat code.