Quote:
Originally Posted by Doctor Death
Error on product import (with overwrite of previous version)
|
Go to the product XML and search for:
PHP Code:
$columns_sql=$db->query_read("SHOW columns FROM `".TABLE_PREFIX."phrase`"); $columns_results=$db->num_rows($columns_sql); $time=time(); $vbstyles_sql=$db->query_read("SELECT styleid FROM ".TABLE_PREFIX."style"); while ($vbstyle=$db->fetch_array($vbstyles_sql)){$phrase="dsl_navbar_hook_".$vbstyle['styleid']; if ($columns_results==9){$db->query_write("INSERT INTO `".TABLE_PREFIX."phrase` VALUES('',-1,'".$phrase."','global','<td id=\"{1}\" class=\"vbmenu_control\"><a style=\"color:{2};\" href=\"{3}\">{4}</a><script type=\"text/javascript\"> vbmenu_register(\"{1}\"); </script></td>','vbulletin','AWJunkies',".$time.",'3.0.0')");}elseif ($rows_results==10){$db->query_write("INSERT INTO `".TABLE_PREFIX."phrase` VALUES('',-1,'".$phrase."','global','<td id=\"{1}\" class=\"vbmenu_control\"><a style=\"color:{2};\" href=\"{3}\">{4}</a><script type=\"text/javascript\"> vbmenu_register(\"{1}\"); </script></td>','vbulletin','AWJunkies',".$time.",'3.0.0',0)");}}
And remove it and re-upload the XML.
I was trying to make all the hooks for you for all styles in case you didn't have them. Not a big deal at all just remove the code that does it from XML and walla will load fine.