Page 1 of 1

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

Posted: 06 Jan 2026, 19:04
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

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

Posted: 06 Jan 2026, 23:09
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

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

Posted: 06 Jan 2026, 23:15
by Jan
BTW, as mentioned here: viewtopic.php?t=64908 Did you check the value? if it is number?

Jan

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

Posted: 09 Jan 2026, 01:24
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.

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

Posted: 09 Jan 2026, 02:25
by Jan
Ok, thank you for the info, since 6.1.0 this is protected against strings.

Jan