K
K
Kenaser2018-05-02 18:59:23
PHP
Kenaser, 2018-05-02 18:59:23

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

1 answer(s)
P
profesor08, 2018-05-02
@profesor08

In $_POSTor in $contentyou are crap, and there are no `template` indexes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question