Event search hangs

Home Forums Calendar Products Events Calendar PRO Event search hangs

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1009946
    Thomas Bügel
    Participant

    In chrome console there is following message, I guess it is concerning that issue:
    fasting-walking-meditation.com/:1 XMLHttpRequest cannot load http://fasten-wandern-meditieren.com/wp-admin/admin-ajax.php. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://fasting-walking-meditation.com’ is therefore not allowed access.

    The website is WPML plugin based. Languages en and de on domains: fasting-walking-meditation.com and fasten-wandern-meditieren.com.

    Is that a configuration fault or what?

    Wit regards Tom

    • This topic was modified 10 years, 6 months ago by Thomas Bügel.
    • This topic was modified 10 years, 6 months ago by George.
    #1010172
    George
    Participant

    Hey Thomas,

    This could be a caching-related issue. Could you try first deleting your browser’s cache to see if that changes anything?

    If it doesn’t, I’d recommend deactivating any and all caching-related plugins on your site. See if anything improves.

    If you find that this issue still persists, try deactivating WPML and see if this causes any positive changes…

    Let us know what you find! 🙂

    Thanks,
    George

    #1010517
    Thomas Bügel
    Participant

    Thank for reply.

    No it is no caching issue, for till now no cache plugin is installed yet. I guess it depends on HTTP access control (CORS) – look here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS.
    It is more an security issue, to secure cross-site data transfers.
    While the AJAX call is send from the English domain (fasting-walking.meditation.com) the called URL is the german domain, which is different (fasten-wandern-meditieren.com), inspite it is in the same server path of WPML settings.

    I don’t realy understand why the AJAX call is send to the German domain, perhaps it may be it is in WPML configuered as standard domain.

    There must be some kind of workaround to allow just that scenario a AJAX call from the en-domain to the de-domain.

    Meanwhile I dicovered the same problem when clicking in the Events Widget (month based view) on the next month arrow, it hangs and the turning wheel never stops and the next month will be never displayed.

    That all happens when the English language is selected. When German is selected, all works fine.

    • This reply was modified 10 years, 6 months ago by Thomas Bügel.
    #1010560
    George
    Participant

    Thanks for sharing all of this Thomas. This unfortunately may be a WPML issue that we cannot work around at this time. 🙁 This is because you are right about what you wrote it here:

    I don’t realy understand why the AJAX call is send to the German domain, perhaps it may be it is in WPML configuered as standard domain.

    This is not something The Events Calendar is built to work around and the only solution I can think of might be to use WPML to still offer translations but only on one domain, using the “sub-directory” method where a page in English might be at example.com/en/page but in German at example.com/de/page

    There must be some kind of workaround to allow just that scenario a AJAX call from the en-domain to the de-domain.

    This might indeed be possible…you might be able to filter WordPress’ built-in admin_url() function, which is used by plugins to point to the admin-ajax.php file to run ajax requests. You could theoretically “hijack” this function via its filter to force the domain name to always be the English one or something, but this is something I do not recommend because it could have far-reaching effects.

    You can learn about this function and find out where it is located within WordPress so that you can read it and see how its filter works checking out its WP Codex page here → https://codex.wordpress.org/Function_Reference/admin_url

    Let me know what you think about all of this!

    Sincerely,
    George

    #1015198
    Thomas Bügel
    Participant

    This reply is private.

    #1015348
    George
    Participant

    Hey Tom,

    My understanding of WPML was that you could serve multi-lingual views as subfolders on the same site, and that this was the default method. So for example if your site was example.com, then a page in English would be at example.com/en/page, while the French version is at example.com/fr/page

    Regardless, what I wrote here still stands as true:

    This is not something The Events Calendar is built to work around

    There are many incompatibilities with WPML and this seems like unfortunately one more 🙁 We are working hard on improving compatibility but don’t have any code-based solutions at this.

    I’m sorry Tom!

    #1020499
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Event search hangs’ is closed to new replies.