• Resolved mrwweb

    (@mrwweb)


    I have a site that has used TEC for years. We are now prepared to use the block editor for events, however, I cannot get it enabled.

    I have confirmed that “Activate Block Editor for Events” is checked but the Classic Editor still loads for Events. I have disabled all plugins, deleted all mu-plugins, activated Twenty Twenty, and de-activated / re-activated the plugin, but I still can’t load the block editor.

    Are there any other circumstances in which the Block Editor will not load with the setting to enable it turned on? I am completely flummoxed and have no idea how to further troubleshoot this.

    If it’s relevant, here are screenshots of my Events and Display settings and here’s a lightly redacted copy of the status report. The site is hosted on WP Engine, and I’ve now experienced this problem both on the live site and development site. A near-identical local copy of the site is correctly using the Block Editor after I enabled that for testing about 6 weeks ago.

    Site: WP Engine, WordPress 5.4.2, TEC 5.1.4, Twenty Twenty, No other plugins

Viewing 15 replies - 1 through 15 (of 34 total)
  • Thread Starter mrwweb

    (@mrwweb)

    I don’t know how relevant this is, but I have a small update. I accidentally left the block editor checkbox active in the Settings, assuming it wasn’t having any impact. Leaving this checkbox on prevented the editors from saving events with the correct date, location, and cost.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Thanks for the update, have you been able to resolve this issue with the Block Editor?

    If not, can you ensure that you are using the most recent version of our plugin and WordPress and see if that helps?

    I hope that helps!

    Thanks,
    Jaime

    Thread Starter mrwweb

    (@mrwweb)

    Hi @jaimemarchwinski,

    Thanks for getting back to me. This issue is not resolved.

    I have updated everything. At this point, I have a site running only The Events Calendar with the Twenty Twenty Theme and the issue is the same.

    TEC 5.1.6
    WP 5.5
    Twenty Twenty 1.5
    Updated System Information

    At this point, I have to think that it’s a database issue, but I’m super confused how that could be. Possibly relevant, in the past, I have used WP-CFM to export and import TEC settings. However, that plugin is currently disabled and the issue is still going. I’ve also tried deleting and reinstalling TEC to no avail.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    I’m sorry to hear that you are still experiencing this issue!

    Does this happen if you create a fresh WordPress install with a default WordPress theme and just The Events Calendar installed?

    Also, please enable WP_DEBUG and share any error messages that you may see.

    Let me know how that goes!

    Thanks,
    Jaime

    Thread Starter mrwweb

    (@mrwweb)

    Hi @jaimemarchwinski.

    I just ran into this problem on another site that’s on a different host with a different theme and substantially different plugins.

    Just like last time, I have disabled all plugins except TEC (including mu-plugins), switched to Twenty Twenty, and still can’t enable the block editor.

    This time the problem impacts both the local site (running on Local v5) and production (SiteGround). Previously, the problem was only on the production site (WP Engine) and not the local one (Local v5). This new site has never used WP-CFM for configuration management either unlike the first, so that would seem to rule that out.

    WP_DEBUG has been on the entire time I’ve been troubleshooting and I’ve been unable to find any errors. With the TEC logging option on, that hasn’t turned up any issues either, just a line like this over and over:

    [02-Oct-2020 21:22:59 UTC] the-events-calendar/common – Log: Initializing Tribe Events on Oct, 2nd at 09:10:59 pm

    Some other things I’ve tried:

    1. I noticed that in the serialized Tribe settings in the database (tribe_events_calendar_options), the toggle_blocks_editor was true but toggle_blocks_editor_hidden_field was false (1 and 0 in the db). Updating that second option to true made no difference.
    2. I tried deleting the entire tribe_events_calendar_options setting so it would be regenerated. Again, this didn’t make a difference in enabling the block editor once I checked the setting again.
    3. I’ve tried logging the values of the couple actions and filters that seem related to this (code below). Oddly, I’m not getting any error output on these.

    I just set up a new site on Local and the Block Editor works when that setting is enabled.

    There seems to clearly be an issue where old sites cannot activate the block editor.

    Both of these sites have previously run the Classic Editor and Classic Editor Add-On plugins but both were turned off well before this issue became apparent. I tried turning on the plugins on and off on my test site the block editor was available once the two plugins were off again.

    What are the next steps to troubleshoot this?

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Thanks for the update, I’m sorry to hear that you are still experiencing this issue.

    Would you be able to provide me with your system information here?
    https://theeventscalendar.com/knowledgebase/k/sharing-your-system-information/

    As far as your “old” site, what do you mean by that? Is the WordPress version up-to-date?

    Let me know!

    Thanks,
    Jaime

    Thread Starter mrwweb

    (@mrwweb)

    Thanks for the quick reply, @jaimemarchwinski. I’m eager to figure this out!

    As far as your “old” site, what do you mean by that? Is the WordPress version up-to-date?

    Sorry for not being clearer. Both sites that are having this problem are always kept up to date. I think I meant that it doesn’t seem to impact new installations, but sites that have been up for a long time and using TEC have this issue. I could be wrong, about that, of course, but it’s a theory.

    Would you be able to provide me with your system information here?

    Here’s the system info for the most recent site with this issue. It’s installed locally and in this state only has two plugins activated TEC and Query Monitor. It has the Twenty Twenty theme activated. The settings say to use the Block Editor but the Classic Editor appears on Events > Add New.

    
    Home URL
        https://[redacted].local
    Site URL
        https://[redacted].local
    Site Language
        English
    Character Set
        UTF-8
    Name
        Mark Root-Wiley
    Email
        [redacted]
    Install keys
        -
    WordPress version
        5.5.1
    Permalink Structure
        https://[redacted].local/%postname%/
    Your homepage displays
        page
    Homepage page ID
        4 (Home)
    PHP version
        7.3.5
    PHP
    
            max_execution_time = 1200
            memory_limit = 256M
            upload_max_filesize = 300M
            post_max_size = 1000M
            display_errors = 0
            log_errors = 1
    
    Server
        nginx
    SAPI
        cgi-fcgi
    Plugins
    
            Query Monitor version 3.6.4 by John Blackbourn (https://querymonitor.com/)
            The Events Calendar version 5.2.0 by Modern Tribe, Inc. (https://m.tri.be/1x)
    
    Network Plugins
        -
    MU Plugins
        -
    Theme
        Twenty Twenty
    Multisite
        -
    Settings
    
            did_init = 1
            tribeEventsTemplate =
            tribeEnableViews =
    
            Array
            (
                [0] => list
                [1] => month
                [2] => day
            )
    
            viewOption = list
            schema-version = 5.2.0
            recurring_events_are_hidden = hidden
            previous_ecp_versions =
    
            Array
            (
                [0] => 0
            )
    
            latest_ecp_version = 5.2.0
            views_v2_enabled = 1
            postsPerPage = 12
            monthEventAmount = 3
            earliest_date = 2016-10-12 09:00:00
            earliest_date_markers =
    
            Array
            (
                [0] => 796
            )
    
            latest_date = 2018-11-27 23:59:59
            latest_date_markers =
    
            Array
            (
                [0] => 4881
            )
    
            donate-link =
            toggle_blocks_editor = 1
            toggle_blocks_editor_hidden_field =
            showComments =
            disable_metabox_custom_fields = 1
            showEventsInMainLoop =
            eventsSlug = events
            singleEventSlug = event
            multiDayCutoff = 00:00
            defaultCurrencySymbol = $
            reverseCurrencyPosition =
            trash-past-events =
            delete-past-events =
            embedGoogleMaps = 1
            embedGoogleMapsZoom = 10
            debugEvents = 1
    
    WP Timezone
        America/Vancouver
    WP GMT Offset
        -7
    Default PHP Timezone
        UTC
    WP Date Format
        F j, Y
    WP Time Format
        g:i a
    Week Starts On
        1
    Common Library Dir
        [redacted]\wp-content\plugins\the-events-calendar/common/src/Tribe
    Common Library Version
        4.12.10 
    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Thanks for providing me with this information.

    Can you try flushing your permalinks by going to Settings > Permalinks and Save Changes?

    Can you also please enable WP_DEBUG and share any error messages that you may see?

    Let me know how that goes!

    Thanks,
    Jaime

    Thread Starter mrwweb

    (@mrwweb)

    @jaimemarchwinski, updates:

    Can you try flushing your permalinks by going to Settings > Permalinks and Save Changes?

    Tried that. Still see the classic editor.

    Can you also please enable WP_DEBUG and share any error messages that you may see?

    WP_DEBUG has been on the whole time I’ve been troubleshooting and I haven’t seen any errors on the Events editor screen or settings. I get the following on the Dashboard only:

    PHP Notice: map_meta_cap was called incorrectly. The post type shop_order is not registered, so it may not be reliable to check the capability “edit_post” against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.) in \wp-includes\functions.php on line 5225
    PHP Stack trace:
    PHP 1. {main}() \wp-admin\index.php:0
    PHP 2. wp_dashboard() \wp-admin\index.php:177
    PHP 3. do_meta_boxes() \wp-admin\includes\dashboard.php:246
    PHP 4. wp_dashboard_site_activity() \wp-admin\includes\template.php:1389
    PHP 5. wp_dashboard_recent_comments() \wp-admin\includes\dashboard.php:898
    PHP 6. _wp_dashboard_recent_comments_row() \wp-admin\includes\dashboard.php:1045
    PHP 7. current_user_can() \wp-admin\includes\dashboard.php:658
    PHP 8. WP_User->has_cap() \wp-includes\capabilities.php:674
    PHP 9. map_meta_cap() \wp-includes\class-wp-user.php:752
    PHP 10. map_meta_cap() \wp-includes\capabilities.php:402
    PHP 11. _doing_it_wrong() \wp-includes\capabilities.php:160
    PHP 12. trigger_error() \wp-includes\functions.php:5225

    PHP Notice: map_meta_cap was called incorrectly. The post type shop_order is not registered, so it may not be reliable to check the capability “edit_post” against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.) in \wp-includes\functions.php on line 5225
    PHP Stack trace:
    PHP 1. {main}() \wp-admin\index.php:0
    PHP 2. wp_dashboard() \wp-admin\index.php:177
    PHP 3. do_meta_boxes() \wp-admin\includes\dashboard.php:246
    PHP 4. wp_dashboard_site_activity() \wp-admin\includes\template.php:1389
    PHP 5. wp_dashboard_recent_comments() \wp-admin\includes\dashboard.php:898
    PHP 6. _wp_dashboard_recent_comments_row() \wp-admin\includes\dashboard.php:1045
    PHP 7. current_user_can() \wp-admin\includes\dashboard.php:658
    PHP 8. WP_User->has_cap() \wp-includes\capabilities.php:674
    PHP 9. map_meta_cap() \wp-includes\class-wp-user.php:752
    PHP 10. map_meta_cap() \wp-includes\capabilities.php:402
    PHP 11. _doing_it_wrong() \wp-includes\capabilities.php:160
    PHP 12. trigger_error() \wp-includes\functions.php:5225

    Along with this from Query Monitor

    Deprecated (Suppressed): Non-static method WP_Feed_Cache::create() should not be called statically
    wp-includes/SimplePie/Registry.php:214
    SimplePie_Registry->call()
    wp-includes/class-simplepie.php:1412
    SimplePie->init()
    wp-includes/feed.php:821
    fetch_feed()
    wp-includes/widgets.php:1493
    wp_widget_rss_output()
    wp-content/plugins/the-events-calendar/src/Tribe/Main.php:4089
    Tribe__Events__Main->outputDashboardWidget()
    wp-admin/includes/template.php:1389
    do_meta_boxes()
    wp-admin/includes/dashboard.php:246
    wp_dashboard()
    wp-admin/index.php:177

    I’d be happy to set you up with access to a test site showing this issue.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Thanks for providing me with that information.

    A test site showing this issue would be great!

    Thanks for your patience here!

    Thread Starter mrwweb

    (@mrwweb)

    Thanks, @jaimemarchwinski. The site I can share is a private development site, so I’d like to not share that in public. What’s the best way to share the address and a user login?

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Not a problem. Feel free to email me at [email protected]

    Let me know if you have any other questions in the meantime!

    Thanks,
    Jaime

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    Thanks for sending that information to me.

    I took a look at your site, but was immediately taken to a Fatal Error on your site related to your theme, so I was unable to access your site.

    Can you try switching to a default WordPress theme and see if the error goes away for now?

    Thanks,
    Jaime

    Thread Starter mrwweb

    (@mrwweb)

    @jaimemarchwinski My apologies. Somehow I installed Twenty Twenty but neglected to activate that. It’s not active and you should have no problem getting in.

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @mrwweb

    No worries, I just tried accessing your site but I keep getting a Bad Gateway error.

    I will try again later, however in the meantime, I think the best solution would be to try recreating your site on a fresh WordPress install, as that seems to be a workable solution for now.

    I’m sorry that I don’t have an easier solution for you at this time! Let me know if you have more questions here!

    Thanks,
    Jaime

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘Cannot Enable Block Editor’ is closed to new replies.