I developed a single plugin that for a while only shows a new entry in a drop down menu. Yesterday my plugin had a function bad defined and that's why poller.php didn't get any value until I resolved this issue.
I'm very surprised about this behaviour because I don't understand that a plugin that shows a new entry in a dropdown menu is so dangerous. I 'm going to explain exactly the error but is a pain that plugins that are only related with the graphical presentation can damage the poller!
I had forget the parentheses:function plugin_init_link2BDCOPS(){
api_plugin_register_hook('link2BDCOPS', 'graph_buttons', 'link2BDCOPS_graph_button', 'setup.php');
api_plugin_register_hook('link2BDCOPS', 'config_arrays', 'link2BDCOPS_config_arrays', 'setup.php');
api_plugin_register_hook('link2BDCOPS', 'draw_navigation_text', 'link2BDCOPS_draw_navigation_text', 'setup.php');
api_plugin_register_hook('link2BDCOPS', 'graphs_action_array', 'link2BDCOPS_graphs_action_array', 'setup.php');
}
I understand I registered a plugin and I associated a function that doesn't exist but what's the problem? I do a very specific mistake or poller.php (with spine) is checking too many things?function link2BDCOPS_graphs_action_array (){
$action['plugin_agrupa_x_institucio'] = 'Agrupa totes les gràfiques d\'una institució';
return $action;
}
Tip: The logs are empty since the moment I forgot the parentheses. I didn't save the output from the poller.php that I run from the crontab.
Thanks