Closed (fixed)
Project:
Page Title
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
19 Feb 2008 at 11:58 UTC
Updated:
31 Jul 2008 at 04:46 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | page_title_fix_get_title_error.patch | 2.2 KB | nicholasthompson |
Comments
Comment #1
nicholasthompsonPlease 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}.
Comment #2
nicholasthompsonFixed in Alpha 6
Comment #3
nicholasthompsonFixed in Alpha 6
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.