Skip to main content
Topic: Error Notice: Trying to get property of non-object (Read 1447 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Error Notice: Trying to get property of non-object

Hi,
2 errors like this this morning : Trying to get property of non-object ! One from a user and one from the admin.
    albator
    Lundi 30 Avril 2018, 19:01:21
    IP

    wKUr2t1XX1zq7ey6xYlyw6btq2L9zadJ
    Type d'erreur: Générale
    Notice: Trying to get property of non-object

    https://augras.eu/puppy_forum/index.php?action=mentions;sa=fetch;api=json;lastsent=0

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/CacheMethod/Filebased.php
    Ligne: 109

Code: [Select]
109: 	if ($value->expiration < time())

Philippe

Re: Error Notice: Trying to get property of non-object

Reply #1

Its possible that the decode fails .... you can try changing line 109 to
Code: [Select]
				if ($value === null || $value->expiration < time())

Re: Error Notice: Trying to get property of non-object

Reply #2

I just change the code : wait and see !
Thank you Spuds,
Philippe

Re: Error Notice: Trying to get property of non-object

Reply #3

cool ... hope that takes care of it.

Re: Error Notice: Trying to get property of non-object

Reply #4

Nothing new until now : i hope it'is ok.
Philippe