Getting php error for panel page
wxman - June 14, 2009 - 13:47
| Project: | Custom Breadcrumbs |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I'm getting this error:
Call to undefined function pathauto_cleanstring() in /var/www/clients/client2/web2/web/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs.module on line 324 on a panel page for anonymous users I set up using the Advanced Front Page module. If I change the redirect to another panel page, it still does the same thing. Authenticated users don't get any errors. Anonymous users are able to see other panel pages though.
I really wasn't sure where to post this, since it seems to deal with several different modules.

#1
Can you tell me the version of pathauto that you are using? And what you have entered for breadcrumb titles and paths on pages where this occurs?
#2
I'm using pathauto 6.x-1.1, and I don't have any custom breadcrumb for that page. I made a custom panel page with a URL of just 'home'. I then set it to the default home page for people who haven't signed in yet. There are no breadcrumbs for it at all. let me know if you need anything else, and thanks for the help.
#3
Ok, I have a few more questions.
1. What custom breadcrumb modules do you have enabled, and what configuration settings (at admin/settings/custom-breadcrumbs) are you using?
2.. Are you using the current 6.x-2.x-dev version of custom breadcrumb? Have you applied any of the patches that are under review in the issue queue right now?
If you have multiple custom breadcrumbs modules installed, can you try disabling each one, one at a time, to figure out which one is producing the error on the panels page?
I am trying to recreate this on a test site and will produce a patch for you to test as soon as I can.
#4
1. Custom Breadcrumbs, Custom Breadcrumbs for Paths, Custom Breadcrumbs for Views.
2. I'm using the 6.x-2.x-dev 6/13 version, and no patches.
I will switch off the CB modules one at a time to see what happens. The results are, switching off the one for paths changed nothing, but switching off Custom Breadcrumbs for Views fixed it.
#5
Thanks. I haven't been able to duplicate it yet. Are there any views on the panel pages where the error occurs?
#6
Yes, Two views blocks.
#7
Ok. I still can't duplicate this, but I have a couple of ideas. There are two problems: pathauto.inc isn't loaded, and a custom breadcrumb is being set without a defined custom breadcrumb.
This patch addresses both of those symptoms. Can you try this out and see if it solves the problem?
#8
#9
Hi MGN,
I swear that I posted an answer to your solution, but it doesn't seem to be here.
The patch did the trick. Now I can see the panel home page. Thanks for the great work.
#10
Thanks. Committed to 6.x-2.x-dev.
#11
Automatically closed -- issue fixed for 2 weeks with no activity.