Title: WordPress / Self-hostes PHP API / Critical Error
Last modified: September 21, 2023

---

# WordPress / Self-hostes PHP API / Critical Error

 *  Resolved [Jan](https://wordpress.org/support/users/locke85/)
 * (@locke85)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/)
 * Hi [@braekling](https://wordpress.org/support/users/braekling/),
 * I’m running Matomo on the same server as the website, hence used the option (
   self-hostes PHP API) to connect wp-matomo to the matomo instance. When I click“
   save” [this critical error](https://share.zight.com/p9uYjOxD) occurs.
 * In the WP error log provided these details:
 * #6 /home/wp/disk/wordpress/wp-content/plugins/wp-piwik/classes/W” while reading
   upstream, client: 62.216.206.50, server: 60plusconsulting.de, request: “POST /
   wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php HTTP/2.0”, upstream:“
   fastcgi://unix:/var/run/wordpress.php-fpm.sock:”, host: “60plusconsulting.de”,
   referrer: “[https://60plusconsulting.de/wp-admin/options-general.php?page=wp-piwik%2Fclasses%2FWP_Piwik.php”#5](https://60plusconsulting.de/wp-admin/options-general.php?page=wp-piwik%2Fclasses%2FWP_Piwik.php%22#5)/
   home/wp/disk/wordpress/wp-content/plugins/wp-piwik/classes/WP_Piwik.php(1044):
   WP_Piwik\Request->perform()#4 /home/wp/disk/wordpress/wp-content/plugins/wp-piwik/
   classes/WP_Piwik/Request.php(63): WP_Piwik\Request\Php->request()#3 /home/wp/
   disk/wordpress/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Php.php(18):
   WP_Piwik\Request\Php->call()#2 /home/wp/disk/wordpress/wp-content/plugins/wp-
   piwik/classes/WP_Piwik/Request/Php.php(46): Piwik\API\Request->process()#1 /home/
   wp/disk/wordpress/wp-content/plugins/matomo/app/core/API/Request.php(282): Piwik\
   API\ResponseBuilder->__construct()#0 /home/wp/disk/wordpress/wp-content/plugins/
   matomo/app/core/API/ResponseBuilder.php(43): Piwik\API\ApiRenderer::factory()
   Stack trace:2023/09/21 17:49:56 [error] 2946682#2946682: *704488 FastCGI sent
   in stderr: “PHP message: PHP Fatal error: Uncaught Exception: Renderer format‘
   console’ not valid. Try any of the following instead: . in /home/wp/disk/wordpress/
   wp-content/plugins/matomo/app/core/API/ApiRenderer.php:143
 * Please advise on how to fix the error.
 * Thanks,
 * Jan
 * System details:
    - WP version 6.3.1
    - Matomo version 4.15.1
    - Matomo connect version 1.0.29

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17070950)
 * Hi Jan,
 * it looks like you are using Connect Matomo with Matomo Analytics? This should
   not be necessary, Matomo Analytics is intended to be used standalone.
 * The error message also points to Matomo itself:
 *     ```wp-block-code
       PHP message: PHP Fatal error: Uncaught Exception: Renderer format ‘console’ not valid. Try any of the following instead: . in /home/wp/disk/wordpress/wp-content/plugins/matomo/app/core/API/ApiRenderer.php:143
       ```
   
 * I switched my personal setup to PHP mode and don’t receive any error, maybe [@matomoteam](https://wordpress.org/support/users/matomoteam/)
   can give a hint what’s wrong here.
 *  Thread Starter [Jan](https://wordpress.org/support/users/locke85/)
 * (@locke85)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17085282)
 * Hi André,
 * thanks for getting back. I’d love to get the new from [@matomoteam](https://wordpress.org/support/users/matomoteam/)
   also.
 * I understood your comment about running both stand-alone.
 * Why would we want to run both in parallel: I’m migrating different sites from
   GA to Matomo and most site owners got used to SiteKit from Google which nicely
   presents relevant stats directly in the WP dashboard. In my research I ran into
   your plugin which apparently does similar things on the back of Matomo-Analytics.
   It would be convenient for users not having to navigate into Matomo/ Reports 
   but have everything right there in the dashboard.
 * That said, I updated Matomo- Analytics to the latest version and tried to connect
   again: Added the path /wp-content/plugins/matomo/ and switched to PHP mode. The
   error still occures ;-(
 * The full path is as follow: [https://domain.de/wp-content/plugins/matomo/app/](https://domain.de/wp-content/plugins/matomo/app/)
 * Which part of the URL did you use?
 * Thanks,
 * Jan
    -  This reply was modified 2 years, 8 months ago by [Jan](https://wordpress.org/support/users/locke85/).
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17099019)
 * Hi Jan,
 * I get why you want to use both together. Just wonder if it would be better to
   run a standalone Matomo instance beside WordPress instead of an integrated one.
 * First, if you want to use PHP mode, I would suggest to use a full, absolute path,
   e.g. `/var/www/yourblog/html/wp-content/...`
 * Second, did you try HTTP mode? This should definitely work and is less error-
   prone.
 * I’m just using a standalone Matomo instance and this is working fine, so sadly
   I can’t reproduce the issue. Hopefully somebody else or [@matomoteam](https://wordpress.org/support/users/matomoteam/)
   can check if the combination of both does normally work or if it is a recurring
   problem with this specific setup.
 *  Plugin Author [Thomas](https://wordpress.org/support/users/tsteur/)
 * (@tsteur)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17100457)
 * [@locke85](https://wordpress.org/support/users/locke85/) I’m not fully sure how
   WP-Matomo connects to Matomo and what might be the problem there but indeed Connect
   Matomo is not intended to be used with the full Matomo Analytics plugin. I have
   a feeling that Matomo is basically loaded twice and it could cause issues. It’s
   also possible the way it’s loaded that it does not load the correct config file
   as specified by the Matomo Analytics plugin itself.
 * By the way the Matomo Analytics plugin also lets you add some reports to the 
   dashboard by clicking on “Matomo -> Summary” and then clicking on the Pin icon.
 *  Thread Starter [Jan](https://wordpress.org/support/users/locke85/)
 * (@locke85)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17106466)
 * Hi Thomas,
 * thank for you clarification. Especially your advice regarding reports from the
   summary page is very helpful indeed.
 * Regards,
 * Jan

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress / Self-hostes PHP API / Critical Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jan](https://wordpress.org/support/users/locke85/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/wordpress-self-hostes-php-api-critical-error/#post-17106466)
 * Status: resolved