Title: PHP Warning: Illegal string offset &#8216;policy_text&#8217;
Last modified: November 25, 2019

---

# PHP Warning: Illegal string offset ‘policy_text’

 *  Resolved [esmuellerthier](https://wordpress.org/support/users/esmuellerthier/)
 * (@esmuellerthier)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/)
 * Hello,
 * I get this error Message in Nginx/error.log
 * WP-Piwik won’t track anymore.
    How can I fix these error?
 *     ```
       	<li>Nginx
       PHP 7.3.11
       latest WordPress Version</li>
   
       <code>2019/11/24 18:59:51 [error] 9540#9540: *59614 FastCGI sent in stderr: &quot;PHP message: PHP Warning:  Illegal string offset 'plugin_name' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 96PHP message: PHP Warning:  Illegal string offset 'policy_text' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 97PHP message: PHP Warning:  Illegal string offset 'plugin_name' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 96PHP message: PHP Warning:  Illegal string offset 'policy_text' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 97PHP message: PHP Warning:  Illegal string offset 'plugin_name' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 96PHP message: PHP Warning:  Illegal string offset 'policy_text' in /var/www/dasnetzundich/wp-admin/includes/class-wp-privacy-policy-content.php on line 97&quot; while reading response header from upstream, client: 2003:f9:5700:3100:f5d3:ceca:bb28:aa8, server: dasnetzundich.de, request: &quot;POST /wp-admin/admin-ajax.php HTTP/2.0&quot;, upstream: &quot;fastcgi://unix:/var/run/php/php7.3-fpm.sock:&quot;, host: &quot;dasnetzundich.de&quot;, referrer: &quot;https://dasnetzundich.de/wp-admin/index.php?page=wp-piwik_stats&quot;</code>
       ```
   
 * Best regards
 * Lars
    -  This topic was modified 6 years, 6 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-illegal-string-offset-policy_text%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12172021)
 * **1. Warning appears**
 * Hard to say what’s happening there there. But from what I see, this should not
   affect the tracking, because the warning is triggered on the stats overview page.
   It seems to be related to the privacy policy, when text is updated… Can you describe
   what you are exactly doing in your backend when this warning occurs?
 * **2. Users are not tracked**
 * But anyway, the tracking code is embedded to your page, so the tracking still
   should work fine. Looking at the tracking code, I see, that you are using your
   own code, so it is not fetched and modified by WP-Matomo. Currently, a lot of
   errors occur on your page, but at least I see that `embedTrackingCode` is not
   defined… so, first of all, you should have a look at your tracking code.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12172037)
 * [@mods](https://wordpress.org/support/users/mods/): Can you please have a look
   at this? Seems like the embedded code block destroys the page layout? Thx.
 *  Thread Starter [esmuellerthier](https://wordpress.org/support/users/esmuellerthier/)
 * (@esmuellerthier)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12175364)
 * Thanks for your reply.
    I have setup this Plugin again and don’t edit the tracking
   code. But still not working. When I look at the Nginx logs I have visitors.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12175748)
 * Now I get a “critical error” from WordPress if I open your page. I can’t see 
   if the tracking code is working now. Please write here when it’s possible to 
   have a look – otherwise I have no chance to help.
 * Anyway: Did you check your site’s source code (does the tracking code appear?)
   and your browser’s console (are there any error messages related to the tracking
   code?)?
 *  Thread Starter [esmuellerthier](https://wordpress.org/support/users/esmuellerthier/)
 * (@esmuellerthier)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12175880)
 * Problem solved with the Childtheme.
 * I add the Tracking Code to the functions.php and it works now.

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

The topic ‘PHP Warning: Illegal string offset ‘policy_text’’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [esmuellerthier](https://wordpress.org/support/users/esmuellerthier/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-policy_text/#post-12175880)
 * Status: resolved