• I use the Jetpack widget visibility control to make the google map widget not appear on one page. This made it hide correctly – but on the pages where it does appear it gives an error message for line 53 of widget.php saying the trim function was not being passed a string.

    Fixed it by editing line 53 widget.php to wrap that part of the code in an is_string() test…

    foreach ($instance as $key => $value) {
      if (is_string($value)) {
        $value = trim($value);
        $value = ...
        ...
      }
    }

    https://wordpress.org/plugins/comprehensive-google-map-plugin/

  • The topic ‘Jetpack widget visibility control breaks plugin – easy fix’ is closed to new replies.