Jump to content

Upgrade from 1.5.0.15


Recommended Posts

Hi

 

When i make 1click update

Proces is stop on database update and in apache error_log i have

 

[sat Sep 15 12:51:12 2012] [error] [client 109.243.32.55] PHP Fatal error: Call to undefined function get_tab_id() in __/demo/admin12345/autoupgrade/latest/prestashop/install/upgrade/php/clean_tabs_15.php on line 264, referer: __/admin12345/index.php?controller=adminselfupgrade&conf=6&token=9366919f52d382c9b8a989036448d167

 

i check this on 2 sites erors still this same

Link to comment
Share on other sites

I just added this 'missing' function to the clean_tabs_15.php file and re-ran the upgrade from local directory with success:

 

 

function get_tab_id($class_name)

{

static $cache = array();

if (!isset($cache[$class_name]))

$cache[$class_name] = Db::getInstance()->getValue('SELECT id_tab FROM '._DB_PREFIX_.'tab WHERE class_name = \''.pSQL($class_name).'\'');

return $cache[$class_name];

}

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...