• Resolved lucabarelli

    (@lucabarelli)


    Hi Bjoern,

    I’m fighting with PHP7.2-FPM (under Apache, but I presume it’ll be the same under Nginx) and I’m getting an error related to your plugin.
    Most probably this happens because PHP7.2-FPM is not loaded as Apache module.
    Check this https://stackoverflow.com/questions/2916232/call-to-undefined-function-apache-request-headers
    Error below:

    AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apache_request_headers() in /PATH/TO/SITE/FOLDER/wp-content/plugins/wp-performance-pack/modules/dynamic_images/class.wppp_serve_image.php:216\nStack trace:\n#0 /PATH/TO/SITE/FOLDER/wp-content/plugins/wp-performance-pack/modules/dynamic_images/class.wppp_serve_image.php(332): WPPP_Serve_Image->check_cache_headers()\n#1 /PATH/TO/SITE/FOLDER/wp-content/plugins/wp-performance-pack/modules/dynamic_images/serve-dynamic-images.php(101): WPPP_Serve_Image->serve_image()\n#2 {main}\n thrown in /PATH/TO/SITE/FOLDER/wp-content/plugins/wp-performance-pack/modules/dynamic_images/class.wppp_serve_image.php on line 216\nPHP message: PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /PATH/TO/SITE/FOLDER/wp-includes/formatting.php:4316\nStack trace:\n#0 /PATH/TO/SITE/FOLDER/wp-includes/class-wp-fatal-error-handler.php(190): esc_url(‘https://wordpre…’)\n#1 /PATH/TO/SITE/FOLDER/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)\n#2 /PATH/TO/SITE/FOLDER/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)\n#3 [internal function]: WP_Fatal_Error_Handler->handle()\n#4 {main}\n thrown in /PATH/TO/SITE/FOLDER/wp-includes/formatting.php on line 4316\n’, referer: https://MYSITE.URL/CATEGOERY/POST

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bjoern

    (@greencp)

    I checked and found the cause. I’ll fix it with the next version. For now you can just comment out line 332 in wp-performance-pack/modules/dynamic_images/class.wppp_server_image.php
    (it says
    $this->check_cache_headers();
    which is calling apache request headers).

    • This reply was modified 4 years, 2 months ago by Bjoern.
    Thread Starter lucabarelli

    (@lucabarelli)

    Ok, I’ll be trying it right now and will keep you updated.
    Thanks,

    – Luca

    Plugin Author Bjoern

    (@greencp)

    Should also be fixed in version 2.2.4

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP7.2-FPM error’ is closed to new replies.