• Resolved scottkeen

    (@scottkeen)


    After upgrading to latest version of The Events Calendar 6.1.2.2 I get the following when I click Events/Settings

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Email error sent from WordPress contains this info:

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.2.2
    Active theme: Natural Lite (version 1.7.1)
    Current plugin: The Events Calendar (version 6.1.2.2)
    PHP version 7.4.27
    
    
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 27 of the file C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\common\src\Common\Contracts\Container.php. Error message: Uncaught TEC\Common\Exceptions\Not_Bound_Exception: TEC\Common\StellarWP\Telemetry\Opt_In\Opt_In_Subscriber
    	=> Error while making TEC\Common\StellarWP\ContainerContract\ContainerInterface $container: parameter $container is not optional and its type (TEC\Common\StellarWP\ContainerContract\ContainerInterface) cannot be resolved to a concrete class. in C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\common\src\Common\Contracts\Container.php:27
    Stack trace:
    #0 C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\common\src\Common\Telemetry\Telemetry.php(487): TEC\Common\Contracts\Container->get()
    #1 C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\common\src\Common\Telemetry\Telemetry.php(166): TEC\Common\Telemetry\Telemetry->register_tec_telemetry_plugins()
    #2 C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\src\Events\Telemetry\Telemetry.php(90): TEC\Common\Telemetry\Telemetry->init()
    #3 C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-c
    
Viewing 10 replies - 1 through 10 (of 10 total)
  • I am also getting this error. Is there a way to roll back to the previous version?

    Thanks

    Ian

    Plugin Support Darian

    (@d0153)

    Hi @scottkeen @cihomewood

    Thanks for reaching out. Let me help you with this one.

    I tried replicating the issue on my side, but it’s working as expected. Could you try manually updating your plugins (override your existing ones) to the latest version and see if that resolves the issue?

    If that doesn’t help, were you able to replicate the same issue on a staging site as well?

    Looking forward to your reply.

    Thread Starter scottkeen

    (@scottkeen)

    Hi @d0153, thanks for the reply. I don’t have access to the manual download site, I’m not a subscriber.

    If I uninstall the plug-in from WP, then reinstall it, will I lose my settings and customizations to TEC?

    Thread Starter scottkeen

    (@scottkeen)

    Also, I don’t know if this makes a difference, but I’m using “Registrations for the Events Calendar” plug-in from Round Up WP.

    @d0153 — Do you want to try and see if you can replicate the error with the Registrations for the Events Calendar plug-in from Round Up WP?

    @cihomewood — Do you also have the Registrations for the Events Calendar plug-in from Round Up WP?

    FWIW, I’ve didn’t have any issues until I upgraded TEC to 6.1.2.2. It was working fine without problems with TEC 6.1.2.1.

    • This reply was modified 1 year, 5 months ago by scottkeen.
    • This reply was modified 1 year, 5 months ago by scottkeen.
    Thread Starter scottkeen

    (@scottkeen)

    I’ve found where the bug may be. It has to do with the Telemetry opt-in option. My “Opt-in to Telemetry” on Events–>Settings–>General is unchecked (off).

    The start of the error is this file:

    C:\inetpub\mywebsitefolder\wp-content\plugins\the-events-calendar\src\Events\Telemetry\Telemetry.php

    Line 90

    		$telemetry->init();

    If I comment out Line 90 by typing in “//”…

    		//$telemetry->init();

    …and saving the file, then the Events–>Settings page comes up fine! However, I cannot save any changes on the General tab because I disabled this telemetry init line.

    But I can save changes on the Display tab just fine!

    Hopefully this helps the developer with pinpointing the problem. I suspect this has to do with the Telemetry opt-in option being unchecked (off) before I upgraded from the older version and maybe the value saved (0 or null?) in the database table is not what was expected in the 6.1.2.2 upgrade.

    I don’t know, just throwing out some ideas, but at least I think I know where the problem starts.

    • This reply was modified 1 year, 5 months ago by scottkeen.
    • This reply was modified 1 year, 5 months ago by scottkeen.

    Seems to be related to an update in StellarWP\Telemetry\Contracts\Abstract_Subscriber. Specifically related to this commit:
    https://github.com/stellarwp/telemetry/commit/6ccc5ca1a01e024f4a203fdb5b6ecc6d7c25cc06

    I made the following updates to common/vendor/vendor-prefixed/stellarwp/telemetry/src/Telemetry/Contracts/Abstract_Subscriber.php

    use TEC\Common\lucatume\DI52\Container;
    
    ....  SNIP ...
    
        public function __construct( Container $container ) {
    
    

    It seems to work, including being able to save settings under the General tab.

    Hope this helps!

    Thread Starter scottkeen

    (@scottkeen)

    Thanks @jstocktonkishmish but that code change didn’t work for me.

    I agree that this seems to be related to the Telemetry code.

    Plugin Support Darian

    (@d0153)

    Hi @scottkeen

    Thank you for patiently waiting.

    I wanted to provide you with an update on the issue you reported. We have been able to reproduce the problem and have identified a possible solution.

    Your case has been added to our internal ticket and we will notify you once an update and fix are available. Unfortunately, we do not have an estimated time for resolution at this time. Thank you for bringing this to our attention.


    Internal Bug Ticket Reference: TEC-4842

    Plugin Support Guga Alves

    (@gugaalves)

    Hi there!

    We’re happy to inform you that the bug ticket TEC-4842 fixed the issue on the Events Calendar plugin described on that forum thread.

    As always, we recommend testing updates on a staging site first and keeping a recent backup, but the update should work smoothly.

    Please upgrade your Events Calendar plugin to apply this fix to your site.

    Plugin Support Darian

    (@d0153)

    Hi @scottkeen

    It seems like it has been some time since we received a response from you, therefore, I will consider this matter as resolved. If you require any further assistance, please do not hesitate to start a new thread.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘BUG: Events/Settings — There has been a critical error on this website.’ is closed to new replies.