• Resolved lordmatt

    (@lordmatt)


    I’m trying to track down an odd error. I’m not sure if it is a WebMention error but it does trigger for WebMention.

    Warning: Trying to access array offset on value of type null in [snip]/wp-content/plugins/webmention/includes/Handler/class-wp.php on line 164
    
    Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in [snip]/wp-content/plugins/webmention/includes/Handler/class-wp.php:164

    Any ideas greatly received.

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

    (@lordmatt)

    After some digging, I found that in Webmention\Handler\WP::parse_site_json() it assumes the JSON was all good and so has no error checking. Another plugin was corrupting the JSON and so it ran into trouble when json_decode( $response->get_body(), true ) returned null rather than the expected array.

    I’ve solved the problem for now.

Viewing 1 replies (of 1 total)
  • The topic ‘I’m trying to run down a problem – webmention triggers a bad timezone error’ is closed to new replies.