Page 1 of 2
Error in Phoca Gallery Plugin !
Posted: 29 Oct 2017, 19:08
by rbuelund
I have inserted the following code in an article: {phocagallery view=categories|imagecategories=1|imagecategoriessize=0|hidecategories=61}
Latest Phoca Gallery is installed and activated. I get this error when trying to view the article:
[] operator not supported for strings
I use J! 3.8.1 and PHP: 7.1
EDIT: I just tried to change to PHP 7.0 and then it works - this plugin needs updating
Re: Error in Phoca Gallery Plugin !
Posted: 30 Oct 2017, 00:24
by Jan
Hi, can you paste exact error message so I can take a loo at it.
Jan
Re: Error in Phoca Gallery Plugin !
Posted: 30 Oct 2017, 07:08
by rbuelund
"[] operator not supported for strings " - is the exact error. WIth maximum error rapporting I get nothing more.
Re: Error in Phoca Gallery Plugin !
Posted: 01 Nov 2017, 01:02
by Jan
Can you paste a screenshot? Usually the error messages include the file path and the line
Jan
Re: Error in Phoca Gallery Plugin !
Posted: 01 Nov 2017, 07:16
by rbuelund
Sorry - there is nothing else than that line i have sent earlier. And that is nomatter what debug level I use.
Re: Error in Phoca Gallery Plugin !
Posted: 02 Nov 2017, 08:54
by rbuelund
Here is another example of an error when the system is running PHP 7.1.
Two examples of what happens when pressing on Image in the Gallery plugin:
Here the system is running PHP 7.0:
Here the system is running PHP 7.1:
Re: Error in Phoca Gallery Plugin !
Posted: 02 Nov 2017, 18:53
by Jan
Hi, hmmm, testing now on PHP 7.1 - I don't get any such problem:
I cannot imagine that PHP version will have some impact on CSS (try to see your loaded CSS if some is not somehow loaded only when PHP 7.1 is running
)
Jan
Re: Error in Phoca Gallery Plugin !
Posted: 03 Nov 2017, 09:21
by rbuelund
Well the css that is affecting this is different when switching PHP version:
PHP 7.1:
img[Attributes Style] {
width: 5px;
height: 5px;
}
PHP 7.0:
img[Attributes Style] {
width: 50px;
height: 5px;
}
I belive that there must be some code generating the above CSS ??
Re: Error in Phoca Gallery Plugin !
Posted: 03 Nov 2017, 23:26
by Jan
Can you paste the exact CSS code so I can locate it?
The image in PHP 7.1 has got this style:
Code: Select all
<img src="...images/phocagallery/.../thumbs/phoca_thumb_s_001.jpg?imagesid=13281bedfe782c4f34cb8e32c728fc36" width="50" height="50" alt="">
Thank you, Jan
Re: Error in Phoca Gallery Plugin !
Posted: 03 Nov 2017, 23:51
by rbuelund
Her you can see the html that is generated when running PHP 7.1