Problems updating from 4.16.0 to 5.0.0

When updating from 4.16.0 to 5.0.0 I get the following messages:

WARNING   [10:07:51] 14222  ../plugins/TagManager/UpdateHelper/NewVariableParameterMigrator.php(112): Notice - Undefined index: description - Matomo 5.0.0 - Please report this message in the Matomo forums: (please do a search first as it might have been reported already)

    [X] Critical Error during the update process:

    * SQLSTATE[42S22]: Column not found: 1054 Unknown column 'description' in 'field list'

    The above is the core error message. It should help explain the cause, but if you require further help please:

    * Check the [ Matomo FAQ ] which explains most common errors during update.
    * Ask your system administrator - they may be able to help you with the error which is most likely related to your server or MySQL setup.

    If you are an advanced user and encounter an error in the database upgrade:

    * identify and correct the source of the problem (e.g., memory_limit or max_execution_time)
    * execute the remaining queries in the update that failed
    * manually update the `option` table in your Matomo database, setting the value of version_core to the version of the failed update
    * re-run the updater (through the browser or command-line) to continue with the remaining updates
    * report the problem (and solution) so that Matomo can be improved
ERROR     [10:07:52] 14222  Uncaught exception: ../plugins/CoreUpdater/Commands/Update.php(267): Matomo could not be updated! See above for more information. [Query: , CLI mode: 1]

In Update.php line 267:

  Matomo could not be updated! See above for more information.

core:update [--yes] [--skip-cache-clear]

Running with the parameters --yes and --skip-cache-clear results in the same message

1 Like

I was able to solve the problem.

I have executed the three queries from the following solved issue:

then executed the update command again and it ran without any problems.

1 Like

Thanks for reporting this. And for sharing the solution.

We will keep an eye out for similar problems with other users.