Title: Cannot create file
Last modified: May 17, 2020

---

# Cannot create file

 *  Resolved [ucsendre](https://wordpress.org/support/users/ucsendre/)
 * (@ucsendre)
 * [6 years ago](https://wordpress.org/support/topic/cannot-create-file/)
 * Hi! After setting up required fonts, variants, subsets and downloading 29 font
   files, I clicked “generate stylesheet” and it said everything is ready, settings
   added to my theme css.
    But on after clearing all caches and checking my site
   in incognito mode browser window, there are a dozen of 404 errors – one for every
   font file the page tried to load from my server (I did setup CDN, but it did 
   not look there). I went back to OMGF admin and checked all settings, I clicked
   on “generate stylesheet” button again and now it writes in the message line: “
   Cannot create file /var/www/vhosts/domain.tld/httpdocs/wp-content/cache/omgf-
   webfonts/fonts.css” What did I do wrong?

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/cannot-create-file/#post-12850272)
 * Some caching plugins empty the entire wp-content/cache folder, instead of just
   their own files.
 * Move OMGF’s cache folder _outside_ the wp-content/cache directory, using the 
   option under ‘Advanced Settings’. After that, download the fonts and generate
   them again.
 * That should do it.
    -  This reply was modified 6 years ago by [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/).
 *  Thread Starter [ucsendre](https://wordpress.org/support/users/ucsendre/)
 * (@ucsendre)
 * [6 years ago](https://wordpress.org/support/topic/cannot-create-file/#post-12851264)
 * Yes it is ok now. Thank you Daan!
 * 😀
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/cannot-create-file/#post-12851282)
 * Awesome! Enjoy OMGF!
 * Would you like to [write a review](https://wordpress.org/support/plugin/host-webfonts-local/reviews/?rate=5#new-post)?

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

The topic ‘Cannot create file’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/cannot-create-file/#post-12851282)
 * Status: resolved