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

MGN - June 14, 2009 - 18:39
Status:active» postponed (maintainer needs more info)

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

wxman - June 16, 2009 - 22:22

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

MGN - June 17, 2009 - 01:19
Category:support request» bug report

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

wxman - June 17, 2009 - 02:14

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

MGN - June 19, 2009 - 17:29

Thanks. I haven't been able to duplicate it yet. Are there any views on the panel pages where the error occurs?

#6

wxman - June 19, 2009 - 19:07

Yes, Two views blocks.

#7

MGN - June 20, 2009 - 03:09

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?

AttachmentSize
491326_php_error.diff 3.53 KB

#8

MGN - June 20, 2009 - 03:15
Status:postponed (maintainer needs more info)» needs review

#9

wxman - June 21, 2009 - 18:07

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

MGN - June 26, 2009 - 12:38
Status:needs review» fixed

Thanks. Committed to 6.x-2.x-dev.

#11

System Message - July 10, 2009 - 12:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.