Hi there,

Thanks for your work on this module. I installed the 6.x dev today and got some errors while viewing content.

The errors below came up while viewing a node of a content type that was not designated as having a custom breadcrumb at all, so I'm not sure why it came up.

I only had one breadcrumb designated on the site for nodes of a different content type, which used a token as the title and as the link.

The error did come up consistently until I disabled the module.

Any suggestions would be appreciated.

--------------

* warning: array_shift() [function.array-shift]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 38.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 43.
* warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 45.
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 38.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 43.
* warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 45.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module on line 187.

Comments

MGN’s picture

Can you test the following patches? I think this should prevent these warnings. Thanks!

MGN’s picture

Status: Active » Needs review
TC44’s picture

Hi MGN,

I will certainly do that. I'll enable cb again and try and reproduce the errors, then test the patches later today.

Thanks again!

TC44’s picture

After applying the patches, the taxonomy errors went away, but the others still persist.
So I still get:

* warning: array_shift() [function.array-shift]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 38.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 43.
* warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 45.
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 38.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 43.
* warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs_common.inc on line 45.

TC44’s picture

MGN,

I'm going to reinstall CB and run the patches again to double check. I'll give you an update once I've done that.

Thanks again

MGN’s picture

@TC44, any update on this?

MGN’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x-dev for further testing. http://drupal.org/cvs?commit=254122 . Please reopen if these patches did not fix the original problem.

TC44’s picture

@MGN,

Sorry, I got sidetracked on other things with the build and haven't gone back to testing custom breadcrumbs yet. I'll try and test again tomorrow.

Thanks!

grsilverman’s picture

Status: Fixed » Needs work

I'm getting the same messages after installing a print module update. On my local test site, everything's fine. On my live site, I get the same messages.

MGN’s picture

Status: Needs work » Fixed

Assuming that this is ok now in the latest code since there hasn't been followup. If you are still getting warnings, please open a new issue.

Status: Fixed » Closed (fixed)

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