Closed (works as designed)
Project:
Generate Password
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2008 at 16:15 UTC
Updated:
8 Oct 2008 at 00:31 UTC
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
Comment #1
japanitrat commentedhm, 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.
Comment #2
gtaylor commentedYou'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.