79072188

Date: 2024-10-09 22:07:43
Score: 0.5
Natty:
Report link

I think @James is right. Basically : in the show($id), the value of $post is not the object you are expecting from the DB, it is false. And when you try to read the property userid from false instead of an object, it gives you this error. There are some things to check :

I think you'll be able to solve your problem with that.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @James
  • Low reputation (0.5):
Posted by: Azog Mugen