Title: Error when converting
Last modified: December 16, 2018

---

# Error when converting

 *  Resolved [lukasdulik](https://wordpress.org/support/users/lukasdulik/)
 * (@lukasdulik)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-converting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [lukasdulik](https://wordpress.org/support/users/lukasdulik/)
 * (@lukasdulik)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/#post-10995211)
 * 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 7 years, 4 months ago by [lukasdulik](https://wordpress.org/support/users/lukasdulik/).
 *  Thread Starter [lukasdulik](https://wordpress.org/support/users/lukasdulik/)
 * (@lukasdulik)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/#post-10995305)
 * **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](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/#post-10999961)
 * 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](https://github.com/rosell-dk/webp-express/issues/117)
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/#post-11029103)
 * 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.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/error-when-converting/#post-11029103)
 * Status: resolved