• Resolved mrsmurf

    (@mrsmurf)


    Hi

    I do not have webp the webp-conveter feature enabled but the error log gets flooded with these warnings:

    PHP Warning: unlink(/var/www/html/wp-content/uploads/wpo/images/wpo_logo_small.png.webp): No such file or directory in /var/www/html/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/DestinationPreparationTrait.php on line 94
    PHP Warning: filesize(): stat failed for /var/www/html/wp-content/uploads/wpo/images/wpo_logo_small.png.webp.lossy.webp in /var/www/html/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 70
    PHP Warning: rename(/var/www/html/wp-content/uploads/wpo/images/wpo_logo_small.png.webp.lossy.webp,/var/www/html/wp-content/uploads/wpo/images/wpo_logo_small.png.webp): No such file or directory in /var/www/html/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/ConverterTraits/EncodingAutoTrait.php on line 73

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    @mrsmurf We are aware of the issue and this will be fixed in our next release.

    I’m seeing similar messages in the logs recently, using the current version of WP-Optimize (3.2.14), without webp conversion enabled:

    ‘PHP message: PHP Warning: unlink(/home/redacted/htdocs/wp-content/uploads/wpo/images/wpo_logo_small.png.webp): No such file or directory in /home/redacted/htdocs/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/DestinationPreparationTrait.php on line 96;

    Plugin Contributor Venkat Raj

    (@webulous)

    @japonicus Add this line define('WPO_USE_WEBP_CONVERSION', false); in your wp-config.php file

    I have this issue also. Already added the above to wp-config, made no difference. Site also has debug to false.

    How can I get rid of this error? I am using version 3.2.15 the latest version.

    Thank you

    • This reply was modified 1 year, 4 months ago by rejmark.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warnings for webp-converter when converter is disabled’ is closed to new replies.