Fatal Error

Shiva_Nataraja - October 10, 2008 - 20:03
Project:Integrated Metatags
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:critical
Assigned:fractile81
Status:closed
Description

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

#1

fractile81 - October 10, 2008 - 20:12
Assigned to: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:

<?php
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.

#2

Shiva_Nataraja - October 11, 2008 - 10:10

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

#3

fractile81 - October 14, 2008 - 05:33
Status:patch (to be ported)» fixed

This should now be fixed in the BETA3 release.

#4

Anonymous (not verified) - October 28, 2008 - 07:22
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.