The function in mobile_tools.module on or around line 600 is built only for PHP5. Is this by design? I would like to use this for PHP4 but cannot. The specific code with the problem is the "array_combine" statement, which is a PHP5 only command. Here is the code:

  if (count($list) == 0) {
    return array();
  } 
  else {
return array_combine($list, $list);
  }
}

I've tried some PHP4 replacements, but the corresponding page in Home › Administer › Site configuration › Mobile Tools comes up with "You must enable themes in order to use theme switching" with no place to enable it and no themes to choose.

Comments

grantmo’s picture

Just an update. I did change my site and now have PHP5. The theme page works fine now with PHP5.

Original problem was strictly a PHP 4 problem. I was using PHP 4.4.9

twom’s picture

Status: Active » Closed (fixed)

Hi,

I think that I will not fix this and recommend everybody to upgrade to PHP 5 (something you better do, no matter what ;))

If a lot of people have this problem, I can open it again.