I have node type 'video' and I have View with 'video' path in it.
I'm add custom breadcrumb to node type 'video', then I try add custom breadcrumb to Views with 'video' url and I have this error in log:
Cannot access empty property in /www/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs.admin.inc on line 105

When I deleted last entry from database with phpmyadmin, error gone away.

Comments

MGN’s picture

Status: Active » Postponed (maintainer needs more info)

Are you working from the most recent 6.x-2.x-dev code ? Looking at the current code, its not clear how this error could come from line 105. Could you copy and paste that line of code from your installation in a reply so I can better understand. Otherwise, could you make sure you have the current 6.x-2.x-dev installed and verify that their is still a problem.

Also, can you tell me the complete path for path for each breadcrumb, and what custom_breadcrumb submodules you have enabled. Thanks.

dicreat’s picture

I'm using latest 6.x-2.x-dev with submodules "Custom Breadcrumbs for Paths" and "Custom Breadcrumbs for Views".

At the /admin/build/custom_breadcrumbs I have entry
Name ='video' with Page type='node' - its work fine, I see breadcrumbs at the video's node.

Then I try add new entry at the 'Views Pages' /admin/build/custom_breadcrumbs/views/add, select in Views Path 'video', and after submitting I see error above.

I'm use 'video'-views to organize a video-nodes, and they must be with the same breadcrumbs in navigation.

Line 105 in custom_breadcrumbs.admin.inc:
if ($bc1->$options[0] == $bc2->$options[0]) {

MGN’s picture

Status: Postponed (maintainer needs more info) » Active

Thanks. That helped. I've confirmed the problem and will post a patch shortly.

MGN’s picture

Status: Active » Fixed

Forgot to reindex an array. The fix has been committed in cvs. A patch can be found at

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/custom_brea...

notebene’s picture

Where do you get these 'sub modules'?

MGN’s picture

They are distributed as part of the 6.x-2.x-dev custom breadcrumbs package. When you unpack the tarball, they will show up in their own subdirectories under .../modules/custom_breadcrumbs and can be enabled independently, in the usual way.

notebene’s picture

Got it, thanks.

dicreat’s picture

MGN, thanks!

Status: Fixed » Closed (fixed)

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