Title: PHP Warning on debug
Last modified: October 25, 2022

---

# PHP Warning on debug

 *  [guiver01](https://wordpress.org/support/users/guiver01/)
 * (@guiver01)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-on-debug-2/)
 * 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,
    -  This topic was modified 3 years, 7 months ago by [guiver01](https://wordpress.org/support/users/guiver01/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [MiKa](https://wordpress.org/support/users/photoweblog/)
 * (@photoweblog)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-on-debug-2/#post-16198828)
 * Hi [@guiver01](https://wordpress.org/support/users/guiver01/)
 *  thanks for this info! Can you contact us here:
 * [https://wp-osm-plugin.hyumika.com/contact/](https://wp-osm-plugin.hyumika.com/contact/)
 * and provide your file with the modifications?
 * Tahnks & br, Michael

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning on debug’ is closed to new replies.

 * ![](https://ps.w.org/osm/assets/icon-256x256.png?rev=2087144)
 * [OSM - OpenStreetMap](https://wordpress.org/plugins/osm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/osm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/osm/)
 * [Active Topics](https://wordpress.org/support/plugin/osm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/osm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/osm/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MiKa](https://wordpress.org/support/users/photoweblog/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-on-debug-2/#post-16198828)
 * Status: not resolved