• Resolved matriplett

    (@matriplett)


    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 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 to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter matriplett

    (@matriplett)

    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://pantheon.io/docs/apcu`

    Plugin Author Andy Fragen

    (@afragen)

    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

    (@matriplett)

    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. 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

    (@matriplett)

    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

    (@matriplett)

    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

    (@afragen)

    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.ww.wp.xz.cn/the-events-calendar-category-colors/tags/7.0.2/src/Category_Colors/CSS/

    Plugin Author Andy Fragen

    (@afragen)

    Clear your cache please.

    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.

    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

    (@afragen)

    @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.