Project

General

Profile

Actions

Support #22276

closed

Event Permalinks Not Working

Added by scott voth about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2025-03-08
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

The PSC CUNY GC HEOs site is using The Events Calendar plugin and has 3 events. None of the permalinks for these events is working. I tried refreshing via Permalinks settings but they are still not working. Here is an example: https://gcheo.commons.gc.cuny.edu/event/heo-brown-bag-lunch/


Files

2025-03-10_17-24-02.jpg (674 KB) 2025-03-10_17-24-02.jpg scott voth, 2025-03-10 05:26 PM
Actions #1

Updated by Boone Gorges about 1 month ago

  • Target version set to Not tracked

The event URL was 404ing (and was not appearing on the Upcoming Events calendar) because the-events-calendar was not finding a corresponding entry in the tec_occurrences table. It was not finding this because the table did not exist. Something somewhere caused there to be a mismatch between the schema version options stored in the options table (which said that the install was OK) and the actual database schema (where the tables did not exist).

Ray, I'm copying you here because I know you've looked at the way that the-events-calendar runs its schema tools, and particularly the interaction with action-scheduler. I'm hopeful that this is just a blip with this specific site, but it could be that there's a broader issue here.

For the time being, I've written a very small script that forces the-events-calendar to run its schema repair tool:

  3 $schema_builder = tribe( \TEC\Events\Custom_Tables\V1\Schema_Builder\Schema_Builder::class );
  4 $done = $schema_builder->up( true );                                                                   
  5 var_dump( $done );

I've run it on the site in question, and the tables were created. In order to make an item show up on the calendar and when you visit the URL, I also had to force the "occurrence" to be written to the new table. I did this for https://gcheo.commons.gc.cuny.edu/wp-admin/post.php?action=edit&classic-editor&post=339 (https://gcheo.commons.gc.cuny.edu/event/heo-brown-bag-lunch/) by changing the start/end times, and then changing them back again. Scott, this will have to be repeated with the other existing events. Are you able to do this, to confirm that it's working properly?

Actions #2

Updated by scott voth about 1 month ago

Thanks Boone. I made the changes to the other two events and they are working now. They are also displaying on the calendar.

Actions #3

Updated by scott voth about 1 month ago

Hi Boone - Could a debugger still be active on this site? see attached

Actions #4

Updated by Boone Gorges about 1 month ago

  • Status changed from New to Resolved

Sorry about that. Should now be fixed.

Actions

Also available in: Atom PDF