I am getting this in my logs:
ERROR - 2015-02-02 18:36:08 --> Severity: Warning --> Creating default object from empty value /home/admin/web/mysite.com/public_html/OpenVBX/libraries/Plugin.php 61
Plugin.php line 61 is:
$this->config->disabled = isset($this->config->disabled)? $this->config->disabled : false;
Surrounding line 61 is:
if(is_file($this->plugin_path . '/plugin.json'))
{
$config_contents = file_get_contents($this->plugin_path . '/plugin.json');
if(!empty($config_contents))
{
$this->config = json_decode($config_contents);
}
/* Optional arguments should be checked and declared here */
$this->config->disabled = isset($this->config->disabled)? $this->config->disabled : false;
$this->config->name = isset($this->config->name)? $this->config->name : 'Unknown';
$this->config->author = isset($this->config->author)? $this->config->author : 'Unknown';
$this->config->description = isset($this->config->description)? $this->config->description : '';
$this->config->url = isset($this->config->url)? $this->config->url : '';
$this->config->version = isset($this->config->version)? $this->config->version : '';
}
Any ideas on how to fix this? instead of just turning off/lowersing error reporting?
Thanks!