• Resolved wtmann

    (@wtmann)


    I’m using the small calendar plugin on one of my multilingual sites (using the WPML Multilingual CMS plugin). When I click on a day with only one event that page is show correctly. However, if I click on a day with multiple events the page that is shown is a random page in another language. For example, hovering over the chosen day in the small calendar shows the link as ‘adorable.belluno.it/eventi-test/2016-08-04/’ but then clicking the day the actual page shown is ‘adorable.belluno.it/en/?page_id=3094’. If I disable WPML then everything works correctly.

    I’ve also installed the Event Manager WPML compatibility plugin. Does anyone have any idea why this is happening?

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter wtmann

    (@wtmann)

    I’m no longer sure the problem is with the Events Manager because I did a test site with the same plugins activated and the Events Manager worked fine (on the test site however, I don’t have all the translated content). The problem still seems to be between Events Manager and WPML together. This because when I hover over a date on the calendar widget I see the events and I see the correct URL in the status bar. However, when I click on the date the URL is changed and it looks for English content. So I disabled all the languages except for the main one and tried again. I still don’t get my results and the plugin’s still looking for English content as you can see in the log excerpt below:

    0.0.0.0 – – [17/Aug/2016:13:45:50 +0200] “GET /eventi/ HTTP/1.1” 200 20431 “https://adorable.belluno.it/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36”
    0.0.0.0 – – [17/Aug/2016:13:45:51 +0200] “GET /wp-admin/admin.php?page=stats&noheader&proxy&chart=admin-bar-hours-scale HTTP/1.1” 200 1345 “https://adorable.belluno.it/eventi/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36”
    0.0.0.0 – – [17/Aug/2016:13:45:56 +0200] “GET /eventi/2016-08-19/?limit HTTP/1.1″ 301 693 “https://adorable.belluno.it/eventi/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36”
    0.0.0.0 – – [17/Aug/2016:13:45:57 +0200] “GET /en/?page_id=3094?limit HTTP/1.1” 302 423 “https://adorable.belluno.it/eventi/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36”
    0.0.0.0 – – [17/Aug/2016:13:45:57 +0200] “GET / HTTP/1.1” 200 21582 “https://adorable.belluno.it/eventi/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36”

    I’m at my wit’s end. I might have to rebuild the site from scratch…

    Try adding a limit to the Calendar events/day setting.

    Thread Starter wtmann

    (@wtmann)

    That didn’t seem to affect things one way or the other. This is wierd…

    Thread Starter wtmann

    (@wtmann)

    After further analysis it seems like each time a click on the calendar to go to a link like https://adorable.belluno.it/eventi/2016-08-20/?limit it’s being redirected with a 301 Permanently Moved HTTP error and the redirection is always going to the same place: https://adorable.belluno.it/en/?page_id=3094?limit; however, I have no idea why the links are being redirected since nothing has changed as far as I know. Any suggestions as to why this might happen?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    it might be the way you have your permalinks set up in WPML. WPML does add various extra rules for determining whether a URL represents another language

    I’d suggest playing with those related settings. One thing you could try is changing the ‘events’ page permalink slug, or the actual events post type slug (settings > pages > permalink slugs) event and resaving your permalink settings again to get the rules rebuilt.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Events list page showing unrelated page’ is closed to new replies.