Support » Plugin: Awesome Weather Widget » PHP 7.2 compatibility

  • Hello,

    I get this on every page while debugging is enabled.

    create_function() is deprecated in /www/wp-content/plugins/awesome-weather/widget.php on line 232

    There might be even other issues but this is what I can see right away.

    Best regards,
    ~Cristian

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve just seen this error myself whilst working in a local environment. Is it only when debugging is enabled? (I same files for the dev site).

    There is talk about using an anonymous function to fix (yet to try as I don’t want to mess about with the plugin).

    Quin is right about replacing this with an anonymous function. “If you are using PHP 5.3.0 or newer a native anonymous function should be used instead.” – PHP.net

    I don’t see any explicit notice of support from a PHP version and anyway, 5.3 is quite old having been released nearly 10 years ago. To the author of this plugin, is this something you can update please?

    php7.2 For me its:

    Notice: Undefined property: stdClass::$name in /wp-content/plugins/awesome-weather/awesome-weather.php on line 301

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7.2 compatibility’ is closed to new replies.