• Resolved KZeni

    (@kzeni)


    I updated a site to version 6.1.0 released an hour or so ago. I first updated my The Events Calendar Pro plugin to the latest version (worked without issue), and then went to update the main The Events Calendar plugin to 6.1.0. Unfortunately, I’m seeing a 500 server error (via WordPress’ critical error message) when trying to access the main plugins page in the site admin & for various other parts of the site as well (ex. when trying to load details from the Simple History plugin, etc.) Thankfully it’s not a site-wide fatal error, but it is actively causing issues.

    Here’s the full error message (it’s a lengthy one):

    Fatal error: Uncaught TEC\Common\lucatume\DI52\ContainerException: constructor method is not public. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:172 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(129): TEC\Common\lucatume\DI52\Builders\ClassBuilder->getResolvedConstructorParameters(‘freemius’) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(109): TEC\Common\lucatume\DI52\Builders\ClassBuilder->resolveConstructorParameters() #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(233): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #3 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(210): TEC\Common\lucatume\DI52\Builders\Resolver->resolveUnbound(‘freemius’) #4 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘freemius’, Array) #5 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #6 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #7 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #8 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #10 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #11 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #12 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #13 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #14 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #15 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #16 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #17 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /wp-settings.php(623): do_action(‘init’) #19 /wp-config.php(119): require_once(‘/usr/local/apac…’) #20 /wp-load.php(50): require_once(‘/usr/local/apac…’) #21 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #22 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #23 {main} Next TEC\Common\lucatume\DI52\ContainerException: Error while making freemius: constructor method is not public. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:172 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘freemius’, Object(TEC\Common\lucatume\DI52\ContainerException), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(TEC\Common\lucatume\DI52\ContainerException), ‘freemius’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #5 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #6 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #7 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #8 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #10 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #11 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #12 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #13 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /wp-settings.php(623): do_action(‘init’) #16 /wp-config.php(119): require_once(‘/usr/local/apac…’) #17 /wp-load.php(50): require_once(‘/usr/local/apac…’) #18 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #19 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #20 {main} Next TEC\Common\lucatume\DI52\ContainerException: Error while making freemius: error while making freemius: constructor method is not public. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:172 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘tickets.integra…’, Object(TEC\Common\lucatume\DI52\ContainerException), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(TEC\Common\lucatume\DI52\ContainerException), ‘tickets.integra…’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #5 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /wp-settings.php(623): do_action(‘init’) #9 /wp-config.php(119): require_once(‘/usr/local/apac…’) #10 /wp-load.php(50): require_once(‘/usr/local/apac…’) #11 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #12 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #13 {main} thrown in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php on line 172

    Also, I have this on a site running PHP 8.0.x with the latest version of WordPress.

    Just wanted to report this if there’s something to be fixed in a future release and/or if there’s other people encountering this issue.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter KZeni

    (@kzeni)

    I saw multiple mentions of “Freemius” in this error message so I tried Freemius Fixer (https://github.com/Freemius/freemius-fixer) as that’s cleared up issues with Freemius-based plugins in the past, but re-activating The Events Calendar 6.1.0 still had that same fatal error happen.

    So, unfortunately, this issue doesn’t have an established fix to my knowledge.

    Thread Starter KZeni

    (@kzeni)

    Also, this has just now caused a fatal error on another site also running on PHP 8.0 that auto-updated to The Events Calendar 6.1.0 (then making it so any further attempts to make plugin adjustments likely encounter a fatal error along the way and needing to be manually deactivated & fixed.)

    Not sure how this happened, but hopefully a fix is on the way so this error affects as few sites as possible as a later fix will allow more & more sites to potentially update to then find this new plugin release breaks things.

    Thread Starter KZeni

    (@kzeni)

    Commenting out throw new ContainerException("constructor method is not public."); from line 172 of the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php (to get past that initial exception error message) then shows the error of:

    Fatal error: Uncaught TEC\Common\lucatume\DI52\ContainerException: Parameter $module_id is not optional and is not type-hinted: auto-wiring is not magic. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Parameter.php:194 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(230): TEC\Common\lucatume\DI52\Builders\Parameter->getDefaultValueOrFail() #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(142): TEC\Common\lucatume\DI52\Builders\ClassBuilder->resolveParameter(Object(TEC\Common\lucatume\DI52\Builders\Parameter)) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(109): TEC\Common\lucatume\DI52\Builders\ClassBuilder->resolveConstructorParameters() #3 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(233): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #4 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(210): TEC\Common\lucatume\DI52\Builders\Resolver->resolveUnbound(‘freemius’) #5 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘freemius’, Array) #6 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #7 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #8 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #10 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #11 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #12 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #13 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #14 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #15 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #16 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #17 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #18 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /wp-settings.php(623): do_action(‘init’) #20 /wp-config.php(119): require_once(‘/usr/local/apac…’) #21 /wp-load.php(50): require_once(‘/usr/local/apac…’) #22 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #23 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #24 {main} Next TEC\Common\lucatume\DI52\ContainerException: freemius => Error while making $module_id: parameter $module_id is not optional and is not type-hinted: auto-wiring is not magic. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Parameter.php:194 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘freemius’, Object(TEC\Common\lucatume\DI52\ContainerException), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(TEC\Common\lucatume\DI52\ContainerException), ‘freemius’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #5 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #6 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #7 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #8 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #10 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #11 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #12 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #13 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /wp-settings.php(623): do_action(‘init’) #16 /wp-config.php(119): require_once(‘/usr/local/apac…’) #17 /wp-load.php(50): require_once(‘/usr/local/apac…’) #18 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #19 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #20 {main} Next TEC\Common\lucatume\DI52\ContainerException: freemius => Error while making $module_id: freemius => Error while making $module_id: parameter $module_id is not optional and is not type-hinted: auto-wiring is not magic. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Parameter.php:194 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘tickets.integra…’, Object(TEC\Common\lucatume\DI52\ContainerException), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(TEC\Common\lucatume\DI52\ContainerException), ‘tickets.integra…’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #5 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /wp-settings.php(623): do_action(‘init’) #9 /wp-config.php(119): require_once(‘/usr/local/apac…’) #10 /wp-load.php(50): require_once(‘/usr/local/apac…’) #11 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #12 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #13 {main} thrown in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Parameter.php on line 194

    Just in case that helps point towards the right direction of the issue and potentially a fix for this issue.

    Thread Starter KZeni

    (@kzeni)

    Going one layer deeper, commenting out throw new ContainerException($message); from line 194 of the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Parameter.php (to get past that next exception error message) then shows the error of:

    Fatal error: Uncaught Error: Call to private Freemius::__construct() from scope TEC\Common\lucatume\DI52\Builders\ClassBuilder in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:110 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(233): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(210): TEC\Common\lucatume\DI52\Builders\Resolver->resolveUnbound(‘freemius’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘freemius’, Array) #3 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #4 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #5 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #6 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #7 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #8 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #10 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #11 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #12 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #13 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #14 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #15 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /wp-settings.php(623): do_action(‘init’) #17 /wp-config.php(119): require_once(‘/usr/local/apac…’) #18 /wp-load.php(50): require_once(‘/usr/local/apac…’) #19 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #20 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #21 {main} Next TEC\Common\lucatume\DI52\ContainerException: Error while making freemius: call to private Freemius::__construct() from scope TEC\Common\lucatume\DI52\Builders\ClassBuilder. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:110 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘freemius’, Object(Error), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(Error), ‘freemius’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘freemius’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘freemius’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Freemius.php(143): tribe(‘freemius’) #5 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(112): Tribe__Tickets__Integrations__Freemius->setup() #6 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(253): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #7 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(214): TEC\Common\lucatume\DI52\Builders\Resolver->resolveBound(‘tickets.integra…’) #8 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(216): TEC\Common\lucatume\DI52\Builders\Resolver->resolve(‘tickets.integra…’, Array) #9 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #10 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #11 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #12 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #13 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #14 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /wp-settings.php(623): do_action(‘init’) #16 /wp-config.php(119): require_once(‘/usr/local/apac…’) #17 /wp-load.php(50): require_once(‘/usr/local/apac…’) #18 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #19 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #20 {main} Next TEC\Common\lucatume\DI52\ContainerException: Error while making freemius: error while making freemius: call to private Freemius::__construct() from scope TEC\Common\lucatume\DI52\Builders\ClassBuilder. in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:110 Stack trace: #0 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(244): TEC\Common\lucatume\DI52\ContainerException::fromThrowable(‘tickets.integra…’, Object(TEC\Common\lucatume\DI52\ContainerException), 3, Array) #1 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(218): TEC\Common\lucatume\DI52\Container->castThrown(Object(TEC\Common\lucatume\DI52\ContainerException), ‘tickets.integra…’) #2 /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(263): TEC\Common\lucatume\DI52\Container->get(‘tickets.integra…’) #3 /wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(179): TEC\Common\lucatume\DI52\Container->make(‘tickets.integra…’) #4 /wp-content/plugins/event-tickets/src/Tribe/Integrations/Manager.php(55): tribe(‘tickets.integra…’) #5 /wp-includes/class-wp-hook.php(308): Tribe__Tickets__Integrations__Manager->load_freemius(”) #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /wp-settings.php(623): do_action(‘init’) #9 /wp-config.php(119): require_once(‘/usr/local/apac…’) #10 /wp-load.php(50): require_once(‘/usr/local/apac…’) #11 /wp-admin/admin.php(34): require_once(‘/usr/local/apac…’) #12 /wp-admin/plugins.php(10): require_once(‘/usr/local/apac…’) #13 {main} thrown in /wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php on line 110

    So it’s looking like Freemius is getting in the way of this working properly at some point.

    Thread Starter KZeni

    (@kzeni)

    Okay, I should note at this point that I’m using Event Tickets version 5.5.11.1 on this site (not Event Tickets Plus, but I have a feeling this would just happen regardless of Plus being present per the core Event Tickets plugins also needing to be active & having this problem.)

    As a test, I edited event-tickets/src/Tribe/Integrations/Freemius.php on line 136 (again, version 5.5.11.1 of Event Tickets) to change it from:

    $should_load = apply_filters( 'tribe_tickets_integrations_should_load_freemius', $should_load );

    to instead be:

    $should_load = apply_filters( 'tribe_tickets_integrations_should_load_freemius', $should_load );
    $should_load = false;

    while I do know I could’ve used the tribe_tickets_integrations_should_load_freemius filter to have that return false (this was just for testing purposes & don’t want this testing code lingering in the theme’s functions.php files or anything.)

    The important takeaway is that having Event Tickets v5.5.11.1 not try to load Freemius alongside The Events Calendar 6.1.0 (and then on PHP 8.0.x while it might be affecting other PHP versions) fixes the fatal error that’s otherwise being encountered without any manual action being done to patch this after updating the plugin(s).

    Brand new test site using up to date version 7.0.1+6387 of Local. Nothing added or removed except The Events Calendar Version 6.1.0. In the Admin dashboard I get 2 errors (both the same) shown below. Viewing the website shows the errors as well at the top of the page, directly below the admin toolbar. Config is PHP 8.1.9, Web Server nginx, MySQL 8.0.16, WordPress 6.2.2

    Uninitialized string offset 0 in?D:\Websites\test\app\public\wp-content\plugins\the-events-calendar\vendor\composer\ClassLoader.php?on line?503

    Thread Starter KZeni

    (@kzeni)

    @lothian313 Your report has it seem like that’s a different error that will likely have a different solution, and therefore you might want to open a separate support forum topic to address the issue(s) your setup is encountering.

    I mean, I’m not getting anything regarding ClassLoader.php in my errors & you didn’t mention having Event Tickets be involved. Meanwhile, my fatal error seems to specifically be a compatibility issue with Event Tickets’ Freemius integration it has enabled by default that The Events Calendar 6.1.0 then takes issue with per that Freemius setup in Event Tickets 5.5.11.1 being a non-public constructor and then throwing multiple layers of errors.

    Getting same message as original post. Need a fix asap please

    Fatal error: Uncaught TEC\Common\lucatume\DI52\ContainerException: constructor method is not public. in /public_html/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php:172 Stack trace: #0 /public_html/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(129): TEC\Common\lucatume\DI52\Builders\ClassBuilder->getResolvedConstructorParameters(‘freemius’) #1 /public_html/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php(109): TEC\Common\lucatume\DI52\Builders\ClassBuilder->resolveConstructorParameters() #2 /public_html/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php(233): TEC\Common\lucatume\DI52\Builders\ClassBuilder->build() #3 /pu in /public_html/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php on line 172

    @kzeni You are right. I have opened a new ticket.

    Quick follow up, I deactivated Event Tickets (5.5.11.1) and I was then able to update to 6.1 of The Evens Calendar.

    Thread Starter KZeni

    (@kzeni)

    @jrthor2 You could go with the hotfix of patching event-tickets/src/Tribe/Integrations/Freemius.php per https://www.ads-software.com/support/topic/fatal-error-on-plugins-page-elsewhere-with-the-events-calendar-v6-1-0/#post-16819808 or you could add add_filter('tribe_tickets_integrations_should_load_freemius','__return_false'); to your theme’s functions.php to have it effectively do the same thing as my plugin patch (has it turn off Event Tickets’ Freemius integration, which largely seems unnecessary anyway from what I can tell.)

    Hopefully an officially patched version of these plugin(s) become available shortly that addresses this issue (I haven’t gotten any word from the plugin devs regarding this situation yet.) This should get things working again, at the very least, for the time being (without needing to downgrade plugin versions, disabling of auto-updates, etc.)

    @jrthor2 Per your latest message, yes, this issue appears to be a conflict between the latest versions of The Events Calendar and Event Tickets (you’ll likely then get that same error you got when trying to update The Events Calendar to 6.1.0 when trying to re-enable Event Tickets now that The Events Calendar is on 6.1.0… it just seems TEC 6.1.0 is not compatible with the latest version of its own Event Tickets add-on [5.5.11.1.])

    Not sure how this version was released with a conflict with one of its major official add-ons that causes fatal server errors for some sites (with PHP 8.0.x still being shown as supported by PHP itself & the plugin devs’ plugin info where both plugins say PHP 7.4+ should work if it turns out to be PHP version related), if not all sites, that have these 2 plugins enabled (and/or without having a decent amount of overlap of an updated version of Event Tickets be made available that avoids this issue and/or having a version mismatch check where Event Tickets auto-deactivates if The Events Calendar is too new of a version to work with it or vice-versa, etc.)

    Thread Starter KZeni

    (@kzeni)

    @jrthor2 Again, I just went with that one-line hotfix edit of event-tickets/src/Tribe/Integrations/Freemius.php on line 136 so that $should_load = false; since I don’t want to place a filter on the site that might last longer than it needs to when one would imagine that the next version of The Events Calendar and/or Event Tickets fixes this error formally so just updating, while potentially overwriting the hotfix, will have this issue go away (one would imagine this would be doable & would be the ideal fix since a custom code edit to add a filter to manually disable Freemius in Event Tickets on various sites affected by this [of which are using software versions that should be fully supported & work properly] to then avoid a fatal server error just doesn’t make sense as something that’s still needed after the next version release[s].)

    As an aside, I’ve cross-posted this at https://www.ads-software.com/support/topic/event-tickets-5-5-11-1s-freemius-causing-errors-with-the-events-calendar-6-1-0/ since this might apply to Event Tickets just as much (if not more) than The Events Calendar when it comes to what needs to be updated to address the fatal server error that’s happening between the latest versions of these two plugins.

    Plugin Support Guga Alves

    (@gugaalves)

    Hi everyone,
    ?
    Thank you for sharing that!
    ?
    I can see that our developers have already noticed that error, and we’re working on releasing a hotfix to make sure that issue will not happen again.
    ?
    For now, the best move would be to downgrade back to the previous plugin version until a new version is released.

    You can read how to downgrade our plugins at?https://theeventscalendar.com/knowledgebase/k/accessing-older-plugin-versions/.
    ?
    Best regards,

    Thread Starter KZeni

    (@kzeni)

    @gugaalves Thanks for the update! Looking forward to the official fix to be released. ??

    I can confirm we are seeing this on our Site as well.. We rolled back the Update to get running. Please post when a fix is available. Thank you @kzeni for posting!

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Fatal error on Plugins page & elsewhere with The Events Calendar v6.1.0’ is closed to new replies.