kendraio / kendra_home

Kendra Home
https://www.kendra.io
GNU General Public License v2.0
2 stars 2 forks source link

Issues with project book #36

Open BBGuy opened 9 years ago

BBGuy commented 9 years ago

As part of a recent update we have hit the following errors on the Kendra Hub project page only:

Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
Notice: Trying to get property of non-object in node_page_title() (line 2201 of /private/var/www/kendra/home/htdocs/modules/node/node.module).
BBGuy commented 9 years ago

Debugging this shows that instead of a node object the node_page_title() gets a node id. When attempting to figure out why this is the only page we are getting the issue for we have realised its the only project that is part of a book

BBGuy commented 9 years ago

Debugging this shows that instead of a node object the node_page_title() gets a node id. When attempting to figure out why this is the only page we are getting the issue for we have realised its the only project that is part of a book

BBGuy commented 9 years ago

@andystiller Tracked the root to a call from bootstrap $tree = menu_build_tree($book_link['menu_name']); in function _bootstrap_book_children($book_link) { and changing the theme removes the errors however this is unlikely to be the root of the problem.

BBGuy commented 9 years ago

found a related issue https://www.drupal.org/node/2302513 and it is vary likely to be an issue with the title. In our case the title is controlled by the safewords module.

BBGuy commented 9 years ago

Looks like this is a core issue https://www.drupal.org/node/1697570 with two possible patches: 29: https://www.drupal.org/node/1697570#comment-7940173 22: https://www.drupal.org/node/1697570#comment-7554627

BBGuy commented 9 years ago

Patch fixes the issue