Skip to content

Plugin produces critical Error #27

@camilomartins

Description

@camilomartins

Plugin produces critical error at API Endpoint:

Wordpress shows the following error:
Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /var/www/vhosts/arrenberg.app/httpdocs/wp/wp-content/plugins/display-api.php:112 Stack trace: #0 /var/www/vhosts/arrenberg.app/httpdocs/wp/wp-content/plugins/display-api.php(112): array_filter() #1 /var/www/vhosts/arrenberg.app/httpdocs/wp/wp-includes/template-loader.php(106): include('...') #2 /var/www/vhosts/arrenberg.app/httpdocs/wp/wp-blog-header.php(19): require_once('...') #3 /var/www/vhosts/arrenberg.app/httpdocs/wp/index.php(17): require('...') #4 {main} thrown in /var/www/vhosts/arrenberg.app/httpdocs/wp/wp-content/plugins/display-api.php on line 112

This error caused errors for the digital street signs, so they're not working properly.

I fixed the error for now with checking if the Variable $energie_wetter is set and it seems to be working again.
I guess this error only occurs, when the Energiewetter API is not working.

Should be checked some day, but for now everything is working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions