Warning Illegal string offset on default admin page

Phoca Commander - dual panel file manager for Joomla! CMS
dvestezar
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Jun 2017, 09:23

Warning Illegal string offset on default admin page

Post 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 ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning Illegal string offset on default admin page

Post 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
If you find Phoca extensions useful, please support the project
Post Reply