Locally it worked, but putting it on my production site i get this error when going to settings/integrated metatags

Fatal error: Call to undefined function: array_combine() in /mnt/web7/40/77/51613477/htdocs/engelwoche/sites/all/modules/int_meta-6.x-1.0-beta2/int_meta/int_meta.module on line 417

any idea how to fix it? if not, do you know about another good module that i could use to integrate metatags into my site?
thanks a lot
sascha

Comments

fractile81’s picture

Assigned: Shiva_Nataraja » fractile81
Status: Active » Patch (to be ported)

Looks like your DEV environment is on PHP5 and your Production environment is on PHP4. PHP5 added support for the array_combine(); function, which this module uses. As a temporary fix, you can add the following anywhere in the int_meta.module file:

if (!function_exists('array_combine')) {
  function array_combine($keys, $values) {
    $ret = array();
    foreach ($keys as $key) {
      $value = array_shift($values);
      $ret[$key] = $value;
    }
    
    return $ret;
  }
}

I'll release a new beta of the D6 code in the near future that will solve this problem automatically.

Shiva_Nataraja’s picture

dear fractile

i thank you very much for your fast help. i am struggling with a non-working cron since days and nowhere i get help with this, making me already a bit desperate, but at least this metatag problem will be solved now. its true my webhoster uses php4. unfortunately i dont know php, so i will just add this code, but do i not have to replace the existing line by this? otherwise i will still get the error or not?

thanks a lot
sascha

fractile81’s picture

Status: Patch (to be ported) » Fixed

This should now be fixed in the BETA3 release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.