The page_title mechanism fails when viewing nodes, but not when editing them. This bug has existed in page_title 2 since alpha 2, IIRC.

Something in the way that modules are cached (or something) breaks.

The fix for this is to add token_get_values('global', NULL, TRUE); before any calls to process the token substitution.

There is either something weird in the way that Eaton uses tokens in those two modules listed, or in the way that P_T implements tokens.

Comments

nicholasthompson’s picture

Version: 5.x-2.0-alpha5 » 5.x-2.x-dev
Assigned: Unassigned » nicholasthompson
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.2 KB

Please test this patch against DRUPAL-5--2

Issue cause: Other modules which are weighted 'lighter' (due to them beginning with, for example, the letter C rather than P) cause the Token Module to cache the token results BEFORE page_title had a chance to internally cache the viewed node. This means the token values did not have access to the node and therefore resorted to the default title provided by drupal_get_title.

This solves the problem by removing the internal cache and simply checking that the path is node/{nid}.

nicholasthompson’s picture

Status: Needs review » Fixed

Fixed in Alpha 6

nicholasthompson’s picture

Fixed in Alpha 6

Anonymous’s picture

Status: Fixed » Closed (fixed)

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