Basically, the plugin doesn't show anything on the front page, but messed up the configure plugin page.
After adding a generous amount of echos to the plugin code, I've pinpointed the offending line:
Code: Select all
$status = $metar->setCache('file', array('cache_dir' => '/tmp'));
Code: Select all
$status = $metar->setCache('file', array('cache_dir' => $serendipity['serendipityPath'].'/templates_c'));
Since I'm not fluent in php, I can't really tell what has gone wrong here. The only thing I can think of is $metar. But it should have been instantiated because this is called before the offending line:
Code: Select all
$metar->setUnitsFormat($unitString);