Page 1 of 1
"Unsupported operand types: string + int" on category view
Posted: 04 Sep 2022, 10:07
by Tormentor667
Dear developers,
I am currently having troubles getting Phoca Gallery to work on my environment. The gallery overview works fine but I can not access the single gallery view ("category view") without getting an error message saying "
Unsupported operand types: string + int"
I am running
- Phoca Gallery 4.4.3
- Joomla 3.10.11
- PHP 8
I noticed that the issue disappeares when I change the server to PHP 7.4 but it doesn't work with PHP 8.0 so I guess it's a problem there.
Link to the gallery overview: https://www.gymnasium-rutesheim.de/inde ... pressionen
Link to a single gallery: https://www.gymnasium-rutesheim.de/inde ... -rutesheim
Thanks already for your help and support,
best regards
Re: "Unsupported operand types: string + int" on category view
Posted: 04 Sep 2022, 12:20
by Jan
Hi, if you have upgraded PHP to new version, you should even upgrade Joomla and Phoca Gallery to latest versions (Joomla 4 and Phoca Gallery 4.5). It is not possible to run modern PHP and obsolete Joomla and Phoca Gallery.
So you can run:
PHP 7, Joomla 3 and Phoca Gallery 4
or
PHP 8, Joomla 4 and Phoca Gallery 4.5
but it cannot be mixed newest PHP and old Joomla or Phoca Gallery.
Jan
Re: "Unsupported operand types: string + int" on category view
Posted: 04 Sep 2022, 19:33
by Tormentor667
But why? Joomla 3 is PHP 8 compatible, Phoca Gallery 4.4.3 is PHP 8 compatible and it is also compatible to Joomla 3, so why would I have to use Joomla 4?
Re: "Unsupported operand types: string + int" on category view
Posted: 05 Sep 2022, 11:52
by Tormentor667
Additional Info: The problem is, that I currently can't update to Joomla 4 yet, but the webhost updated to PHP 8, so at least some kind of workaround would help.
Re: "Unsupported operand types: string + int" on category view
Posted: 09 Sep 2022, 01:01
by Jan
But why?
The problem is always time

My resources are very limited and I can add support of newest PHP for newest extensions. If they are all OK, then I can do the same for obsolete extensions. But for now because of time issues I am not able to do it immediately. So if someone can change code for obsolete extensions so they are fine with newest PHP, I will release such updated extension.
Re: "Unsupported operand types: string + int" on category view
Posted: 06 Oct 2022, 17:58
by Tormentor667
I am unfortunately not able to change the code myself but I am willed to pay if you are doing it to be honest. My client needs the gallery working on PHP 8.0 with Joomla running on 3.x
Re: "Unsupported operand types: string + int" on category view
Posted: 08 Oct 2022, 00:36
by Jan
Hi, you can contact me on contact page with detailed information:
https://www.phoca.cz/contact
Jan