Conversation
supportHi, Since the update to 3.0.0 I’m getting an fatal error on the pages where I’m using wpml_mailto() in my template. Call to undefined function wpml_mailto() I had to rollback to 2.20 to make it work again. Thanks for the plugin ! Best, Marius
Hey @turkal – Thank you a lot for your request. Can you tell me with which parameter you currently call the function? I will then make some tests and update you after with further steps. Thank you already a lot!
Hi @ironikus , I’m calling the function with parameters from another plugin (Pods): $the_travail = pods('travail', get_the_ID()); echo wpml_mailto($the_travail->display("email"), "Contacter l'auteur"); Which, basically, is equivalent to: echo wpml_mailto("email@email.com", "Contacter l'auteur"); Best, This reply was modified 6 years, 7 months ago by Marius . This reply was modified 6 years, 7 months ago by Marius . This reply was modified 6 years, 7 months ago by Marius .
Hey @turkal – thank you a lot for the details. I could successfully reproduce the issue and will push a fix for that within our next version. The version will be released within the next two days. 🙂
Hey @turkal – I just wanted to let you know that we pushed a new version, which addresses your fatal error as well. Feel free to reach out again in case it has not fixed your issue. 🙂
Hey @turkal – Thank you a lot for your request. Can you tell me with which parameter you currently call the function? I will then make some tests and update you after with further steps. Thank you already a lot!
Hi @ironikus , I’m calling the function with parameters from another plugin (Pods): $the_travail = pods('travail', get_the_ID()); echo wpml_mailto($the_travail->display("email"), "Contacter l'auteur"); Which, basically, is equivalent to: echo wpml_mailto("email@email.com", "Contacter l'auteur"); Best, This reply was modified 6 years, 7 months ago by Marius . This reply was modified 6 years, 7 months ago by Marius . This reply was modified 6 years, 7 months ago by Marius .
Hey @turkal – thank you a lot for the details. I could successfully reproduce the issue and will push a fix for that within our next version. The version will be released within the next two days. 🙂
Hey @turkal – I just wanted to let you know that we pushed a new version, which addresses your fatal error as well. Feel free to reach out again in case it has not fixed your issue. 🙂