"Unsupported operand types: string + int" on category view

Phoca Gallery - image gallery extension
Tormentor667
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Sep 2022, 10:03

"Unsupported operand types: string + int" on category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: "Unsupported operand types: string + int" on category view

Post 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
If you find Phoca extensions useful, please support the project
Tormentor667
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Sep 2022, 10:03

Re: "Unsupported operand types: string + int" on category view

Post 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?
Tormentor667
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Sep 2022, 10:03

Re: "Unsupported operand types: string + int" on category view

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: "Unsupported operand types: string + int" on category view

Post 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.
If you find Phoca extensions useful, please support the project
Tormentor667
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Sep 2022, 10:03

Re: "Unsupported operand types: string + int" on category view

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: "Unsupported operand types: string + int" on category view

Post by Jan »

Hi, you can contact me on contact page with detailed information:
https://www.phoca.cz/contact
Jan
If you find Phoca extensions useful, please support the project
Post Reply