How to reproduce:

- install page title module
- log out of Drupal, visit /admin (as anonymous)

Im also using logintoboggan and my 403 page is set to /toboggan/denied.

Result:

Unsupported operand types in C:\Inetpub\wwwroot\icescan.com\includes\common.inc on line 1589

The reason is, somehow the l() function (for the page breadcrumb) passes and empty $options, which can only be an array.

Uncommenting this line in page_title.module:

// drupal_alter('page_title', $title);

...temporarily solves the problem (I know it breaks the hook_page_title_alter for other modules)

So what is going on here? I think page module is trying to set a title without a proper breadcrumb.

Comments

Anonymous’s picture

I found out the problem is actually in:

    // If we still have no title, fall back to the title provided by Drupal Core
    if (empty($title)) {
      $title = drupal_get_title();
    }

drupal_get_title() causes the break in common.inc... why would it do that?

I also noticed that with Page Title module, the drupal_get_title() wants to output "Administer" on /admin, but without Page Title it shows "Access Denied / User Login".

I think there is permissions issue: Page Title module tries to show a title + breadcrumb which the user has no access to (/admin). So we should create a title access check in page_title.module, somehow.

Or disable page-title module on any admin* pages.

Also, I noticed that Page Title module interferes with Search404 module for the same reason: trying to set a broken breadcrumb/title, causing a crash in common.inc.

nicholasThompson’s picture

Status: Active » Postponed (maintainer needs more info)

Page Title doesn't touch the Breadcrumbs and I have just installed a vanilla Drupal 6.19, Page Title 6.x-2.x-dev and LoginToboggan-6.x-1.7 and cannot replicate this error.

Are you using any other modules which could be altering the breadcrumb?