Title: PHP errors for CSS file
Last modified: January 18, 2022

---

# PHP errors for CSS file

 *  Resolved [thinkforward](https://wordpress.org/support/users/thinkforward/)
 * (@thinkforward)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-for-css-file/)
 * I have this problem every now and then, have never been able to figure out what
   is causing it. Whenever the display settings are updated and a new CSS hash value
   is generated, I have to manually rename the CSS file in my /uploads folder to
   match the new hash in order to get the colors to display correctly.
 * I suspect the current error I’m getting is related to the root cause that’s been
   going on there. At one point, I thought my folder permissions were wrong but 
   I have no upload issues otherwise.
 * **Current Issue:**
 * The following 3 errors display only in the WP admin, the front end displays fine:
   [https://andersonscustard.com/events](https://andersonscustard.com/events)
 * Warning: file_put_contents(home/customer/www/andersonscustard.com/public_html/
   wp-content/uploads/teccc_894342133f35c997c358ccfa57fdf6e6.css): failed to open
   stream: No such file or directory in /home/customer/www/andersonscustard.com/
   public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/
   Frontend.php on line 247
 * Warning: file_put_contents(home/customer/www/andersonscustard.com/public_html/
   wp-content/uploads/teccc_894342133f35c997c358ccfa57fdf6e6.min.css): failed to
   open stream: No such file or directory in /home/customer/www/andersonscustard.
   com/public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/
   Frontend.php on line 248
 * Warning: chmod(): No such file or directory in /home/customer/www/andersonscustard.
   com/public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/
   Frontend.php on line 249
 * Both this file and its sibling (../andersonscustard.com/public_html/wp-content/
   uploads/teccc_894342133f35c997c358ccfa57fdf6e6.min.css) DO exist in this location.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-for-css-file%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-for-css-file/#post-15266706)
 * You can try adding the query arg `refresh_css` to your calendar URL as [https://andersoncustard.com/events/?refresh_css](https://andersoncustard.com/events/?refresh_css)
   to see if that helps.
 * You page looks fine to me. I don’t know why the odd errors. Do they happen all
   the time?
 *  Thread Starter [thinkforward](https://wordpress.org/support/users/thinkforward/)
 * (@thinkforward)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-for-css-file/#post-15266726)
 * Apparently this was a conflict with the theme which is now addressed in an update,
   the errors have ceased.
 * The same set of errors about the CSS file have happened in the past, but usually
   after an an update either to TEC, the TECCC plugin or updating the display settings.
   For now, I guess I’m all good. Thanks for the quick reply as usual.

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

The topic ‘PHP errors for CSS file’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/the-events-calendar-category-colors_52b1d1.
   svg)
 * [The Events Calendar: Category Colors](https://wordpress.org/plugins/the-events-calendar-category-colors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-category-colors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-category-colors/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [thinkforward](https://wordpress.org/support/users/thinkforward/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-for-css-file/#post-15266726)
 * Status: resolved