Title: Report Error if using WPML together
Last modified: August 31, 2016

---

# Report Error if using WPML together

 *  Resolved [alextsoi](https://wordpress.org/support/users/alextsoi/)
 * (@alextsoi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/)
 * If using WPML together, there will an internal error message returned after making
   favicon.
    The error existed in “admin/views/appearance.php”:236.
 * When my website is using WPML, the ajax url will attach a language e.g.
    [http://my_site.com/en/admin-ajax.phpXXXXXX](http://my_site.com/en/admin-ajax.phpXXXXXX)
   which will turn request into 404.
 * My temp fix is using str_replace function to remove the language to make the 
   ajax request back to 200.
 * And I just wanna let others know and see if author will fix it in the next version
   update.
 * [https://wordpress.org/plugins/favicon-by-realfavicongenerator/](https://wordpress.org/plugins/favicon-by-realfavicongenerator/)

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

 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082313)
 * Thank you for reporting! I didn’t know about this.
 * WPML is a non-free plugin so I’m not sure I can test this issue easily. Could
   you copy/paste your workaround? It may be enough to let me understand the exact
   problem and fix. And also a sample Ajax URL: yours ends with “XXX” but this is
   not what WPML really does, is it?
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082530)
 * [I asked the WPML team](https://twitter.com/RealFavicon/status/702409506727268352)
   if I could get a free copy so I could debug myself.
 *  Thread Starter [alextsoi](https://wordpress.org/support/users/alextsoi/)
 * (@alextsoi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082536)
 * I am sorry, I just saw your reply. I will upload the sample code of the file 
   with incorrect ajax url within today. For WPML, I think you may need to ask WPML
   team since there are multiple plugins for WPML.
 * My simple guess is “WPML probably added a function to a hook for building url”.
 *  Thread Starter [alextsoi](https://wordpress.org/support/users/alextsoi/)
 * (@alextsoi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082543)
 * The problem is the value of a variable called $ajax_url is wrong in line 236 
   of the attached file. The ajax request URL return 404 such that it makes the 
   plugin unable to work.
 * I saw the language slug is added in the $ajax_url, i.e. [http://YOUR_DOMAIN.com/en/admin_ajax.phpXXXXX](http://YOUR_DOMAIN.com/en/admin_ajax.phpXXXXX),
   and if I remove the language slug, the ajax request will be processed successfully.
   Since I don’t have time to check on the details, but I think the WPML may did
   something while generating the variable $ajax_url.
 * P.S. my default website language is not english, but chinese, so the site may
   automatically add some language slug to the URL.
    P.S. only line 236 of the attached
   file ( appearance.php ) is changed, otherwise are same as the RealFaviconGenerator
   plugin.
 * Temp link: [https://github.com/alextsoi/temp-fix-RealFaviconGenerator/blob/master/appearance.php](https://github.com/alextsoi/temp-fix-RealFaviconGenerator/blob/master/appearance.php)
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082560)
 * Thanks for the feedback. I also received a copy of WPML, so I will be able to
   reproduce and fix. Probably this week, I hope tomorrow.
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082568)
 * Well I can’t reproduce with my local WPML install.
 * The issue you encounter has already been reported: [https://wpml.org/forums/topic/admin_url-returns-incorrect-value-since-3-3-x/](https://wpml.org/forums/topic/admin_url-returns-incorrect-value-since-3-3-x/).
   And because the post is closed, I’m wondering if the issue was actually fixed.
   I’m using WPML Code 3.3.6. Which version do you use?
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082569)
 * Apparently the issue was fixed in 3.3.4 (or 3.3.5 maybe ? The release notes page
   mentions both versions): [https://wpml.org/2015/12/wpml-3-3-5-improves-stability-performance-and-integration/](https://wpml.org/2015/12/wpml-3-3-5-improves-stability-performance-and-integration/)
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082585)
 * This fix in WPML 3.3.4 really looks like the solution. I completely understand
   if you have no time to dedicate to test it. If I don’t hear from you in a few
   days I’ll close this ticket.
 *  Thread Starter [alextsoi](https://wordpress.org/support/users/alextsoi/)
 * (@alextsoi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082590)
 * Sorry for the late response, and my version (3.2.7) is older than 3.3.4, so the
   problem I mentioned may be fixed in newer version. Sorry again for helping me
   checking the code for a long time ><
 * Please feel free to close the ticket. Thank you very much
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082591)
 * The worst thing for a plugin editor are users who get an error but keep it for
   them. So thank you for having reported this issue in the first place!
 * For now I will assume the issue is fixed in the latest version of WPML. Of course,
   post again whenever you upgrade WPML and if you still get the error.

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

The topic ‘Report Error if using WPML together’ is closed to new replies.

 * ![](https://ps.w.org/favicon-by-realfavicongenerator/assets/icon-256x256.png?
   rev=972314)
 * [Favicon by RealFaviconGenerator](https://wordpress.org/plugins/favicon-by-realfavicongenerator/)
 * [Support Threads](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/)
 * [Active Topics](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [phbernard](https://wordpress.org/support/users/phbernard/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/report-error-if-using-wpml-together/#post-7082591)
 * Status: resolved