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

CarbonPig’s picture

If 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.

irakli’s picture

Status: Active » Fixed

http://us3.php.net/str_split is a PHP5 function.

I guess the server you tried to run it on, still uses PHP4?

CarbonPig’s picture

Exactly! Changed the server to PHP5 and that was it! Very much appreciated irakli.

irakli’s picture

Status: Fixed » Closed (fixed)

Sure thing. Glad it worked out.