• i am getting following warning message when am i changed theme of a page

    Warning: Missing argument 3 for wp_register_sidebar_widget(), called in E:\xampp\apps\wordpress\htdocs\wp-content\themes\8press\functions.php on line 87 and defined in E:\xampp\apps\wordpress\htdocs\wp-includes\widgets.php on line 335

    how to resolve it. i am getting it when i am using 8press theme and theme test. i am using woocommerce in

    https://wordpress.org/plugins/jonradio-multiple-themes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • That would be up to the 8press Theme Author to correct, based on the “\themes\8press\functions.php” part of the warning message.

    On the off chance that you don’t know this, Warning messages are suppressed by setting WP_DEBUG to FALSE in the wp-config.php file.

    Thread Starter neerajkumarudatha

    (@neerajkumarudatha)

    line 87 : wp_register_sidebar_widget(__(‘Social Icons’), ‘widget_mytheme_search’);

    line 335 :function wp_register_sidebar_widget( $id, $name, $output_callback, $options = array() ) {
    global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates, $_wp_deprecated_widgets_callbacks;

    $id = strtolower($id);

    As you can see, line 87 only specifies two parameters, and line 335 specifies that 3 or 4 parameters are required.

    As I said, the 8press theme author is responsible for fixing the code in the 8press theme.

    But, that being said, some plugin and theme authors do not know or care about warning messages.

    Thread Starter neerajkumarudatha

    (@neerajkumarudatha)

    ok thank you for your kind information.

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

The topic ‘warning message’ is closed to new replies.