On a clean install it gives an error after making a 'plan'. It tries to make a breadcrumb based an a null nid, which obviously doesn't give a node you can use as an object.

The error:

Notice: Trying to get property of non-object in _dvg_global_set_breadcrumb_nid() (line 80 of /var/www/paul/dvg/profiles/dvg/modules/features/dvg_global/dvg_global.helpers.inc).

In the specific code:

  // Fallback breadcrumb if the node is not part of a menu.
  if (count($breadcrumb) == 1) {
    $node = node_load($nid);
    $breadcrumb[] = l($node->title, 'node/' . $node->nid);
    drupal_set_breadcrumb($breadcrumb);
  }

$nid = null, which results in $node being FALSE

Comments

pburg created an issue. See original summary.

paulvandenburg’s picture

StatusFileSize
new2.69 KB

Workaround to fix the error. When the nid is null.

  • ralphvdhoudt committed 2e646e2 on 7.x-1.x authored by pburg
    Issue #2803967 by pburg: Error on a 'plan' page due to breadcrumb issues
    
ralphvdhoudt’s picture

Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Assigned: paulvandenburg » Unassigned
Status: Active » Fixed

Reviewed and committed

Status: Fixed » Closed (fixed)

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