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
Error in Phoca Gallery Plugin !
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error in Phoca Gallery Plugin !
Hi, can you paste exact error message so I can take a loo at it.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Error in Phoca Gallery Plugin !
"[] operator not supported for strings " - is the exact error. WIth maximum error rapporting I get nothing more.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error in Phoca Gallery Plugin !
Can you paste a screenshot? Usually the error messages include the file path and the line
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Error in Phoca Gallery Plugin !
Sorry - there is nothing else than that line i have sent earlier. And that is nomatter what debug level I use.
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Error in Phoca Gallery Plugin !
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:
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:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error in Phoca Gallery Plugin !
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Error in Phoca Gallery Plugin !
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 ??
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 ??
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error in Phoca Gallery Plugin !
Can you paste the exact CSS code so I can locate it?
The image in PHP 7.1 has got this style:
Thank you, Jan
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
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Error in Phoca Gallery Plugin !
Her you can see the html that is generated when running PHP 7.1