Hey,
I have tried the latest version, it is still not working for me.
However I can’t even test if it is converting, as the plugin is not getting that far. I have enabled “Alter Html”, with it replacing the urls instead of the tags.
When I try to do that using the hooks, nothing happens, but I’m using betheme and I’m not too sure if they even use the content, so maybe that’s the problem.
However when I try to use the output buffering it just crashes the entire site.
This is the error:
[06-Mar-2019 14:31:41 UTC] PHP Fatal error: Uncaught Error: Call to a member function find() on boolean in
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php:161
Stack trace:
#0
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php(200): DOMUtilForWebP\ImageUrlReplacer->replaceHtml('<!DOCTYPE html>...')
#1
projectname/wp-content/plugins/webp-express/lib/classes/AlterHtmlInit.php(57): DOMUtilForWebP\ImageUrlReplacer::replace('<!DOCTYPE html>...')
#2 [internal function]: WebPExpress\AlterHtmlInit::alterHtml('<!DOCTYPE html>...', 9)
#3
projectname/wp-includes/functions.php(3778): ob_end_flush()
#4
projectname/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all('')
#5
projectname/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#6 /Us in
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php on line 161
[06-Mar-2019 14:31:41 UTC] PHP Fatal error: Uncaught Error: Call to a member function find() on boolean in
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php:161
Stack trace:
#0
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php(200): DOMUtilForWebP\ImageUrlReplacer->replaceHtml('<!DOCTYPE html>...')
#1
projectname/wp-content/plugins/webp-express/lib/classes/AlterHtmlInit.php(57): DOMUtilForWebP\ImageUrlReplacer::replace('<!DOCTYPE html>...')
#2 [internal function]: WebPExpress\AlterHtmlInit::alterHtml('<!DOCTYPE html>...', 9)
#3 {main}
thrown in
projectname/wp-content/plugins/webp-express/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php on line 161
When I run it without “Alter HTML” no changes occur on the page, which makes sense. When I now manually set an image source to webp (and set up webp express to work accordingly (files mingled, not in a seperate folder, and webp instead of jpg, not after it), no webp file gets created. Not sure if that’s because the converter doesn’t work, or because the plugin doesn’t recognize a webp file being requested.
I am using nginx, and as you noted I would probably have to change some server settings, however with no access to them that’s not really an option.
I would find that much more acceptable however if the gd converter in the settings wouldn’t display a big green check, and when I run the test it tells me it worked. However that is the only time the converter “works”, leading me to believe that this test is never really run and we are seeing some preset.
If the converter doesn’t work with my configuration fine, but leading me to believer that it does when really it isn’t functional at all is just awful and I would strongly suggest you look into that.
If the converter is actually working and the images are not being created due to some other reason, maybe a way to manually start the conversion of the images could be implemented. That would at the very least help nail down the problem.
Kind regards
Daniel
-
This reply was modified 7 years ago by
sighan.