• Resolved virmansyah

    (@virmansyah)


    I use the Nginx web server at Centos 7.

    How can WebP Express work on this web server? Please help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author rosell.dk

    (@roselldk)

    I have a section for this in the FAQ.
    Improved Nginx support is on the roadmap, a couple of milestones ahead

    Plugin Author rosell.dk

    (@roselldk)

    I have improved the NGINX rules. See here: https://github.com/rosell-dk/webp-express/issues/166

    HEY @roselldk i want use your plugin on nginx and open my nginx.conf.

    “Insert the following in the server context of your configuration file (usually found in /etc/nginx/sites-available). “The server context” refers to the part of the configuration that starts with “server {” and ends with the matching “}”. “” ”

    But i cant find any entry with “starts with server {“.
    So you can help me?

    View post on imgur.com

    @roselldk any news?

    Hello, I amb on Nginx but I am getting this error in my log … many many times per second:

    Warning: Invalid argument: function: class not found in /public_html/wp-content/plugins/webp-express/lib/classes/AlterHtmlInit.php on line 16

    The code in that line is this:

    ob_start(‘self::alterHtml’);

    Any way to fix it?

    Plugin Author rosell.dk

    (@roselldk)

    Hm, a class with existential problems in futile search for itself. Weird.

    Try changing the line to this, and see if it helps:

    
    ob_start('\\WebPExpress\\AlterHtmlInit::alterHtml');
    

    Does that help?

    It btw works on my Nginx setup. Which PHP version are you on?

    • This reply was modified 5 years, 11 months ago by rosell.dk.
    • This reply was modified 5 years, 11 months ago by rosell.dk.

    Thanks, that fixed it !!!

    I use Nginx with HHVM HipHop machine for php and Fallback to php 7.2 bc my traffic can’t be handled with regular fast-cgi/php 7.2

    • This reply was modified 5 years, 11 months ago by jaumerrr.
    Plugin Author rosell.dk

    (@roselldk)

    Ok.
    I have not done any testing on hhvm at all. But glad to hear that it seems to work for you, with that one change.

    I have implemented the fix. It will be available in the next release. https://github.com/rosell-dk/webp-express/issues/226

    Plugin Author rosell.dk

    (@roselldk)

    The next release is now. It is fixed in 0.13.1.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to use WebP Express at Nginx’ is closed to new replies.