Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #549834

    Hi,

    We have the last version of Enfold, and the last version of WPML but Avia editor doesnt’t load in languages different from main language (Spanish)

    I can’t in the console log that the following error:
    Failed to load resource: the server responded with a status of 404 (Not Found) [http://www.danysoft.com/wp-admin/www.aledit.it/wp-admin/admin-ajax.php Failed to load resource: the server responded with a status of 404 (Not Found) ]

    It seems that ajaxurl is bad constructed in other domains different of main language domain…

    Could you please help me?

    Thanks in advance.

    Regards,

    Jonathan Estrella

    #550941

    Hi!

    I tried on a few different languages that are not Spanish and couldn’t reproduce the issue, ALB loaded fine. Are you referring to WP language (set in Settings > General)?

    Cheers!
    Josue

    #550968

    Hi,

    We’ve “solved” temporaly by modifying WPML code by modifying:

    /var/www/html/danysoft/wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-url-filters.class.php

    We changed this function. Not the best solution but it’s working now…
    `public function admin_url_filter( $url, $path ) {
    if ( ‘admin-ajax.php’ === $path ) {
    $url = $this->url_converter->convert_url($url, $this->sitepress->get_current_language());
    $url=”http://www.danysoft.com/wp-admin/admin-ajax.php”;
    }

    return $url;
    }
    `
    I don’t know if you can make some change in your code or it’s only and WPML issue.

    Regards

    • This reply was modified 9 years, 11 months ago by jestrella.
    #551225

    Hi!

    I’m not sure, have you tried contacting WPML support?
    https://wpml.org/forums/forum/english-support/

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.