Support » Plugin: PageSpeed Ninja » 500 error

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Denis Ryabov


    1) What preset did you choose? Try to start with the Safe preset (see Advanced settings tab).
    2) Do you have related error message(s) in error_log file?

    We started with ‘optimal’ and we are including the error log below.

    Thank you very much for your fast support.

    [18-Jul-2019 11:48:41 Europe/London] PHP Warning: copy(/var/www/ failed to open stream: Permission denied in /var/www/ on line 142
    [18-Jul-2019 11:48:41 Europe/London] PHP Warning: touch(): Unable to create file /var/www/ because Permission denied in /var/www/ on line 121
    [18-Jul-2019 11:48:41 Europe/London] PHP Fatal error: Call to undefined function imagecreatefrompng() in /var/www/ on line 105
    [18-Jul-2019 11:48:41 Europe/London] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

    Plugin Author Denis Ryabov


    1) Your PHP is build without support of gd2 library (it’s necessary to rescale and optimize images). If you have imagemagick on your server and PHP is built with support of imagemagick (very unluckily), you can switch to it.
    2) PageSpeed Ninja is not able to backup original image file, most likely permissions for wp-content/plugins/custom-facebook-feed-pro/img directory is set to read-only (or owner of this directory is another user on the server).
    3) Not sure where the last error (Cannot use output buffering in output buffering) comes from, in the frontend PageSpeed Ninja doesn’t start output buffering except of one point in the template_redirect action handler, but sure this point is not related to this issue.

    Hi… Thanks again for quick response.
    Your suggestions have worked and the plugin is now working without producing a 500 error.

    The plugin looks great and it has scanned the site and shows some items in red, orange and green – but how do i tell the plugin to fix them?

    Kind regards

    Plugin Author Denis Ryabov


    PageSpeed Ninja compares original score for specified item and current (optimized) one, and color of the switch depends on the their difference. Green: Improves the score. Orange: a minor or no effect on the score. Red: negatively affects the score. If you see red switch, you can either turn it off, or tune related settings in the Advanced tab to get higher score.

    Thank you for all you help.


    I tried all the options and best one for best speed and compatibility weirdly was the experimental mode but in pagespeed or gtmatrix test it gets error 500 always but the site works perfectly.

    I tried the other modes but they mess the website up. only one I love is the experimental mode please any advice?


    • This reply was modified 9 months, 2 weeks ago by oroody.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘500 error’ is closed to new replies.