• Resolved heduino

    (@heduino)


    I got an email recently with this information:

    =======================

    Hii!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Polylang.

    First, visit your website (https://www.iloveportugal.shop/) and check for any visible issues. Next, visit the page where the error was caught (https://www.iloveportugal.shop/wp-admin/admin.php?page=stats&noheader&proxy&chart=admin-bar-hours-scale-2x) and check for any visible issues.

    (…)

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.8
    Active theme: Augest Child (version 1.0.0)
    Current plugin: Polylang (version 3.7)
    PHP version 7.4.33

    Error Details
    =============
    An error of type E_ERROR was caused in line 84 of the file /home/heduinor/public_html/iloveportugal.shop/wp-content/plugins/polylang/admin/admin-filters-media.php. Error message: Uncaught Error: Call to undefined method PLL_Admin_Links::get_data_from_new_media_translation_request() in /home/heduinor/public_html/iloveportugal.shop/wp-content/plugins/polylang/admin/admin-filters-media.php:84
    Stack trace:
    #0 /home/heduinor/public_html/iloveportugal.shop/wp-includes/class-wp-hook.php(324): PLL_Admin_Filters_Media->translate_media(”)
    #1 /home/heduinor/public_html/iloveportugal.shop/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #2 /home/heduinor/public_html/iloveportugal.shop/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/heduinor/public_html/iloveportugal.shop/wp-admin/admin.php(176): do_action(‘admin_init’)
    #4 {main}
     thrown

    ==========================

    Can anyone help understand how to fix it?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor hugod

    (@hugod)

    Hi,

    Thanks for reaching us. You have to know that PLL_Admin_Links::get_data_from_new_media_translation_request() does exist, see https://github.com/polylang/polylang/blob/f850d7af3a4e5051ecbfcf03d1cd1a909861d37f/admin/admin-links.php#L274.
    In order to fix your issue, please delete Polylang from your wp-content/plugins/ directory and add it back.

    Regards.

    • This reply was modified 11 months, 3 weeks ago by hugod.
    Thread Starter heduino

    (@heduino)

    Thanks for getting back to me. What exactly do you mean by deleting Polylang and adding it back?

    Add back how? Download the Plugin files and adding it back to same folder?

    Or deleting and installing again?

    Will this procedure delete the translations already made? I also have Loco Translate, and the site has 2 languages already working.

    Plugin Contributor Sebastien SERRE

    (@sebastienserre)

    Hello

    It means delete the wp-content/plugins/polylang folder on your host and install it again.
    You can also follow the 4 steps described in our doc about installation. https://polylang.pro/doc/installation/

    The goal is to remove the existing Polylang files and then add the latest ones.

    If you just delete the files from your host or follow our documentation, then no settings will be deleted, your already translated content and Loco Translate job will remain

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

The topic ‘WordPress caught an error with Polylang’ is closed to new replies.