• Resolved kevinpirola

    (@kevinpirola)


    Hello,

    I want to advice everyone, when updated the plugin will be inactive.

    The big problem is that if you use any functions in your personal theme this inactivity will block WP with a big php error (call to undefined function).

    I want to condivide my experience, the only way to solve this is to comment all the lines that use a pll function and THEN activate the plugin. Once done so you can de-comment each line and wp will work fine.

    For the developers, this is absolutely annoying… there should be a way to avoid that…

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    This has nothing to do with Polylang but the way WP does plugin updates and the way you are coding.

    I get this kind of support request after every Polylang update. When a plugin is updated by WP, it is de-activated before copying the new files. While de-activated, the plugin functions do not exist anymore. Thus absolutely no code should attempt to call a function of a de-activated plugin.

    There is a warning at the top of the Polylang function reference to prevent you from running in such an issue.

    EDIT:

    I want to condivide my experience, the only way to solve this is to comment all the lines that use a pll function and THEN activate the plugin. Once done so you can de-comment each line and wp will work fine.

    Fortunately no! http://us1.php.net/manual/en/function.function-exists.php 🙂

    Thread Starter kevinpirola

    (@kevinpirola)

    Thank you for this answer, I was missing that step with the functions!!

    Great!!

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

The topic ‘Polylang Corrupt all WP after update!!!’ is closed to new replies.