That’s strange, can you tell me which version of Polylang Pro and WordPress you are using?
I have this plugin working well on a client site which also runs Polylang Pro. Maybe this bug is due to a new version? I am assuming the constant may have changed in the latest version of Polylang.
I just compiled a new release on GitHub, would you mind testing it and letting me know if it fixes your issue. I can then release it on WP repo. Unfortunately I don’t have time right now to test it myself.
Using Polylang 2.1 (not pro) I had same issue, just to confirm that the new release fixes the POLYLANG_URL error.
However in the top right translations panel when editing the translation I am getting the error:
Notice: Trying to get property of non-object in .../wp-content/plugins/polylang/admin/admin-links.php on line 22 ]
This appears twice in the panel. After saving it only saves as another EN version and not in the language it should be – TR in my case.
-
This reply was modified 9 years, 2 months ago by
johny-dotpad.
I had the same issue and tried using the zip file you provided earlier. Initially I couldn’t get it to work, until I noticed there was a spelling mistake in the /admin/class-cf7-polylang-admin.php file. You’ve written “wp-cotent” instead of “wp-content” on line 108.
I don’t have the same issues as @johny-dotpad. I am not using Polylang Pro.
@amandau, ooops, well spotted. That’s what happen when one work late into the night 🙁
However, please note that there is a more important bug that has been reported with the new version of Polylang 2.1 So for now, please downgrade to polyland 2.0.12 till a proper fix is released.
I am investigating this issue and will release a fix soon I hope.
I just released a new version 1.2.9, please update to fix your issue.
@aurovrata
I just installed the new version cf7-polylang-1.2.9 and the issue regarding “POLYLANG_URL not being defined” is resolved. 🙂
Thank you! Great plugin! Keep up the good work! but dont forget to sleep 😉
btw Im using:
WP Version 4.7.2
Polylang Pro Version 2.1