Page 1 of 1

Warning Illegal string offset on default admin page

Posted: 19 Jun 2017, 09:38
by dvestezar
file : administrator/components/com_phocacommander/helpers/phocacommander.php
line : 56
phocacommander version 3.0.2
joomla version 3.7.2
PHP 7.1.6

This warning appear when PHP warnings and erros enabled. My suggest is add one line between 54 and 55 to change variable type.

Code: Select all

if ($data = JApplicationHelper::parseXMLInstallFile($folder.DS.$xmlfile)) {
	>>> $xml_items=[];
	foreach($data as $key => $value) {
I'm little annoyed when I must scroll till command window for a half hour ;)

Re: Warning Illegal string offset on default admin page

Posted: 21 Jun 2017, 16:14
by Jan
Hi, thank you for the info. There is still no version for PHP 7.1 - so for now just disable these development warnings in Joomla! Global configuration. I will make next version ready for PHP 7.1
https://www.phoca.cz/documents/50-phoca ... tic-method
Jan