• Resolved dmh123c

    (@dmh123c)


    Since upgrading to PHP 7.4 site fails with only a link to how to debug wordpress. Log message is:

    [Sat Nov 30 13:07:58.698815 2019] [php7:error] [pid 20764] [client 207.46.13.62:35380] PHP Fatal error: Uncaught Error: Call to undefined function gzinflate() in /usr/local/apache/htdocs/northsidelounge.com/wp-content/plugins/wp-forecast/funclib.php:108\nStack trace:\n#0 /usr/local/apache/htdocs/northsidelounge.com/wp-content/plugins/wp-forecast/func_accu.php(32): fetchURL(‘http://forecast…’)\n#1 /usr/local/apache/htdocs/northsidelounge.com/wp-content/plugins/wp-forecast/wp-forecast.php(189): accu_get_weather(‘http://forecast…’, ‘08835’, ‘0’)\n#2 /usr/local/apache/htdocs/northsidelounge.com/wp-includes/class-wp-hook.php(288): wp_forecast_init(”)\n#3 /usr/local/apache/htdocs/northsidelounge.com/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)\n#4 /usr/local/apache/htdocs/northsidelounge.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#5 /usr/local/apache/htdocs/northsidelounge.com/wp-settings.php(523): do_action(‘init’)\n#6 /usr/local/apache/htdocs/northsidelounge.com/wp-config.php(113): require_once(‘/usr/local/apac…’)\n#7 /usr/local/apache/htdocs/northsidelounge.com/wp-load.php in /usr/local/apache/htdocs/northsidelounge.com/wp-content/plugins/wp-forecast/funclib.php on line 108

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dmh123c

    (@dmh123c)

    The php is linked with zlib 1.2.7 and works fine now with php 7.3.12

    Plugin Author tuxlog

    (@tuxlog)

    Thanks, for this information. It is correct wp-forecast needs zlib which should be also available with PHP 7.4.

    Thread Starter dmh123c

    (@dmh123c)

    Both versions of php were built identically and linked with zlib 1.2.7. With php 5.4 the site fails immediately.

    Plugin Author tuxlog

    (@tuxlog)

    Due to the PHP manual gztinflate should work with both of the PHP versions.
    Can you please try to use gzinflate with PHP 7.4.
    Here is an example:

    <?php
    $compressed   = gzdeflate('Compress me', 9);
    $uncompressed = gzinflate($compressed);
    echo $uncompressed;
    ?>
    Thread Starter dmh123c

    (@dmh123c)

    I did not do “make install” and ran it from the build directory.

    [root@dhughes cli]# /home/dmh/src/php-7.4.0/sapi/cli/php ./foo
    Zend OPcache requires Zend Engine API version 320180731.
    The Zend Engine API version 320190902 which is installed, is newer.
    Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.

    PHP Fatal error: Uncaught Error: Call to undefined function gzdeflate() in /home/dmh/src/php-7.4.0/sapi/cli/foo:2
    Stack trace:
    #0 {main}
    thrown in /home/dmh/src/php-7.4.0/sapi/cli/foo on line 2

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error since php 7.4.0 – wp-forecast/funclib.php on line 108’ is closed to new replies.