sorry, the correct code is:
// do the magic
add_action('plugins_loaded', 'toc_init', 12);
function toc_init() {
global $tic;
$tic = new toc();
}
this helped me.
change the last line in toc.php from:
// do the magic
$tic = new toc();
To this:
// do the magic
add_action('plugins_loaded', 'toc_init', 12);
function toc_init() {
global $toc;
$toc = new toc();
}