-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED\' does not exist #416
Comments
Needed this in matomo-org/matomo-for-wordpress#417 and documented it in https://github.com/matomo-org/wp-matomo/wiki/Database refs matomo-org/matomo-for-wordpress#416 refs https://wordpress.org/support/topic/error-in-php-log-after-manual-update-to-v4-1-2/ refs https://wordpress.org/support/topic/archive-warning-error-unserializing-wp_matomo_logtmpsegment/ refs https://wordpress.org/support/topic/php-error-with-vn-4-1-2/
…able exists Needed this in matomo-org/matomo-for-wordpress#417 and documented it in https://github.com/matomo-org/wp-matomo/wiki/Database refs matomo-org/matomo-for-wordpress#416 refs https://wordpress.org/support/topic/error-in-php-log-after-manual-update-to-v4-1-2/ refs https://wordpress.org/support/topic/archive-warning-error-unserializing-wp_matomo_logtmpsegment/ refs https://wordpress.org/support/topic/php-error-with-vn-4-1-2/ Previously, I had detected this query like this: https://github.com/matomo-org/wp-matomo/pull/417/files#diff-c4e75ddbbcdde3ba408b5a87e273371dd3420a5d0b90a87bb4295e81787cdc31L365 but now it looks like `SELECT /*+MAX_EXECUTION_TIME....` and it's quite hard to detect it without trying to reconstruct the query or using regex. This way it'll be more future proof
Thanks for this @maxxer90 I was finally able to reproduce this and we should have a fix for it. We'll release an update soon. Be great if you could confirm if it's still an issue after updating. Basically, it was expected for that query to fail in some cases but WP DB behaviour was to still log this message even though it was not causing any issue and expected to fail. So everything should still have worked meanwhile. In future it should be no longer logged. |
…able exists (#17158) Needed this in matomo-org/matomo-for-wordpress#417 and documented it in https://github.com/matomo-org/wp-matomo/wiki/Database refs matomo-org/matomo-for-wordpress#416 refs https://wordpress.org/support/topic/error-in-php-log-after-manual-update-to-v4-1-2/ refs https://wordpress.org/support/topic/archive-warning-error-unserializing-wp_matomo_logtmpsegment/ refs https://wordpress.org/support/topic/php-error-with-vn-4-1-2/ Previously, I had detected this query like this: https://github.com/matomo-org/wp-matomo/pull/417/files#diff-c4e75ddbbcdde3ba408b5a87e273371dd3420a5d0b90a87bb4295e81787cdc31L365 but now it looks like `SELECT /*+MAX_EXECUTION_TIME....` and it's quite hard to detect it without trying to reconstruct the query or using regex. This way it'll be more future proof
Thank you very much for your work @tsteur . I could run manual archiving without any errors after the latest update :) And automatic archiving works, too :) |
Hello Matomo Wordpress Team,
I tried a new installation of Matomo for Wordpress on our site yesterday.
Everything is working except archiving.
When I try to do manual archiving, I get the following errors:
It is the same issue as this user: https://wordpress.org/support/topic/archive-warning-error-unserializing-wp_matomo_logtmpsegment/
This is my system report:
Endpoints
Crons
Vorgeschriebene Prüfungen
Optionale Prüfungen
Matomo Settings
Logs
WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateDayReport, Piwik\Plugins\Goals\Archiver->aggregateDayReport, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
{"idarchives":[280],"nb_visits":"1"}'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=week&date=2021-01-25&format=json&trigger=archivephp: 'WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
{"idarchives":[283],"nb_visits":3}'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2021-01-01&format=json&trigger=archivephp: 'WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
{"idarchives":[286],"nb_visits":3}'' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2021-01-01&format=json&trigger=archivephp: 'WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) / 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
WordPress-Datenbank-Fehler Table '$DB_NAME.wp_matomo_logtmpsegmentTOKEN_REPLACED' doesn't exist für Abfrage SELECT /+ MAX_EXECUTION_TIME(7200000) */ 1 FROM wp_matomo_logtmpsegmentTOKEN_REPLACED LIMIT 1 von Symfony\Component\Console\Application->run, Piwik\Console->doRun, Piwik\Console->doRunImpl, Piwik\Access::doAsSuperUser, Piwik\Console->Piwik\{closure}, call_user_func, Symfony\Component\Console\Application->doRun, Symfony\Component\Console\Application->doRunCommand, Symfony\Component\Console\Command\Command->run, Piwik\CliMulti\RequestCommand->execute, require_once('/plugins/matomo/app/index.php'), require_once('/plugins/matomo/app/core/dispatch.php'), Piwik\FrontController->dispatch, Piwik\FrontController->doDispatch, call_user_func_array, Piwik\Plugins\API\Controller->index, Piwik\API\Request->process, Piwik\API\Proxy->call, Piwik\Context::executeWithQueryParameters, Piwik\API\Proxy->Piwik\API\{closure}, call_user_func_array, Piwik\Plugins\CoreAdminHome\API->archiveReports, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\Plugin\Archiver->callAggregateMultipleReports, Piwik\Plugins\Goals\Archiver->aggregateMultipleReports, Piwik\ArchiveProcessor->processDependentArchive, Piwik\ArchiveProcessor\Loader->prepareArchive, Piwik\Context::changeIdSite, Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}, Piwik\ArchiveProcessor\Loader->prepareArchiveImpl, Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive, Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins, Piwik\DataAccess\LogAggregator->cleanup, Piwik\DataAccess\LogAggregator->doesSegmentTableExist, Piwik\DataAccess\ArchivingDbAdapter->fetchOne, call_user_func_array, Piwik\Db\Adapter\WordPress->fetchOne
{"idarchives":[289],"nb_visits":3}'' '4 total errors during this script execution, please investigate and try and fix these errors.' => ScheduledTasks.php:301; SystemReport.php:114; SystemReport.php:178; class-wp-hook.php:287; class-wp-hook.php:311; plugin.php:484; admin.php:259;)
WordPress
WordPress Plugins
Server
Database
Browser
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: