• Resolved grantdb

    (@sixer)


    I was looking at using some DNS prefetch but encountered an issue. The urls are not being inserted into the html at all.

    Here is the error log:

    [Sun Jun 18 18:35:56.089569 2017] [proxy_fcgi:error] [pid 22005] AH01071: Got error ‘PHP message: PHP Warning: Unknown: output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in Unknown on line 0\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/pre-party-browser-hints/class-GKTPP_Send_Entered_Hints.php on line 39\n’, referer: https://grantdb.ca/

    Anyways I have deactivated for now maybe you can take a look when you have time. Any further info you need just let me know!

    Thanks! Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sam Perrow

    (@samperrow)

    Grant,
    Thanks for letting me know! Working on a fix right now!

    Plugin Author Sam Perrow

    (@samperrow)

    Grant, as a user, how much do you value the ability to add the links to each individual page? I’m thinking of removing this ability- it adds quite a bit of complexity to the plugin, and nearly all sites use common resources across all pages/posts that would need resource hints for. So I’m not sure it’s worth the trouble. What are your thoughts?

    Thread Starter grantdb

    (@sixer)

    Personally I have never even thought of using the per page/post feature. I think of this kind of thing as a general header sent for every page. I mean really people don’t usually find you site, go to the home page and then click through other pages, it’s an individual page that they found on a search listing or whatever. So my opinion would be to remove the per page/post option and use it as a server header that gets sent with every page request.

    Cheers!

    Plugin Author Sam Perrow

    (@samperrow)

    Hey Grant,
    I’m close to finishing up a new version of this plugin that removes the per page/post option, and adds an option to add hints in the header vs. the head. Would you be willing to test out the beta version of it? If you are, please send me an email at [email protected] so I can send you the zip file.
    Thanks!

    Thread Starter grantdb

    (@sixer)

    Email sent!

    Thread Starter grantdb

    (@sixer)

    Just an update!

    I have been investigating my server config as far as php.ini and output compression. I believe my output settings were conflicting and thats the cause of the first error I posted. Going to see if this problem with my server config also caused the errors following to do with your plugin.

    zlib.output_compression = on
    
    ; https://php.net/zlib.output-compression-level
    zlib.output_compression_level = -1
    
    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ; https://php.net/zlib.output-handler
    zlib.output_handler = ob_gzhandler

    I think after reading the php.net docs that it should be:

    zlib.output_compression = 4096
    
    ; https://php.net/zlib.output-compression-level
    zlib.output_compression_level = -1
    
    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ; https://php.net/zlib.output-handler
    zlib.output_handler =

    Will test and let you know what happens!

    Edit: Same errors on the original plugin as before minus the ob_gzhandler error.

    • This reply was modified 7 years, 4 months ago by grantdb. Reason: new test results
    Plugin Author Sam Perrow

    (@samperrow)

    Released new version, this behavior should be resolved. If the hints can’t be added into the <head>, you can try adding them in the header.

    Thread Starter grantdb

    (@sixer)

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP error and output handler conflict’ is closed to new replies.