Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Phoca Cart - complex e-commerce extension
geldolto
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Nov 2025, 19:11

Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Post by geldolto »

I've started Phoca Cart for a short time. Worked a long time with J2store. Phoca Cart is much more better. Easier to configure. Very stable and all the parameters I need.

Error: 0 Unsupported operand types: int / string
The error is already mentioned in this forum for Phoca Gallery but is also valid for Phoca Cart.
Solution: the value for Pagination Default Value (Category View) needs to be a number. Text as “all” is not allowed.
My System information
Joomla! Version: Joomla! 5.4.1 Stable
PHP version :8.2.29
Databasetype: mysql
Phoca Cart information: Version 5.2.3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Post by Jan »

Hi, can you enable debug mode on your site and add the debug info here, to get info where this occurs.

Thank you.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Post by Jan »

BTW, as mentioned here: viewtopic.php?t=64908 Did you check the value? if it is number?

Jan
If you find Phoca extensions useful, please support the project
geldolto
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Nov 2025, 19:11

Re: Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Post by geldolto »

Hi,
I added the solution. Solution: the value for Pagination Default Value (Category View) needs to be a number. Text as “all” is not allowed.
This entry is only to help other people having the same problem in Phoca Cart. To find the solution it took me a lot of time and stress. I first thought that it was a problem caused by the provider.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in Phoca Cart “0 Unsupported operand types: int / string” in front side. Back side OK. PHP 8.2

Post by Jan »

Ok, thank you for the info, since 6.1.0 this is protected against strings.

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