Answer the question
In order to leave comments, you need to log in
The problem with PHP on the site is Illegal string offset. What to fix?
After updating Modx 1.0.5 -> 1.2.1, there was a problem with the ManagerManager plugin. The error reads: Illegal string offset 'template' in site root/www/assets/plugins/managermanager/mm.inc.php on line 84 . With what it can be connected? Lines 83 - 85 attached, PHP 5.6
$mm_current_page = array();
$mm_current_page['template'] = isset($_POST['template']) ? $_POST['template'] : isset($content['template']) ? $content['template'] : $default_template;
$mm_current_page['role'] = $_SESSION['mgrRole'];
Answer the question
In order to leave comments, you need to log in
In $_POST
or in $content
you are crap, and there are no `template` indexes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question