Wordpress Error When Trying to Load Site

by im1217
9 replies
Hi,


I just recently updated plugins on my WP site. I may have also updated to WP 5.0. Now, I get this error:


Notice: register_sidebar was called
incorrectly
. No
id
was set in the arguments array for the "Left Sidebar" sidebar. Defaulting to "sidebar-1". Manually set the
id
to "sidebar-1" to silence this notice and keep existing sidebar content. Please see
Debugging in WordPress
for more information. (This message was added in version 4.2.0.) in /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/functions.php on line 4169 Notice: register_sidebar was called
incorrectly
. No
id
was set in the arguments array for the "Right Sidebar" sidebar. Defaulting to "sidebar-2". Manually set the
id
to "sidebar-2" to silence this notice and keep existing sidebar content. Please see
Debugging in WordPress
for more information. (This message was added in version 4.2.0.) in /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/functions.php on line 4169 Notice: add_custom_background is
deprecated
since version 3.4.0! Use add_theme_support( 'custom-background', $args ) instead. in /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/functions.php on line 3861 Deprecated: Non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/class-wp-hook.php on line 284 Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/functions.php:4169) in /hermes/walnaweb09a/b1544/pow.airindia/htdocs/optimallife/wp-includes/pluggable.php on line 1223





My web hosting provider said it's a script error. Please heeeelllllP!
#error #load #site #wordpress
Avatar of Unregistered
  • Profile picture of the author micksss
    Do you have a recent backup you can restore from?
    Signature
    Web Hosting Reviews ► www.CastironHosting.com ◄ Read or Submit Feedback on Web Hosts.
    Web Hosting Coupons, Deals & Promos!

    Need a Virtual Private Server? www.VPSPlan.com
    {{ DiscussionBoard.errors[11460662].message }}
  • Profile picture of the author im1217
    How do I find the backup in my web hosting service? Does it automatically back it up? I think I had a plug-in that would backup my files.
    {{ DiscussionBoard.errors[11460701].message }}
  • Profile picture of the author wordpress+expert
    Hi im1217, you need to find in your theme all the functions "register_sidebar" and add "id" for it.

    for example:

    register_sidebar(
    array(
    'name' => 'sidebar',
    'description' => '',
    'before_widget' => '<div id="%1$s" class="side widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>'
    )
    )


    had to changed like it:

    register_sidebar(
    array(
    'id' => 'sidebar_1',
    'name' => 'sidebar',
    'description' => '',
    'before_widget' => '<div id="%1$s" class="side widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>'
    )
    )
    {{ DiscussionBoard.errors[11461560].message }}
    • Profile picture of the author im1217
      Where in the theme editor do I find this?


      Originally Posted by wordpress+expert View Post

      Hi im1217, you need to find in your theme all the functions "register_sidebar" and add "id" for it.

      for example:

      register_sidebar(
      array(
      'name' => 'sidebar',
      'description' => '',
      'before_widget' => '<div id="%1$s" class="side widget %2$s">',
      'after_widget' => '</div>',
      'before_title' => '<h3 class="widget-title">',
      'after_title' => '</h3>'
      )
      )


      had to changed like it:

      register_sidebar(
      array(
      'id' => 'sidebar_1',
      'name' => 'sidebar',
      'description' => '',
      'before_widget' => '<div id="%1$s" class="side widget %2$s">',
      'after_widget' => '</div>',
      'before_title' => '<h3 class="widget-title">',
      'after_title' => '</h3>'
      )
      )
      {{ DiscussionBoard.errors[11467060].message }}
  • Profile picture of the author ncodetech
    You can search for a relevant solution from google. there are you can find a very much proper answer.
    {{ DiscussionBoard.errors[11462045].message }}
  • Profile picture of the author ncodetech
    It is because of the new WordPress version arrives in the market. So there may affect some plugin so that plugin not working properly.
    {{ DiscussionBoard.errors[11464656].message }}
  • Profile picture of the author parmarjeet
    One or 2 of your plugins may not be updated according to the latest WordPress 5.0. This will obviously give you error. Either deactivate that plugin or downgrade your Wordpress back to older version.
    Signature
    Free SEO Academy: Access over-the-shoulder video tutorials to crush Google and AI
    {{ DiscussionBoard.errors[11466798].message }}
    • Profile picture of the author im1217
      How do I know which plugins are causing the problem?

      Also, how to downgrade my WP version?



      Originally Posted by parmarjeet View Post

      One or 2 of your plugins may not be updated according to the latest WordPress 5.0. This will obviously give you error. Either deactivate that plugin or downgrade your Wordpress back to older version.
      {{ DiscussionBoard.errors[11467061].message }}
  • Profile picture of the author lordspace
    contact the theme author
    Signature

    Are you using WordPress? Have you tried qSandbox yet?

    {{ DiscussionBoard.errors[11476154].message }}
Avatar of Unregistered

Trending Topics