Support » Plugin: WP-Matomo (WP-Piwik) » PHP Warning: Illegal string offset ‘policy_text’

  • Resolved esmuellerthier

    (@esmuellerthier)


    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

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author braekling

    (@braekling)

    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

    (@braekling)

    @mods: Can you please have a look at this? Seems like the embedded code block destroys the page layout? Thx.

    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

    (@braekling)

    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?)?

    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.