Hi Andreea,
I have moved from PHP8.1 to PHP7.4. Then it worked, but I got this warning in the logs “A non-numerical value was encountered”
Since PHP7 is EOL, I’m back on PHP8.1 and no longer do the paging with Otton but with the “query loop” and my own template.
TL;DR it works with PHP7.4 – but I wouldn’t recommend it to anyone since all versions of PHP7 are EOL.
Otter should upgrade all of its PHP code to PHP8.
I found this out:
The error you’ve provided only occurs on PHP 8 and it is because you’re trying to add a string to an integer. In previous versions the error message used to be “A non-numeric value encountered” which in some situations made the issue a lot clearer.
In PHP v5.6 you would receive no error at all (and the code would work fine)
In PHP v7 you would be informed with a WARNING that “A non-numerical value was encountered”
In PHP v8 you are informed with a FATAL error that “Uncaught TypeError: Unsupported operand types: string + int”