Title: error_log
Last modified: August 21, 2016

---

# error_log

 *  Resolved [ben52](https://wordpress.org/support/users/ben52/)
 * (@ben52)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error_log-3/)
 * Good afternoon Frank
    for the third time i get this warning:
 * PHP Warning: file_put_contents(/home/xxxxx/public_html/wp-content/cache/autoptimize/
   autoptimize_6e75e1c4cbb5c482c0783eb566018855.css) [[function.file-put-contents](https://wordpress.org/support/topic/error_log-3/function.file-put-contents?output_format=md)]:
   failed to open stream: No such file or directory in /home/xxxxxx/public_html/
   wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 62
    Any help
   pls. Thanks
 * [http://wordpress.org/plugins/autoptimize/](http://wordpress.org/plugins/autoptimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error_log-3/#post-4551848)
 * Hi Ben52;
    Well, there were [no changes in autoptimizeCache.php between 1.7.x and 1.8](https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=845195%40autoptimize&old=825824%40autoptimize&sfp_email=&sfph_mail=),
   so I’m glad to be able to write this is not a regression 😉
 * Regarding the actual error; the line is
 *     ```
       file_put_contents($this->cachedir.$this->filename,$code);
       ```
   
 * which is pretty straightforward PHP that just writes the aggregated CSS (in $
   code) to cache/autoptimize ($this->cachedir) + autoptimize_<md5hash>.css ($this-
   > filename).
 * The only logical explanation for the error-message is that PHP could not write
   to the filesystem at that moment. I’m afraid there’s nothing much I can do at
   that point.
 * frank

Viewing 1 replies (of 1 total)

The topic ‘error_log’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/error_log-3/#post-4551848)
 * Status: resolved