• Resolved sitehopper

    (@sitehopper)


    in the file /wp-content/plugins/cf7-polylang/admin/class-cf7-polylang-admin.php
    line 108 the constant POLYLANG_URL is called but is not defined. That is why the file post.min.js doesnt load. I needed to define this constant myself in my function.php to make the plugin work properly.

    Im using Polylang Pro.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    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.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    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.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    @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.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I just released a new version 1.2.9, please update to fix your issue.

    Thread Starter sitehopper

    (@sitehopper)

    @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

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

The topic ‘bug constant POLYLANG_URL not defined’ is closed to new replies.