2017-04-05, 16:36:58
Hello,
excellent, I'm sure we'll manage that soon.
Let's try following, open /plugins/imanager/lib/CategoryProcessor.php file and comment out the __construct() function. Then, copy and paste
this code instead:
After that, create a new page and show me your log file. Many thanks again!
excellent, I'm sure we'll manage that soon.
Let's try following, open /plugins/imanager/lib/CategoryProcessor.php file and comment out the __construct() function. Then, copy and paste
this code instead:
Code:
public function __construct(CategoryMapper &$category)
{
// initialise categories
$this->category = $category;
if(self::isCategoryValid())
{
$this->is_cat_exist = true;
} else
{
$count = $this->category->countCategories();
Util::dataLog('Category count: '.$count);
Util::dataLog('CategoryMapper: '.print_r($this->category, true));
if($count > 0)
{
$this->is_cat_exist = true;
$cur = current($this->category->categories);
Util::dataLog('Current category: '.print_r($cur, true));
$this->setCategory($cur->id);
} else
{
$this->is_cat_exist = false;
}
}
}
After that, create a new page and show me your log file. Many thanks again!