Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Wordpress Error When Trying to Load Site (https://www.warriorforum.com/programming/1371817-wordpress-error-when-trying-load-site.html)

im1217 7th December 2018 11:55 PM

Wordpress Error When Trying to Load Site
 
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!

micksss 10th December 2018 01:02 PM

Re: Wordpress Error When Trying to Load Site
 
Do you have a recent backup you can restore from?

im1217 10th December 2018 03:14 PM

Re: Wordpress Error When Trying to Load Site
 
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.

wordpress+expert 12th December 2018 04:11 PM

Re: Wordpress Error When Trying to Load Site
 
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>'
)
)

ncodetech 14th December 2018 02:41 AM

Re: Wordpress Error When Trying to Load Site
 
You can search for a relevant solution from google. there are you can find a very much proper answer.

ncodetech 21st December 2018 12:54 AM

Re: Wordpress Error When Trying to Load Site
 
It is because of the new WordPress version arrives in the market. So there may affect some plugin so that plugin not working properly.

parmarjeet 28th December 2018 12:36 AM

RE: Wordpress Error When Trying to Load Site
 
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.

im1217 28th December 2018 03:23 PM

Re: Wordpress Error When Trying to Load Site
 
Where in the theme editor do I find this?


Quote:

Originally Posted by wordpress+expert (Post 11461560)
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>'
)
)


im1217 28th December 2018 03:25 PM

Re: Wordpress Error When Trying to Load Site
 
How do I know which plugins are causing the problem?

Also, how to downgrade my WP version?



Quote:

Originally Posted by parmarjeet (Post 11466798)
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.


lordspace 23rd January 2019 10:00 PM

Re: Wordpress Error When Trying to Load Site
 
contact the theme author


All times are GMT -6. The time now is 07:37 PM.