Hi
I was trying to post some media gallery content & since it appeared not to have been added, I went to the content page admin/content see only to find the error message:
Notice: Trying to get property of non-object in pushtape_ui_node_load() (Zeile 378 von /var/www/html//profiles/pushtape/modules/pushtape_ui/pushtape_ui.module).
Notice: Trying to get property of non-object in pushtape_ui_node_load() (Zeile 378 von /var/www//html/profiles/pushtape/modules/pushtape_ui/pushtape_ui.module)
Notice: Trying to get property of non-object in pushtape_ui_node_load() (Zeile 378 von /var/www/html//profiles/pushtape/modules/pushtape_ui/pushtape_ui.module)..
The content is unrelated to the pushtape specific modules ... I thought. I assumed the error was caused by something I had just added, so I deleted it, but the admin/content page is maintaining the above errors!
What could be causing this & how do I get rid it?
P.S. I did a Google search for the issue using "Notice: Trying to get property of non-object in pushtape_ui_node_load()" & found quite a number of websites using pushtape apparently living with this error ... including this
Thank you in advance
Comment | File | Size | Author |
---|---|---|---|
#4 | error_message-2172451-4.patch | 1.02 KB | Sheldon Rampton |
Comments
Comment #1
lionheart8 CreditAttribution: lionheart8 commentedComment #2
zirafa CreditAttribution: zirafa commentedHard to reproduce this as, but judging by your error message, I wonder if this is related to a default language problem. Are you running any translation modules?
Comment #3
zirafa CreditAttribution: zirafa as a volunteer commentedComment #4
Sheldon Rampton CreditAttribution: Sheldon Rampton at Granicus commentedI encountered this issue and think I know how to reproduce it. The error message appears when viewing Track nodes that have been created that are not part of an album. When that is the case, the variable $track is not an object. It becomes a boolean with a value of false. You can make the error go away if you make the track part of an album, but I was able to fix it by adding an if statement that avoids the error for tracks that are not part of an album. I've attached a patch.
Comment #5
zirafa CreditAttribution: zirafa as a volunteer commentedThanks! Patch has been committed.