Upgrading from version 0.5.3 to the new version 0.5.4

(Azizur) #1

Hi All,

Just wondered if anyone experienced this issue.

Errors during upgrading from version 0.5.3 to the new version 0.5.4.

Fatal error: Call to undefined method Piwik_Db_Pdo_Mysql::exec() in [path-to]/core/PluginsFunctions/Sql.php on line 22

I had the same issue when I upgraded from previous version.

(Azizur) #2

Only thing the core/PluginsFunctions/Sql.php on line 22 is used for is to execute the following SQL:

ALTER TABLE `[tables_prefix]_log_action` CHANGE `name` `name` TEXT

I wondered if this was due to the calling method was not updated?

I have managed to upgrade to new version but wondered when this will be fixed so that I don’t have to manually run the above SQL.

(vipsoft) #3

The exec() method is defined in libs/Zend/Db/Adapter/Pdo/Abstract.php which is subclassed by libs/Zend/Db/Adapter/Pdo/Mysql.php which is subclassed by core/Db/Pdo/Mysql.php (aka Piwik_Db_Pdo_Mysql).

What PHP version are you using? Are you hosting another copy of Zend Framework?