After I enable the Generate Password module, if I go to Edit user settings (admin/user/settings), then I get the following error message:

Fatal error: Call to undefined function: str_split() in /home/bizmenet/public_html/prod/drupal-6.4/sites/all/modules/genpass/genpass.module on line 112

I can work around this problem by disabling the Generate Password module. Make my edit and then go back and re-enable the Generate Password module.

Let me know if you need other system implementation config information. This is very repeatable in my environment and I assume it's a generic problem.

Comments

japanitrat’s picture

Status: Active » Closed (works as designed)

hm, this is a php4 related error.

since I don't really plan to provide backward-compatibility to php4 (more info) for my code, I suggest, you take the code from the PEAR compat library: http://pear.php.net/package/PHP_Compat/docs/1.6.0a1/__filesource/fsource... and put on top of the module.

hint: also try using the PEAR compat library (the whole one) if you experience this kind of problem in general.

gtaylor’s picture

You're right. I'm using PHP 4.4.7 in this environment.
When we go live, it will be PHP 5 and we're trying to get a dev site with the same config in place.

Thanks for the tip.