• Resolved Stang

    (@jimmyjangwoo)


    Hello. I have been having some issues with Matomo for the last two versions. Although they are different, it seems that they are related.

    5.1.7 was working for me just fine.

    When I attempted to upgrade to 5.2.0, it would cause a fatal error on the admin back end, but the site was still accessible to the public. Despite the WordPress fatal error saying that I’d get an email with details, it would never arrive. So I’d roll back to 5.1.7 and the issue would resolve – I could access the admin side, and Matomo worked again. I tried a few attempts to upgrade (both from the .zip and from WP) with the same results, so I just left it and waited for Matomo to be updated to see if that would solve it before reaching out for help.

    5.2.2 arrived so I thought I’d try and update it. This time it didn’t throw the whole admin side into a fatal error, so that’s good. But Matomo is still broken. I can access the Matomo diagnostics page, but that’s about it. The summary page DOES throw a fatal error, and thankfully this time I do get an email with some details. The diagnostic page also shows a red error:

    Matomo System Check Failed to run Matomo system check. You must be logged in to access this functionality.

    I am, of course, logged in as an administrator, but Matomo doesn’t seem to think that I am. The Matomo settings are inaccessible.

    I am getting an occasional fatal error in other areas of the admin area, but a refresh seems to let me resume, unlike the full-on fatal error of 5.2.0

    The error email reads:

    Error Details ============= An error of type E_ERROR was caused in line 117 of the file /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ApiRenderer.php. Error message: Uncaught Exception: Renderer format ‘console’ not valid. Try any of the following instead: . in /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ApiRenderer.php:117 Stack trace: #0 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ResponseBuilder.php(40): Piwik\API\ApiRenderer::factory() #1 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/Request.php(252): Piwik\API\ResponseBuilder->__construct() #2 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/Request.php(511): Piwik\API\Request->process() #3 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Report/Metadata.php(40): Piwik\API\Request::processRequest() #4 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Report/Metadata.php(75): WpMatomo\Report\Metadata->get_all_reports() #5 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php(116): WpMatomo\Report\Metadata->find_report_by_unique_id() #6 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php(65): WpMatomo\Admin\Summary->get_reports_to_show() #7 /home/execulin/public_html/wp/wp-includes/class-wp-hook.php(324): WpMatomo\Admin\Summary->show() #8 /home/execulin/public_html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /home/execulin/public_html/wp/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /home/execulin/public_html/wp/wp-admin/admin.php(259): do_action() #11 {main} thrown

    I have done a few things to try and troubleshoot this, including:
    – re-installing the plugin via .zip
    – clearing the Matomo cache
    – clearing the LSCache
    – updating PHP from 8.3 to 8.4

    If anyone has any possible next steps for me, I would appreciate the help, and would love to get to the bottom of this. Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @jimmyjangwoo, can you enable debug logging by adding:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    to your wp-config.php file (above the line where it says to stop editing)?

    Then trigger the error, and check the /path/to/wordpress/wp-content/debug.log file for errors.

    If you can find errors other than the one above, that would be helpful, as the error posted appears to be covering up the real error.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Can you also tell me if you installed any plugins from the Matomo Marketplace?

    Thread Starter Stang

    (@jimmyjangwoo)

    Hello. Thanks for the reply. I have enabled debugging and the main one that I find is below, which think is similar (or the same) to the original one from the email. With the exception of that very first line saying that Matomo is not yet installed.

    [10-Mar-2025 14:24:08 UTC] Matomo: Matomo is not yet installed... installing now
    [10-Mar-2025 14:24:08 UTC] Matomo: ERROR: Uncaught exception in API: /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ApiRenderer.php(117): Renderer format 'original' not valid. Try any of the following instead: . [Query: ?page=matomo-summary, CLI mode: 0]
    [10-Mar-2025 14:24:08 UTC] PHP Fatal error: Uncaught Exception: Renderer format 'console' not valid. Try any of the following instead: . in /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ApiRenderer.php:117
    Stack trace:
    #0 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ResponseBuilder.php(40): Piwik\API\ApiRenderer::factory()
    #1 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/Request.php(252): Piwik\API\ResponseBuilder->__construct()
    #2 /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/Request.php(511): Piwik\API\Request->process()
    #3 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Report/Metadata.php(40): Piwik\API\Request::processRequest()
    #4 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Report/Metadata.php(75): WpMatomo\Report\Metadata->get_all_reports()
    #5 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php(116): WpMatomo\Report\Metadata->find_report_by_unique_id()
    #6 /home/execulin/public_html/wp/wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php(65): WpMatomo\Admin\Summary->get_reports_to_show()
    #7 /home/execulin/public_html/wp/wp-includes/class-wp-hook.php(324): WpMatomo\Admin\Summary->show()
    #8 /home/execulin/public_html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /home/execulin/public_html/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
    #10 /home/execulin/public_html/wp/wp-admin/admin.php(259): do_action()
    #11 {main}
    thrown in /home/execulin/public_html/wp/wp-content/plugins/matomo/app/core/API/ApiRenderer.php on line 117

    Regarding your question to Matomo Marketplace plugins, I previously had just one, but I have since removed them while troubleshooting: “Marketing Campaigns Reporting (Matomo Plugin)”. I also disabled/removed the “Matomo Marketplace for WordPress” plugin. Removing both had no noticeable impact.

    I also spotted this memory error, immediately after a Matomo error, which seems suspect. While troubleshooting another issue, seemingly unrelated, a couple of months ago, my host assures me that there is nothing wrong on their end, so I am unsure if a plugin is causing the memory issue, or the memory issue is causing a plugin issue.

    [10-Mar-2025 14:25:31 UTC] Matomo: Matomo is not yet installed... installing now
    [10-Mar-2025 14:25:33 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/execulin/public_html/wp/wp-includes/class-wpdb.php on line 2316

    And then there is this one, which seems to come when I sync users through the diagnostics menu:

    [10-Mar-2025 14:22:26 UTC] Matomo: Matomo is not yet installed... installing now
    [10-Mar-2025 14:22:26 UTC] Matomo: Matomo will now create the database
    [10-Mar-2025 14:22:27 UTC] Matomo: Matomo is now creating the config
    [10-Mar-2025 14:22:28 UTC] Matomo: Matomo will now trigger an update
    [10-Mar-2025 14:22:28 UTC] Matomo: No settings changed yet
    [10-Mar-2025 14:22:28 UTC] Matomo: Matomo is now syncing blogId 1
    [10-Mar-2025 14:22:28 UTC] Matomo: Matomo site is known for blog (1)... will update
    [10-Mar-2025 14:22:29 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/execulin/public_html/wp/wp-includes/class-wpdb.php on line 2316

    The “Matomo is not yet installed…” error seems to be a common theme. Matomo does appear on the admin area, and some areas are accessible initially (like Diagnostics), but all reports, summaries, etc. either throw that fatal error, or it just sends me back to the main page of the wp-admin area.

    I have installed 5.2.2. from WordPress and also the .zip, rolled back to 5.1.7 and tried again, and also deleted Matomo and installed 5.2.2 “fresh”, while keeping the data. It still ends with the same result.

    Thanks so much for helping with this, and please let me know if I can provide any other info, or can try any suggestions, to resolve this issue.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @jimmyjangwoo 256M of memory is a bit low for Matomo, can you increase it to 512M? There is probably a setting in the user interface your hosting provider provides to change this. If you can only find a setting to customize php.ini, try to add memory_limit = 512M.

    Thread Starter Stang

    (@jimmyjangwoo)

    Hello! Thank you. I have increased the memory limit in the PHP section of cPanel to 512M and Matomo does indeed seem to be functioning normally again. Thank you so much for the assistance!

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Glad it’s working! I’ll mark this as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.