• Hello there,

    I migrated our shop to an other web host. Now i get following message in the error log for every page visit:

    2020/03/16 21:24:35 [error] 15308#15308: *169005 FastCGI sent in stderr: “PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /home/wp/disk/wordpress/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-rest.php on line 241” while reading response header from upstream, client: 78.43.42.58, server: https://www.fluff-store.de, request: “GET /wp-json/wpstatistics/v1/hit?_=1584390274&_wpnonce=d7ddb58ad4&wp_statistics_hit_rest=yes&ua=Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%2013_3_1%20like%20Mac%20OS%20X)%20AppleWebKit/605.1.15%20(KHTML,%20like%20Gecko)%20Version/13.0.5%20Mobile/15E148%20Safari/604.1&url=https://www.fluff-s

    I dont know if this error was there before the migration as well. Did not see the log on the old server.

    Do you have any Idea how to fix it?

    Best Regards,
    Mathias

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

Viewing 1 replies (of 1 total)
  • Thread Starter mathias2010

    (@mathias2010)

    I have found out, that this error is related to the plugins caching option. While deactivated, the plugin does not throw error messages. But it asks me to enable this setting. While enabled, it does throw an error for every page impression.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: trim() expects parameter 1 to be string’ is closed to new replies.