This is much the same issue as another previously. Thought I would repost. It seems a few of us are having same problem.
this is the errors.
Warning: Illegal string offset 'name' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'type' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'creationDate' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'author' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'copyright' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'authorEmail' in /home/ncourts/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 /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'authorUrl' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'version' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'description' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'group' in /home/ncourts/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 /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
Warning: Illegal string offset 'filename' in /home/ncourts/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38
When I look at version # and author etc. they are blank.
I am running 3.6 now and php version 7
Any help on this?
Many warnings after 3.5
-
- Phoca Member
- Posts: 15
- Joined: 11 Feb 2015, 22:32
Re: Many warnings after 3.5
OK. Sorry. I read another post which was answered. I did the same and solved this.
I went into
Global Config
Server.
turned off error reporting. (none)
saved and all is well.
solved
I went into
Global Config
Server.
turned off error reporting. (none)
saved and all is well.
solved
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Newbie
- Posts: 2
- Joined: 25 Aug 2017, 10:38
Re: Many warnings after 3.5
"turned off error reporting" ? That's like turning your head away from the problem.
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Many warnings after 3.5
Hi,
There is a version which is not ready for the latest PHP. And this version displays development warnings for developers. So until there will be new version which is ready for the latest PHP, you should turn off the warnings for developers so they will be not displayed on your site.
1) First of all - these are warnings for developers only and they should be turned off for production sites. Always turn off development warnings on production sites.
2) These warnings are here to change the code for next version of the component. When it will be ready, it will be based on these warnings and will be ready for the latest PHP
I don't understand what is "turning head from the problem" in case we add the advice to the user that he should turn off warnings which are not intended to him but to developers. These warnings are here as the base for next version so the next version of the component is compatible with the newest PHP.
"Turning head from the problem" will be in case, when I as developer will disable such warnings when developing the component which is of course nonsense and as you can see in other new Phoca extensions, they are ready for PHP 7.1 because I test them all on PHP 7.1. But unfortunately I have not time machine to change the extensions which were made in past when PHP 7.1 didn't exist. So this is why the only one clue advice is to hide development warnings in production site and wait for newest version.
I really don't understand how this correct advice can evoke the statement "That's like turning your head away from the problem"? Warning is not a problem, warning is information for developer so he should change the code to be compatible with newest PHP version in the future. Really no idea what is a problem to hide information which is not intended to me or to visitors of my website?
Jan
not sure, if you understand the point."turned off error reporting" ? That's like turning your head away from the problem.
There is a version which is not ready for the latest PHP. And this version displays development warnings for developers. So until there will be new version which is ready for the latest PHP, you should turn off the warnings for developers so they will be not displayed on your site.
1) First of all - these are warnings for developers only and they should be turned off for production sites. Always turn off development warnings on production sites.
2) These warnings are here to change the code for next version of the component. When it will be ready, it will be based on these warnings and will be ready for the latest PHP
I don't understand what is "turning head from the problem" in case we add the advice to the user that he should turn off warnings which are not intended to him but to developers. These warnings are here as the base for next version so the next version of the component is compatible with the newest PHP.
"Turning head from the problem" will be in case, when I as developer will disable such warnings when developing the component which is of course nonsense and as you can see in other new Phoca extensions, they are ready for PHP 7.1 because I test them all on PHP 7.1. But unfortunately I have not time machine to change the extensions which were made in past when PHP 7.1 didn't exist. So this is why the only one clue advice is to hide development warnings in production site and wait for newest version.
I really don't understand how this correct advice can evoke the statement "That's like turning your head away from the problem"? Warning is not a problem, warning is information for developer so he should change the code to be compatible with newest PHP version in the future. Really no idea what is a problem to hide information which is not intended to me or to visitors of my website?

Jan
If you find Phoca extensions useful, please support the project