WordPress.org

Forums

Custom Sidebars
[resolved] Warning Errormessage on local installation (3 posts)

  1. wombelt
    Member
    Posted 1 year ago #

    The Plugin runs on my webserver but local it doesnt work.
    Does anyone know a solution for that Errormessage?

    Warning: Invalid argument supplied for foreach() in C:\...\wp-content\plugins\custom-sidebars\customsidebars.php on line 45

    AND:

    Call Stack
    #	Time	Memory	Function	Location
    1	0.0032	247968	{main}( )	..\plugins.php:0
    2	0.0040	291520	require_once( 'C:\xampp\...\wp-admin\admin.php' )	..\plugins.php:10
    3	0.0044	302448	require_once( 'C:\xampp\...\wp-load.php' )	..\admin.php:30
    4	0.0049	309808	require_once( 'C:\xampp\...\wp-config.php' )	..\wp-load.php:29
    5	0.0058	368664	require_once( 'C:\xampp\...\wp-settings.php' )	..\wp-config.php:88
    6	1.2273	9593040	include_once( 'C:\xampp\...\wp-content\plugins\custom-sidebars\customsidebars.php' )	..\wp-settings.php:210
    7	1.2273	9594176	CustomSidebars->CustomSidebars( )	..\customsidebars.php:1103

    https://wordpress.org/plugins/custom-sidebars/

  2. WPMU DEV
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi @wombelt,

    I hope you are well today and thank you for your question.

    Could you please tell me what problem you are facing using it on local web server?

    Where are you getting this warning message?

    This is a simple PHP warning, it is nothing to worry about!
    Do you have WP_DEBUG set to true in your wp-config.php file?
    If you do then please set it to false.
    This will hide the warning messages and you will be able to use your site normally.

    Kind Regards,

  3. Hey there.

    We haven't heard from you in awhile, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. :)

    Hope you have a fantastic day!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Sidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic