• Resolved Maxime Culea

    (@maximeculea)


    Hi,

    I have the following Fatal Error on the admin page : wp-admin/options-general.php?page=mlang

    ( ! ) Fatal error: Call to undefined method PLL_Settings::init() in public_html/wp-content/plugins/polylang/include/class-polylang.php on line 197

    Polylang 1.9 with all others plugins deactivated.

    In advance, thx for the help.

    https://www.ads-software.com/plugins/polylang/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    Could you please check this topic and follow the Chouby’s instructions? Thanks.

    Thread Starter Maxime Culea

    (@maximeculea)

    Well, I have reuploaded several times the plugins and nothing changes.
    Concerning the WP_DEBUG, it is set to true, that is why I can catch the fatal error.

    Plugin Support Chrystl

    (@chrystl)

    Did you delete the Polylang folder before reuploaded?

    Thread Starter Maxime Culea

    (@maximeculea)

    Yes

    Plugin Author Chouby

    (@chouby)

    Hi,

    Is the file polylang/admin/settings.php present?

    Thread Starter Maxime Culea

    (@maximeculea)

    Hi, yes “PLL_Admin_Strings” is right there ! ??

    Plugin Author Chouby

    (@chouby)

    What’s the problem with PLL_Admin_Strings? I understood that your problem is coming from PLL_Settings::init() which does not exist.

    If settings.php is present in polylang/admin, then this could be the source of the error. This file does not exist anymore since 1.8 (in fact it has been moved to polylang/settings).

    If you mix two versions, then the autoload will require the wrong file, causing the fatal error that you are experiencing.

    That’s why it’s mandatory to remove all files before updating. That’s what WP does during a normal update. But if, like me, you sometime make manuals updates, you can experience such issues when the files are not all deleted before uploading the new version.

    Thread Starter Maxime Culea

    (@maximeculea)

    Miss tipped, talking about “PLL_Settings”, you right.

    The file is here.
    So I guess in my VCS I need to remove it completely before readding it. I will try out an tell you what happened ..

    Thank you.

    Thread Starter Maxime Culea

    (@maximeculea)

    Hi,

    I have removed plugin from project’s repo, downloaded 1.9.1 version and then readed it to the repo.

    Now it’s working like a charm.
    Thx

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal Error in admin option page’ is closed to new replies.