• Resolved lukasdulik

    (@lukasdulik)


    Hey, when i do the test, it throws the following warnings and no test image is there.

    Warning: filesize(): stat failed for /var/www/junakslavicin.cz/web/../../clients/client17/web218/web/wp-content/webp-express/config/wod-options.json in /var/www/clients/client17/web218/web/wp-content/plugins/webp-express/wod/webp-on-demand.php on line 17
    
    Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/clients/client17/web218/web/wp-content/plugins/webp-express/wod/webp-on-demand.php on line 17
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/clients/client17/web218/web/wp-content/plugins/webp-express/wod/webp-on-demand.php on line 18
    
    Warning: Invalid argument supplied for foreach() in /var/www/clients/client17/web218/web/wp-content/plugins/webp-express/wod/webp-on-demand.php on line 27
    
    Notice: Undefined index: forward-query-string in /var/www/clients/client17/web218/web/wp-content/plugins/webp-express/wod/webp-on-demand.php on line 38

    The conversion doesn’t work then also.
    What should I do?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lukasdulik

    (@lukasdulik)

    it loóks like it speaks about a wod-options file in a directory called config, which really doesn’t exists. Is this a 0.8.1 bug? sry the directory exist, i was blind, so it must be somewhere else.

    • This reply was modified 6 years, 3 months ago by lukasdulik.
    Thread Starter lukasdulik

    (@lukasdulik)

    Ok, I figured it out.

    I disabled //$contentDirAbs = $_SERVER['DOCUMENT_ROOT'] . '/' . $_GET['wp-content'] . '/webp-express';
    instead, I hard coded the path – $contentDirAbs = $_SERVER['DOCUMENT_ROOT'] . '/wp-content/webp-express';

    It throws the errs because /var/www/junakslavicin.com is a symlink, not a directory. Therefore, “../../” (returning the 2 directories above) does not work.

    Please, make a update of the code, because this is a critical bug.

    Plugin Author rosell.dk

    (@roselldk)

    Thanks for reporting, and bug finding!. I shall look into it. I have created an issue on github: https://github.com/rosell-dk/webp-express/issues/117

    Plugin Author rosell.dk

    (@roselldk)

    Issue is fixed in 0.9.0, which just has been released

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when converting’ is closed to new replies.