Fix wiki errors in development nodes

×

Statusbericht

  • If you have any questions about this page or if you find any errors, please write a message to the support wall and a Labdoo volunteer will help resolve it. Thank you for helping to improve our wiki pages.
  • 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
Prioriteit: 
Normal
Beschrijving: 

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.

Reacties

afbeelding van lisabell
Door lisabell op ma, 02/13/2017 - 10:35

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