• I am having these warning on Maintenance page (backend)…

    Warning: Missing argument 2 for PLL_Admin_Sync::add_meta_boxes() in /home2/japra/public_html/informasiindonesia.com/wp-content/plugins/polylang/modules/sync/admin-sync.php on line 52
    Warning: Missing argument 2 for PLL_Plugins_Compat::cft_copy() in /home2/japra/public_html/informasiindonesia.com/wp-content/plugins/polylang/modules/plugins/plugins-compat.php on line 312

    What happened? Take a look at this.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    If you are on a production site, I suggest that you set WP_DEBUG to false instead of true in your wp-config.php to avoid displaying these warnings.

    These warnings are the result of a conflicting plugin or theme which misuses the action ‘add_meta_boxes’.

    Probably it is doing something like:

    do_action( 'add_meta_boxes', $post_type );

    When it must do something like:

    do_action( 'add_meta_boxes', $post_type, $post );

    The ‘add_meta_boxes’ action is defined by WordPress with 2 arguments ( see https://hookr.io/4.4/actions/add_meta_boxes/ ) which are both used by Polylang. When your plugin or theme sends only one argument, the warning is issued in the Polylang code.

    Please identify the conflicting plugin or theme and inform the author for him to fix the bug.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning on Maintenance Page (Backend)’ is closed to new replies.