Page 1 of 1

Phoca Download Control Panel - Warnings

Posted: 27 May 2017, 15:27
by rush_tech
Hi
I'm looking for some help with some warnings that have appeared on the Control panel at the top see below, I've downloaded the install again and had a look at line 38 in the utils.php they appear to be the same.

Can anyone help please? I don't appear to be able to see what version it is in the component I tried installing again with no luck

Code: Select all

Warning: Illegal string offset 'name' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'type' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'creationDate' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'author' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'copyright' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'authorEmail' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Cannot assign an empty string to a string offset in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'authorUrl' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'version' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'description' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'group' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Cannot assign an empty string to a string offset in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Warning: Illegal string offset 'filename' in /var/sites/h/site/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38

Re: Phoca Download Control Panel - Warnings

Posted: 27 May 2017, 17:21
by christine
rush_tech wrote: 27 May 2017, 15:27 I've downloaded the install again and had a look at line 38 in the utils.php they appear to be the same.
Are you using Joomla Version 3.7.2? (current version) because utils.php exists on ca. line: 31.
J 3.7.1. was an important security release and 3.7.2 followed by some J Core bug release.

Concerning your "Warnings" > these are important information for developers. It seems, that you are using PHP version 7.1?

a) you could set the warnings in backend > System > Global Configuration > Server > Error Reporting > None.

b) and/or change following in line 38 resp. 31 .../administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php
from:

Code: Select all

$xml_items = '';
to:

Code: Select all

$xml_items = array();  
Pls adv. for information to Jan. Thank you & kind regards,
Christine

Re: Phoca Download Control Panel - Warnings

Posted: 27 May 2017, 19:04
by Jan
Hi, seems like you are using PHP 7.1 on your server. Until there is no new version for PHP 7.1, just disable development warnings in Global configuration of your Joomla!

https://www.phoca.cz/documents/50-phoca ... tic-method
Jan

Re: Phoca Download Control Panel - Warnings

Posted: 13 Jun 2017, 16:30
by rush_tech
Hi
Sorry its taken me so long to get back. Thanks for the replies. Ok so I've turned off error reporting and that has got rid of the warnings

Re: Phoca Download Control Panel - Warnings

Posted: 13 Jun 2017, 22:52
by Jan
Ok