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

CommentFileSizeAuthor
#4 error_message-2172451-4.patch1.02 KBSheldon Rampton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lionheart8’s picture

Issue summary: View changes
zirafa’s picture

Hard 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?

zirafa’s picture

Status: Active » Closed (cannot reproduce)
Sheldon Rampton’s picture

Status: Closed (cannot reproduce) » Needs review
FileSize
1.02 KB

I 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.

zirafa’s picture

Status: Needs review » Fixed

Thanks! Patch has been committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.