• Resolved donbowman

    (@donbowman)


    I have a synced pattern which just has a button in it. No use of the events calendar.

    Updating failed. Could not update the meta value of _tribe_ticket_capacity in database.

    I was able to create it. When i try to edit it, i get the above error. The synced pattern is below.

    Why is any code for the events calendar being called on the save of this synced pattern?

    <!-- wp:buttons {"metadata":{"name":"save-to-pdf"},"className":"ticss-3803a7bf","hasCustomCSS":true,"customCSS":".ticss-3803a7bf {\n  position: absolute;\n  top: 2%;\n  right: 2%;\n}\n@media print {\n  .ticss-3803a7bf {\n    display: none !important;\n  }\n}"} -->
    <div class="wp-block-buttons ticss-3803a7bf"><!-- wp:button {"className":"generate-pdf ticss-37330599 is-style-outline","style":{"spacing":{"padding":{"left":"0","right":"0","top":"0","bottom":"0"}}},"hasCustomCSS":true,"customCSS":".ticss-37330599 {\n /*\n width: 64px;\n height: 64px;\n */\n}\n.ticss-37330599 img {\n width: 24px;\n height: 24px;\n opacity: 0.8;\n border: 0px;\n}\n\n.ticss-37330599 img:hover {\n width: 24px;\n height: 24px;\n opacity: 1.0;\n}"} -->
    <div class="wp-block-button generate-pdf ticss-37330599 is-style-outline"><a class="wp-block-button__link wp-element-button" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><img class="wp-image-7741796" style="width: NaNpx;" src="https://www.agilicus.com/www/eedbac7d-pdf_icon.svg" alt="PDF_icon"></a></div>
    <!-- /wp:button --></div>
    <!-- /wp:buttons -->
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @donbowman ,

    Thank you for reaching out.

    For me to understand and learn more about your setup, could you provide the version of the following?

    1. PHP
    2. WordPress
    3. The Events Calendar
    4. Events Calendar Pro (if using)
    5. Theme and Version
    Thread Starter donbowman

    (@donbowman)

    Of course,

    • PHP 8.4.10
    • WordPress 6.8.2
    • the-events-calendar 6.14.2
    • events-tickets 5.25.1
    • 2025 theme

    not pro.

    Plugin Support tristan083

    (@tristan083)

    Hi @donbowman ,

    Thank you for your message and the information.

    I tried reproducing the issue in my test environment, but I could not get the “Updating failed. Could not update the meta value of _tribe_ticket_capacity in database.” error on my end. Were you editing the synced pattern from the design editor (Appearance -> Editor -> Patterns)? Do you also have the pattern added to a page, post, or event with tickets?

    Thread Starter donbowman

    (@donbowman)

    This was a brand new pattern. It was attached to a single brand new page, the template was not the events calendar.

    I opened the page, then clicked on the synced pattern, then clicked edit original, then made a minor change, then hit save. It occurred here.

    It reproduces for me all the time. But, when i tried a brand new empty installation of wordpress on playground it did not do this.

    So is it possible that over time the migration of my database has had some issue?

    Is there another diagnostic i can do to help?

    Thread Starter donbowman

    (@donbowman)

    If i go to the site editor, create a new synced pattern, on open it immediately gives the same error, without having done the first save.

    So the question is:

    Why if the post type is not tribe_*, and, there is no tribe* block, is it running any code in the editor? This seems to be an enqueuing issue.

    The system does a PUT to https://MYDOMAIN/wp-json/wp/v2/blocks/7561892?_locale=user

    with the body as below when I do a save (this is from the network tools).

    {id: 7561892, rank_math_seo_score: 8,…}
    content
    :
    "<!-- wp:buttons {\"metadata\":{\"name\":\"save-to-pdf\"},\"className\":\"ticss-3803a7bf\",\"hasCustomCSS\":true,\"customCSS\":\".ticss-3803a7bf {\\n position: absolute;\\n top: 2%;\\n right: 2%;\\n}\\n@media print {\\n .ticss-3803a7bf {\\n display: none !important;\\n }\\n}\"} -->\n<div class=\"wp-block-buttons ticss-3803a7bf\"><!-- wp:button {\"className\":\"generate-pdf ticss-37330599 is-style-outline\",\"style\":{\"spacing\":{\"padding\":{\"left\":\"0\",\"right\":\"0\",\"top\":\"0\",\"bottom\":\"0\"}}},\"hasCustomCSS\":true,\"customCSS\":\".ticss-37330599 {\\n /*\\n width: 64px;\\n height: 64px;\\n */\\n}\\n.ticss-37330599 img {\\n width: 24px;\\n height: 24px;\\n opacity: 0.8;\\n border: 0px;\\n}\\n\\n.ticss-37330599 img:hover {\\n width: 24px;\\n height: 24px;\\n opacity: 1.0;\\n}\"} -->\n<div class=\"wp-block-button generate-pdf ticss-37330599 is-style-outline\"><a class=\"wp-block-button__link wp-element-button\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><img class=\"wp-image-7741796\" src=\"/www/eedbac7d-pdf_icon.svg\" alt=\"PDF_icon\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->"
    id
    :
    7561892
    meta
    :
    {_price: "", _stock: "", _tribe_ticket_header: "", _tribe_default_ticket_provider: "",…}
    rank_math_seo_score
    :
    8

    Looking at this in json format, the PUT is:

    _locale
    user
    {"id":7561892,"rank_math_seo_score":8,"meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_EventAllDay":false,"_EventTimezone":"","_EventStartDate":"","_EventEndDate":"","_EventStartDateUTC":"","_EventEndDateUTC":"","_EventShowMap":false,"_EventShowMapLink":false,"_EventURL":"","_EventCost":"","_EventCostDescription":"","_EventCurrencySymbol":"","_EventCurrencyCode":"","_EventCurrencyPosition":"","_EventDateTimeSeparator":"","_EventTimeRangeSeparator":"","_EventOrganizerID":[],"_EventVenueID":[],"_OrganizerEmail":"","_OrganizerPhone":"","_OrganizerWebsite":"","_VenueAddress":"","_VenueCity":"","_VenueCountry":"","_VenueProvince":"","_VenueState":"","_VenueZip":"","_VenuePhone":"","_VenueURL":"","_VenueStateProvince":"","_VenueLat":"","_VenueLng":"","_VenueShowMap":false,"_VenueShowMapLink":false,"ep_exclude_from_search":false,"footnotes":"","refreshMe":"refreshUI"},"content":"<!-- wp:buttons {\"metadata\":{\"name\":\"save-to-pdf\"},\"className\":\"ticss-3803a7bf\",\"hasCustomCSS\":true,\"customCSS\":\".ticss-3803a7bf {\\n position: absolute;\\n top: 2%;\\n right: 2%;\\n}\\n@media print {\\n .ticss-3803a7bf {\\n display: none !important;\\n }\\n}\"} -->\n<div class=\"wp-block-buttons ticss-3803a7bf\"><!-- wp:button {\"className\":\"generate-pdf ticss-37330599 is-style-outline\",\"style\":{\"spacing\":{\"padding\":{\"left\":\"0\",\"right\":\"0\",\"top\":\"0\",\"bottom\":\"0\"}}},\"hasCustomCSS\":true,\"customCSS\":\".ticss-37330599 {\\n /*\\n width: 64px;\\n height: 64px;\\n */\\n}\\n.ticss-37330599 img {\\n width: 24px;\\n height: 24px;\\n opacity: 0.8;\\n border: 0px;\\n}\\n\\n.ticss-37330599 img:hover {\\n width: 24px;\\n height: 24px;\\n opacity: 1.0;\\n}\"} -->\n<div class=\"wp-block-button generate-pdf ticss-37330599 is-style-outline\"><a class=\"wp-block-button__link wp-element-button\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><img class=\"wp-image-7741796\" src=\"/www/eedbac7d-pdf_icon.svg\" alt=\"PDF_icon\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->"}
    • This reply was modified 9 months, 3 weeks ago by donbowman.
    • This reply was modified 9 months, 3 weeks ago by donbowman.
    Thread Starter donbowman

    (@donbowman)

    Here is a way to reproduce:

    https://playground.wordpress.net/?plugin=the-events-calendar&plugin=event-tickets

    1. Open network in browser debug console
    2. setup the events calendar, use all defaults
    3. Go to dashboard
    4. Go to Appearance/Editor
    5. Go to Patterns
    6. Clear the network log in the console
    7. Select “Add Pattern’. Give it a name, select ‘Synced’

    In the network log, you will observe, even though this synced pattern has nothing to do with tribe tickets, it has the ‘meta’ fields set for stock/price/tickets/etc.

    This is a significant performance slowdown in wordpress, since unrelated pages it is doing all of the events calendar work (which is quite slow compared to other plugins).

    Now, in the example above, for some reason it doens’t fail, but, it does the same thing. The POST/PUT it does below shows.

    Since this synced pattern does not yet contain a tribe* block, and, is not of custom post type tribe*, I believe it should not have the code loaded/running.

    {id: 8, date: "2025-07-31T00:38:22", date_gmt: "2025-07-31T00:38:22",…}
    content
    :
    {raw: "", protected: false, block_version: 0}
    date
    :
    "2025-07-31T00:38:22"
    date_gmt
    :
    "2025-07-31T00:38:22"
    excerpt
    :
    {raw: "", rendered: "", protected: false}
    guid
    :
    {rendered: "https://playground.wordpress.net/scope:happy-sunny-forest/2025/07/31/test/",…}
    id
    :
    8
    link
    :
    "https://playground.wordpress.net/scope:happy-sunny-forest/2025/07/31/test/"
    meta
    :
    {_price: "", _stock: "", _tribe_ticket_header: "", _tribe_default_ticket_provider: "",…}
    modified
    :
    "2025-07-31T00:38:22"
    modified_gmt
    :
    "2025-07-31T00:38:22"
    password
    :
    ""
    slug
    :
    "test"
    status
    :
    "publish"
    template
    :
    ""
    title
    :
    {raw: "test"}
    type
    :
    "wp_block"
    wp_pattern_category
    :
    []
    wp_pattern_sync_status
    :
    ""
    _links
    :
    {,…}
    Plugin Support tristan083

    (@tristan083)

    Hi @donbowman ,

    Thank you for your message and the information.

    As you may already know, tickets created with Event Tickets can be associated with pages, posts, events, or even custom post types. In that regard, kindly try restricting the Post types that can have tickets (in Tickets -> Settings -> General tab) to just the Event post type, and see if that alleviates your situation.

    Thread Starter donbowman

    (@donbowman)

    I have that set already. In Ticket Settings, Post types that can have tickets, i have ‘Event’ as the only checked box.

    Thread Starter donbowman

    (@donbowman)

    I’ve re-confirmed in playground, w/ the default install, restricting tickets to just Event, it is adding meta data on a new pattern i create, even though that patter is a) not cpt Event, b) doesn’t contain an events calendar/rsvp/ticket block.

    Plugin Support Darian

    (@d0153)

    Hi @donbowman

    Thanks for your patience. I wanted to let you know that we’re still actively investigating the issue you reported. Our development team is aware of it and is currently working to find a solution.

    I’ve added your specific case to our internal ticket, [TECTRIA-1199]. While I don’t have a timeline for a fix just yet, you’ll be automatically notified on this thread as soon as we have an update or a resolution.

    Internal Bug Ticket Reference: TECTRIA-1199

    Plugin Support Darian

    (@d0153)

    Hi @donbowman

    We prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. I don’t have a specific timeline as to when this issue will be resolved, but trust that our team is aware. Our team communicates updates and bug fixes in our newsletter and via our changelog. We will also update you through this thread once the fix is out.

    I’m happy to help if any other questions are coming up around this topic, otherwise I’ll go ahead and close this ticket.

    Internal Bug Ticket Reference: TECTRIA-1199

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

The topic ‘synced pattern *not* using tec gets error on save about _tribe_ticket_capacity’ is closed to new replies.