Regin
(Regin Jensen)
October 14, 2022, 9:48am
#1
Got this warning when trying to save a global excluded IP:
WARNING: /libs/Zend/Db/Statement/Pdo.php(229): Warning - Array to string conversion - Matomo 4.12.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: SitesManager, Action: setGlobalSettings, In CLI mode: false)
Hi @Regin
I think that this has been already taken into account:
opened 04:41PM - 12 Oct 22 UTC
closed 08:18AM - 14 Oct 22 UTC
Bug
## Expected Behavior
No error, no warning
## Current Behavior
After 4.12 up… date:
```
WARNING: /tmp/templates_c/08/086087ec6b1f49536aca0dde3949a877ff4f4f1d35c2087ab45bea9f74ddf14d.php(48): Notice - Array to string conversion - Matomo 4.12.0 - Please report this message in the Matomo forums: https://forum.matomo.org/ (please do a search first as it might have been reported already) (Module: PrivacyManager, Action: usersOptOut, In CLI mode: false)
```
Also (in line 48) ?
```
echo \Piwik\piwik_escape_filter($this->env, (isset($context["language"]) || array_key_exists("language", $context) ? $context["language"] : (function () { throw new RuntimeError('Variable "language" does not exist.', 2, $this->source); })()), "html", null, true);
```
## Possible Solution
Fix the bug 🤣
## Steps to Reproduce (for Bugs)
Module: PrivacyManager, Action: usersOptOut, In CLI mode: false?
## Context
https://forum.matomo.org/t/mise-a-jour-4-12-message-pour-info-pas-bloquant/47700
## Your Environment
* Matomo Version: 4.12.0 after update
* PHP Version:
* Server Operating System:
* Additionally installed plugins:
This has been delivered in release 4.12.1