Support » Plugin: Heartbeat Control » Error notices when no location is selected

  • Resolved Constantin Boiangiu

    (@constantinboiangiu)


    Hi,

    The plugin works fine, the only problem is that it issues a couple of error notices when debug is on in method Heartbeat::check_location():

    PHP Warning: in_array() expects parameter 2 to be array, null given in …\heartbeat-control\heartbeat.php on line 44

    If no location is selected in plugin settings, this notice is triggered. Once this is solved, another notice is issued in method Heartbeat::maybe_disable():

    Undefined index: heartbeat_control_location in ..\heartbeat-control\heartbeat.php on line 58

    These 2 notices won’t prevent the plugin from working as expected but they will get logged into the error log and increase its file size.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error notices when no location is selected’ is closed to new replies.