• hello i was deactivating my all plugins for some reason but i mistakenly deactive polylang plugin too now i’m getting this error. i don’t want to lose my website i’ve build both in english and italian version. Please help me.

    Fatal error: Call to undefined function pll_register_string() in /home/tenutal3/public_html/wp-content/themes/bellevuex-child/functions.php on line 156

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Your child theme is using a function that is not in the child theme. It should check if it exists first before using it. Or just reactivate the plugin.

    Thread Starter ajexosi

    (@ajexosi)

    @joyously My website is not working how i reactive it, and if i removed from directory and again install it will i lose my itlaian vrsion?

    I don’t know how that plugin works, but I doubt that deactivating it will lose any data. (don’t know though)
    You should fix your child theme. That is where the error is. No code should use a plugin’s function without checking first if it exists.
    if function_exists('pll_register_string')

    Thread Starter ajexosi

    (@ajexosi)

    I only see this on function.php what i do with that should i remove it?
    add_action(‘wp_head’,’simplebooking_scripts’);
    add_action(‘init’, function() {
    global $wp;
    pll_register_string(‘bellevuex-child’, ‘Official Website’);
    pll_register_string(‘bellevuex-child’, ‘Chat With Us’);
    });

    Thread Starter ajexosi

    (@ajexosi)

    oh thankyou i removed it and now it is workng <3

    Thread Starter ajexosi

    (@ajexosi)

    But now i can see another error ;(

    Thread Starter ajexosi

    (@ajexosi)

    Thankyou problem solved by removing it ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I deactive polylang mistakenly now getting error’ is closed to new replies.