Project

General

Profile

Actions

Bug #23535

closed

RSVP buttons broken on GCDI website

Added by Pranav Chinmay 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
High
Assignee:
Category name:
WordPress Plugins
Target version:
-
Start date:
2025-09-23
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi,

The RSVP buttons on the various events on the GCDI calendar (for example, https://gcdi.commons.gc.cuny.edu/event/intro-to-latex/) are broken for some users and don't trigger the pop-up. Please take a look and let me know if this can be fixed soon.

Thanks,
Chinmay

Actions #1

Updated by Raymond Hoh 2 months ago

  • Status changed from New to Reporter Feedback

The issue is only happening for logged-out users. Because the single event page is cached, the security nonce is invalid when submitting the RSVP.

Does GCDI usually have RSVPs from users that are not members of the Commons? If the majority of RSVPs are Commons users, a workaround would involve only allowing RSVPs for logged-in users: https://gcdi.commons.gc.cuny.edu/wp-admin/admin.php?page=tec-tickets-settings

Would that be okay? If not, we would have to code a workaround to disable the cache for single event pages and only when the event in question has enabled RSVPs.

Actions #2

Updated by Raymond Hoh 2 months ago

For now, I've omitted caching single event pages from GCDI. Please check to see the RSVP functionality is working for logged-out users.

Boone, I've added the following to the .htaccess file on production.

# Omit caching single event pages from GCDI site
# See https://redmine.gc.cuny.edu/issues/23535
RewriteCond %{HTTP_HOST} ^gcdi\.commons\.gc\.cuny\.edu$ [NC]
RewriteCond %{REQUEST_URI} ^/event/
RewriteRule .* - [E=Cache-Control:no-cache]

Though if more sites are using the RSVP functionality with the-events-calendar / event-tickets plugins, we'll need to code a more, general workaround involving filtering Litespeed Cache's exclude settings at the WordPress level.

Actions #3

Updated by Pranav Chinmay 2 months ago

  • Deployment actions updated (diff)
Actions #4

Updated by Pranav Chinmay 2 months ago

  • Deployment actions updated (diff)

The RSVP functionality is working now. Thanks a lot. You can close the issue if needed.

Actions #5

Updated by Boone Gorges about 1 month ago

  • Status changed from Reporter Feedback to Resolved
Actions

Also available in: Atom PDF