Fix wiki errors in development nodes

×

Status message

You are not a member of this team. If you want to be part of this team, click on 'Subscribe to this team'.
Type: 
Website bug
Status: 
Resolved
Priority: 
Normal
Description: 

Go to https://dev.labdoo.org/content/about-labdoo you will see the error: 'Notice: Trying to get property of non-object in node_page_title() (line 2202 of /var/www/lbd/modules/node/node.module).'

It appears that somewhere we are passing the node UD to node_page_title() instead of an actual node.

Adding this code:

function node_page_title($node) {
if(!property_exists($node, 'title'))
labdoo_lib_print_array($node);
return $node->title;
}

Will print this message:

70

Which is the node ID of about-labdoo page.

Comments

lisabell's picture
Submitted by lisabell on Mon, 02/13/2017 - 10:35

I verified that this ticket is resolved. I am closing the ticket.
Cheers
Lisa