Home › Forums › Calendar Products › Events Calendar PRO › strange links to venues and event organisers
- This topic has 31 replies, 5 voices, and was last updated 8 years, 1 month ago by Geoff.
-
AuthorPosts
-
December 29, 2015 at 12:38 am #1047589AlexanderParticipant
When you try to follow the link to a venue or event organiser you get some king of redirect loop
http://yoga22mayak.com/event/ram-nivas-%D0%BA%D1%83%D0%BD%D0%B4%D0%B0%D0%BB%D0%B8%D0%BD%D0%B8-%D0%B9%D0%BE%D0%B3%D0%B0/2016-01-06/or
404 in this case.
I can confirm the same behaviour on Twenty Fifteen theme also.
But when I change site language to English everything gets back to normal.Where should I look or what to change to fix the issue?
Thank you.
January 3, 2016 at 7:23 am #1049424YukaParticipantI am also facing the same problem.
Please tell me what to do I fix this.January 4, 2016 at 8:26 am #1049864GeoffMemberHey folks and happy new year!
I saw the same thing 404 when I was in a non-english translation, but it seemed to be corrected by going to Settings > Permalinks, making sure the format was set to Post Name, then re-saving the settings. Let me know if doing the same solves it for you as well.
If it doesn’t, then please follow the steps outlined here as a next course of action.
Cheers!
GeoffJanuary 5, 2016 at 8:49 am #1050573AlexanderParticipantHi Geoff,
I tried everything from your lists. The problem is still there.
Adding the code you suggested gives me back 500 error. I decided not to investigate why.
I reproduce all the step from the other link and switched to the twenty-fourteen theme. Got the same broken links.If you edit organiser or venue you can see the link to the object is already broken. When you switch back to English the link looks like it should and works properly.
http://yoga22mayak.com/wp-content/uploads/2016/01/Screen-Shot-2016-01-05-at-18.46.57-1024×212.jpg
January 5, 2016 at 3:51 pm #1050784GeoffMemberHi Alexander, thanks for following up and thanks for giving the steps in the article a try!
Does the same thing happen when you switch to a default WordPress theme (like Twenty Sixteen) and deactivate all other plugins at the same time?
Thanks,
GeoffJanuary 5, 2016 at 11:06 pm #1050906AlexanderParticipantHi Geoff,
I can confirm that when all plugins except Events Calendar and Events Calendar Pro were deactivated and theme Twenty Sixteen was activated I got the same type of link I described in my first message.
It can only be fixed if you switch the whole site to English.Thanks
AlexanderJanuary 6, 2016 at 7:16 am #1051186GeoffMemberThanks Alexander! I really appreciate the help so far. 🙂
Can you try adding this to your theme’s functions.php file:
add_filter( 'tribe_events_rewrite_utf8_handling', '__return_false' );
What I’m hoping is that disabling the calendar’s method for handling non-Roman characters will clean up how the URLs are being translated.
Thanks!
GeoffJanuary 6, 2016 at 12:10 pm #1051392AlexanderParticipantHi,
I added the filter you advised. Translation is just fine but… links are still broken.
http://yoga22mayak.com/место\-проведения/рига-centra-nams/
but it should look this way
http://yoga22mayak.com/место-проведения/рига-centra-nams/Link to organiser most probably will work from here
http://yoga22mayak.com/%D0%BE%D1%80%D0%B3%D0%B0%D0%BD%D0%B8%D0%B7%D0%B0%D1%82%D0%BE%D1%80/ram-nivas/
but if you try to follow this link from event’s page you get 404
http://yoga22mayak.com/event/ram-nivas-%D0%BA%D1%83%D0%BD%D0%B4%D0%B0%D0%BB%D0%B8%D0%BD%D0%B8-%D0%B9%D0%BE%D0%B3%D0%B0/2016-01-06/Thank you.
January 7, 2016 at 8:57 am #1051992GeoffMemberHey Alexander,
Thanks for giving that a shot and sorry it didn’t work.
I’ve created a ticket for us to fix this up. While I don’t have a timeframe for when it will be addressed, I will mark this thread Pending Fix and keep you posted as I know more.
Thanks for reporting this!
Geoff
January 7, 2016 at 9:07 am #1051995AlexanderParticipantHi Geoff,
I hope it won’t take long.
Thanks
January 7, 2016 at 11:24 am #1052076GeoffMemberAs a temporary workaround, our developers were able to whip this up. It solved the issue for me when adding it to the theme’s functions.php file:
function fix_42815_links( $link ) { $tribe_placeholder = '~~TRIBE~PC~~'; if ( false === strpos( $link, $tribe_placeholder ) ) return $link; return strtoupper( str_replace( $tribe_placeholder, '%', $link ) ); } function fix_42815_redirect( $to, $requested ) { return ( str_replace( '\\', '', $to ) === $requested ) ? false : $to; } add_filter( 'post_type_link', 'fix_42815_links' ); add_filter( 'redirect_canonical', 'fix_42815_redirect', 10, 2 );
Cheers!
GeoffJanuary 7, 2016 at 11:40 am #1052082AlexanderParticipantThank you for the prompt reaction.
I am sorry to say but:Your code is added but pages can’t be find (404) if I follow the link.
When I copy the link into the new browser window the page is opened.January 12, 2016 at 12:46 pm #1054805GeoffMemberHi Alexander,
You may need to flush permalinks to see the code snippet take effect. Have you tried that?
Geoff
January 12, 2016 at 12:57 pm #1054817AlexanderParticipantHi Geoff,
I did try. It didn’t help. Both links brings me to the same and wrong location.
http://yoga22mayak.com/event/ram-nivas-%D0%BA%D1%83%D0%BD%D0%B4%D0%B0%D0%BB%D0%B8%D0%BD%D0%B8-%D0%B9%D0%BE%D0%B3%D0%B0/2016-01-20/You can try.
Alexander
January 12, 2016 at 1:05 pm #1054826GeoffMemberShoot, sorry about that. The snippet corrected my issue and I was hoping it would do the same for you as well and would help relieve the issue while we work on an official release.
I’ll keep you updated with the status of this issue as I know more.
Thanks,
Geoff -
AuthorPosts
- The topic ‘strange links to venues and event organisers’ is closed to new replies.