I created a new Drupal site, installed only the shorten and shorturl modules and then I received the following Fatal error: Call to undefined function: str_split() in ..../sites/all/modules/shorturl/shorturl.engine.inc on line 36
What I don't understand is that I'm using this module successfully on other sites. When I remove the shorturl directory, then the fatal error goes away. I'll try and figure this out, but I'm stuck for now.
Any thoughts,
CarbonPig
Comments
Comment #1
CarbonPig commentedIf it helps. After deleting the module directory and going to the admin/build/modules page I get the following warning:
warning: drupal_load(./sites/all/modules/shorturl/shorturl.module) [function.drupal-load]: failed to open stream: No such file or directory in /nfs/c03/h04/mnt/49414/domains/sdigits.com/html/includes/bootstrap.inc on line 611.
warning: drupal_load() [function.include]: Failed opening './sites/all/modules/shorturl/shorturl.module' for inclusion (include_path='.:/usr/local/php-4.4.8-1/share/pear') in /nfs/c03/h04/mnt/49414/domains/sdigits.com/html/includes/bootstrap.inc on line 611.
Comment #2
irakli commentedhttp://us3.php.net/str_split is a PHP5 function.
I guess the server you tried to run it on, still uses PHP4?
Comment #3
CarbonPig commentedExactly! Changed the server to PHP5 and that was it! Very much appreciated irakli.
Comment #4
irakli commentedSure thing. Glad it worked out.