• Resolved horizonwp

    (@horizonwp)


    Hi,

    I have recently added WPML to my wordpress page where I am successfully using WP Event Manager. My website is offering German (default language) and English.

    For German, WP Event Listing works fine.
    When switching to English, it is stuck with a loading wheel and no events are displayed.

    I am pretty sure that it is because get_listings ajax request fails with “400 Bad Request” because for English version it is targeted at https://[myurl.de]/em-ajax/get_listings/?lang=en/ instead of https://[myurl.de]/em-ajax/get_listings

    How can I make sure ajax requests from the proper URL without language appendix?

    Is this something I can fix in the WP Event Manager code – or is it something that is messed up with my WPML configuration?

    • This topic was modified 6 years, 1 month ago by horizonwp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @horizonwp

    It’s a strange issue it should have to work. Can you please create a support ticket here

    Thank you

    Thread Starter horizonwp

    (@horizonwp)

    Dear Hitesh,

    I’ve created a support ticket now. Thank you!

    Thread Starter horizonwp

    (@horizonwp)

    To everyone who is running into a similar issue,
    I was able to resolve it through WP Dashboard.

    Here are some steps I took:

    1. Make sure to use “Different languages in directories” as Language URL Format (WPML -> Languages)

    This will resolve the loading wheel

    But then for me I wasn’t able to open single events.

    2. WP Dashboard -> Settings -> Permalinks
    Event base for me was set to “event”
    I fixed my issue when I changed it to “veranstaltung” (veranstaltung is event in German, so this corresponds to my German default language url base)

    Also I had to do

    3. WPML -> Settings -> Post Types Translation
    Unlock Events (event_listing)
    And I’ve set it to Translatable – use translation if available or fallback to default language

    Only now I was able to also add English versions under WP Dashboard -> Event Listings -> All Events

    Another setting we had worked a lot with was at WPML -> Settings -> Post Types Translation “Set different slugs in different languages for Events.”
    I think in the end this did not contribute to resolving my issue, so best try to keep it as it is.
    But if you are still not successful, you might try fiddling around here, too.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘400 Bad Request for WPML’ is closed to new replies.