Warning Illegal string offset on default admin page

dvestezar
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Jun 2017, 09:23

Warning Illegal string offset on default admin page

Post by dvestezar » 19 Jun 2017, 09:38

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: 38548
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning Illegal string offset on default admin page

Post by Jan » 21 Jun 2017, 16:14

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

Who is online

Users browsing this forum: No registered users and 1 guest