K2 Add New Item not working
Trying K2 for the first time, I was welcomed by a strange problem: the "Add new item" button (only this one!) gave a blank page as output... I checked the log file, and I noticed that everything was caused by a "FATAL ERROR" executing the SEO Simple Plugin. It seems that it refers to JSite to know if it's executed on the frontpage: the problem is that JSite is not defined in the K2 backend. To solve the problem, I had to rewrite the isFrontPage() function (in the SEO Simple Plugin), in the following way:
function isFrontPage()
{
if (defined('JSite')) {
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
return true;
}
return false;
} else {
return false;
}
}





