Hi @patrickhaond ,
Thank you for reaching out. Please find my remarks below.
When you visit one event it proposed to see All Events, but it mixes them all!
The following code snippet, which you can append to your theme’s functions.php file or through the use of a third-party Code Snippets plugin may help with this situation.
add_filter ( 'tribe_get_events_link' , function ( $link, $context ) {
if( isset( $_SERVER['HTTP_REFERER'] ) ) {
$back_link_url = $_SERVER['HTTP_REFERER'];
}
return $back_link_url;
}, 20, 2 );
Same problem when I visit one “big” category, it proposes Past events and then Next Events, but once again it all mixed up…
I have not been able to reproduce this issue in my test environment running only The Events Calendar plugins and the twenty-twenty-one theme. However, I recommend ensuring that you’ve set your site’s permalink structure to Post name in Settings -> Permalinks -> Permalink structure.
Thread Starter
Pat
(@patrickhaond)
Thank you @tristan083 for your help.
First the code snippet works fine and it allows me to join the all Events of the current Category!
However for the second problem I must use post name as permalink structure.
when I visit one category, the link is somethink like https://website.fr/evenements/categorie/evenements-patient/.
At the bottom of the page I have a link to Past Events, but I reach that url https://website.fr/evenements/categorie/(/?:%5B^/%5D, and the result is nothing in the list.
So there is a link to Next Events that lead me to something else, all mixed up.
Hi @patrickhaond ,
Thank you for your message and the clarification.
To help me better understand the situation and be able to experience the issue myself, could you please share the direct URL to the page in question here? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.
I would also appreciate it if you could provide the version of the following?
- PHP
- WordPress
- The Events Calendar
- Theme and Version
Thread Starter
Pat
(@patrickhaond)
Thank you for your answer.
https://cptsdeleyrieux.fr/evenements/categorie/evenements-professionnel/
Php 8.1.31
WP 6.7.1
The Events Calendar 6.7.0
Divi Theme 4.27.2
Hi @patrickhaond ,
Thank you for your message and the information.
I suspect there’s a conflict that’s causing the issue here. It would be good to test for conflicts. Could you follow the following steps?
- Deactivate all other plugins except for The Events Calendar Plugins.
- Switching to the Default theme.
Please read the Testing for Conflicts Article before doing anything.
To be safe, we’d recommend conducting tests and updates on a Staging Server. Also, please keep a working backup of your website.
Thread Starter
Pat
(@patrickhaond)
Thank you for your help @tristan083 !
Indeed there is a kind of conflict with another plugin which is Wordfence !
I guess I need to check parameters but I don’t how…
Thread Starter
Pat
(@patrickhaond)
By the way, I deactivated The events Calendar and then reactivated and sometimes it has strange behaviour.
-
This reply was modified 1 month, 3 weeks ago by
Pat.
Hi @patrickhaond ,
Thank you for your message and the information.
Unfortunately, we do not have documentation on setting up Wordfence, but I believe it has a “learning mode” feature, which may be useful — see Firewall Learning Mode.
As for your concern about some strange behavior when deactivating and reactivating The Events Calendar, would you be able to provide specifics or more context on this? What exactly is the behavior that you’re experiencing?
Thread Starter
Pat
(@patrickhaond)
Thank you but after checking again it is not a matter with Wordfence conflict…
The Behaviour is sometimes the PAst events links works fine and sometimes it doesn’t, leading to that kind of url : ……../evenements/categorie/(/?:[^/]
Plugin Support
Darian
(@d0153)
Hi @patrickhaond
Thanks for reaching out.
Could you please try re-saving your event slugs to see if it resolves the issue? To do this, head over to Events > Settings > Viewing, and simply click the Save button. This quick step might make a difference!
Let me know how it goes.
Thread Starter
Pat
(@patrickhaond)
Thank you but it doesn’t change anything.
Thread Starter
Pat
(@patrickhaond)
When I visit one category, the link is something like https://cptsdeleyrieux.fr/evenements/categorie/evenements-professionnel/.
At the bottom of the page I have a link to Past Events, but I reach that url https://cptsdeleyrieux.fr/evenements/categorie/(/?:%5B^/%5D, and the result is nothing in the list.
Then there is a link to Next Events that lead me to something else, all mixed up.
Hi @patrickhaond ,
Thank you for your message and clarification.
This looks like an issue related to a thread you’ve opened earlier (see https://wordpress.org/support/topic/how-to-show-past-events-4/). As such, kindly see recommendations on that thread.
Plugin Support
Darian
(@d0153)
Hi @patrickhaond
I’ll go ahead and close this thread for now and continue assisting you through your other thread. If you have any additional questions or concerns, feel free to reach out again.