PHP Warning on debug
-
Hello,
Sorry for my English,With WordPress on Debug mode, I have php warning in debug.log when I’m going to “appearance -> personalize”.
It’s maybe my theme who load useless function (oceanWP).All the warnings are about the public function form( $instance ) in osm-widget.php.
The $instance array is empty, it create 44 errors (one for each $instance[] in the HTML form).I simply add “if(isset($instance) and !empty($instance)) {” before the html code and “}” at the end for stop the 540 lines in debug.log everytime I’m going to “personalize”.
Thanks you,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Warning on debug’ is closed to new replies.