(repost from plugins-forum)
--
I'm the author of a plugin (wp-youtube-lyte) which seems to work on the majority of installations.
There are however a few instances where a "Call to undefined function add_action() in options.php on line 2" is generated. Indeed, options.php opens with;
<?php
add_action('admin_menu', 'lyte_create_menu');
function lyte_create_menu() {
...
Is there anything wrong with the code? Is there any way to work around this error? Or is this due to (mis-)configuration of the blog instance and so entirely out of my hands?