1
View single post by chris
 Posted: Thu Nov 21st, 2024 05:13 pm
PM Quote Reply Full Topic
chris
Wrench spinner


Joined: Thu Oct 5th, 2017
Location: Leigh On Sea
Posts: 642
Status: 
Offline
Reputation: 
Reputation Points: $user_rep
I just altered the code slightly to make sure it did not throw an error - not sure what you did differently, the error messages don't provide a full trail and I could not replicate the error myself.

This is what I see in the error log -

[21-Nov-2024 11:51:22 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string / string in /home/zeroredl/ford-rangers.com/lib.php:1909

Stack trace:
#0 /home/zeroredl/ford-rangers.com/view_user.php(167): page_offset('%27', '40', '31')
#1 /home/zeroredl/ford-rangers.com/view_user.php(449): display_posts_by_user(Array)
#2 {main}
  thrown in /home/zeroredl/ford-rangers.com/lib.php on line 1909

So all I did was to make sure any empty strings are converted to empty arrays. 



____________________
MG power