Title: PHP Critical Error &#8211; dynamic css
Last modified: May 12, 2022

---

# PHP Critical Error – dynamic css

 *  Resolved [matriplett](https://wordpress.org/support/users/matriplett/)
 * (@matriplett)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/)
 * After updating to v7.0.2. I’m getting a php fatal error. I’m tracking it down
   but wanted to update. I’ve tried a default theme.
 * /* The Events Calendar Category Colors 7.0.2 */ .teccc-legend a, .tribe-events-
   calendar a, #tribe-events-content .tribe-events-tooltip h4 { font-weight: ; }.
   tribe-events-list .vevent.hentry h2 { padding-left: 5px; } [@media](https://wordpress.org/support/users/media/)
   only screen and (max-width: 768px) { .tribe-events-calendar td .hentry, .tribe-
   events-calendar td .type-tribe_events { display: block; } h3.entry-title.summary,
   h3.tribe-events-month-event-title, .tribe-events-calendar .tribe-events-has-events:
   after { display: none; } .tribe-events-calendar .mobile-trigger .tribe-events-
   tooltip { display: none !important; } } Fatal error: Uncaught Error: Class ‘Fragen\
   Category_Colors\CSS\V2_Views’ not found in /code/web/wp-content/plugins/the-events-
   calendar-category-colors/src/views/category.css.php:32 Stack trace: #0 /code/
   web/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/
   Main.php(423): include() #1 /code/web/wp-content/plugins/the-events-calendar-
   category-colors/src/Category_Colors/Frontend.php(205): Fragen\Category_Colors\
   Main->view(‘category.css’, Array, false) #2 /code/web/wp-content/plugins/the-
   events-calendar-category-colors/src/Category_Colors/Frontend.php(152): Fragen\
   Category_Colors\Frontend->generate_css() #3 /code/web/wp-includes/class-wp-hook.
   php(307): Fragen\Category_Colors\Frontend->add_scripts_styles(”) #4 /code/web/
   wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #5 /code/
   web/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #6 /code/web/wp-includes/
   script-loader.php(2115): do_action(‘wp_enqueue_scri…’) #7 /code/web/wp-includes/
   class-wp-hook.php(307): wp_enqueue_scri in /code/web/wp-content/plugins/the-events-
   calendar-category-colors/src/views/category.css.php on line 32
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-critical-error-dynamic-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [matriplett](https://wordpress.org/support/users/matriplett/)
 * (@matriplett)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15639832)
 * Here is some more info:
    in /the-events-calendar-category-colors/vendor/composer/
   ClassLoader.php the loader class uses apcu_fetch and apcu_add which require PECL
   extensions [https://www.php.net/manual/en/function.apcu-add.php](https://www.php.net/manual/en/function.apcu-add.php)
   [https://pantheon.io/docs/apcu](https://pantheon.io/docs/apcu)`
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15639869)
 * The autoloader is from Composer and if it wasn’t working you would have seen 
   some error before this.
 * The error reports. File missing. Can you check in the filesystem to see if `src/
   Category_Colors/CSS/V2_CSS.php` is present?
 * It might be easier to delete and reinstall the plugin to ensure all files are
   present.
 *  Thread Starter [matriplett](https://wordpress.org/support/users/matriplett/)
 * (@matriplett)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15639986)
 * yes, the file is present on server. I’ve also tried deleting and installing clean
   version. Maybe unique to pantheon [https://pantheon.io/docs/apcu](https://pantheon.io/docs/apcu).
   In /the-events-calendar-category-colors/vendor/composer/ClassLoader.php the loader
   class uses apcu_fetch and apcu_add which require PECL extensions
 *  Thread Starter [matriplett](https://wordpress.org/support/users/matriplett/)
 * (@matriplett)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15640004)
 * From Pantheon’s website: “Yes, APCu can be used as a cache backend or a “key-
   value store”; however, this is not recommended. APCu lacks the ability to span
   multiple application containers. Instead, Pantheon provides a Redis-based Object
   Cache as a caching backend for Drupal and WordPress, which has coherence across
   multiple application containers.”
 *  Thread Starter [matriplett](https://wordpress.org/support/users/matriplett/)
 * (@matriplett)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15640143)
 * There is a case issue. the-events-calendar-category-colors/src/views/category.
   css.php calls for V2_Views
    the file name is v2_Views. Might be good to follow
   wp spec using lower case and adding class in front of the name.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15640381)
 * That file was renamed and is correctly named in SVN in both the tag and trunk.
   That is why I suggested deleting and reinstalling.
 * [https://plugins.svn.wordpress.org/the-events-calendar-category-colors/tags/7.0.2/src/Category_Colors/CSS/](https://plugins.svn.wordpress.org/the-events-calendar-category-colors/tags/7.0.2/src/Category_Colors/CSS/)
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15640394)
 * Clear your cache please.
 *  [Shannon Little](https://wordpress.org/support/users/enchiridion/)
 * (@enchiridion)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-15909368)
 * I just ran into the same issue, different hosting (AWS). For me the issue was
   the rename of `v2_Views.php` to `V2_Views.php`. My site is deployed using git
   and for some reason my git had `ignorecase = true` so the rename wasn’t captured.
   Once I fixed it, it was working.
 *  [wpmakenorg](https://wordpress.org/support/users/wpmakenorg/)
 * (@wpmakenorg)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-16219089)
 * Upgrading to PHP 8.0 critical errors – I had to go back to PHP 7.4 – however 
   7.4 is no longer supported after the end of november.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-16220140)
 * [@wpmakenorg](https://wordpress.org/support/users/wpmakenorg/) you really should
   make a new issue. This issue has been resolved.
 * For the record, my test site is on PHP 8.0.

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

The topic ‘PHP Critical Error – dynamic css’ 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/)

## Tags

 * [PHP 8.0](https://wordpress.org/support/topic-tag/php-8-0/)

 * 10 replies
 * 4 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-critical-error-dynamic-css/#post-16220140)
 * Status: resolved