Hmm where to start.
First off I know this table is in my DB, I have confirmed that. I ahve set this module up with no problems on 4 other sites, but this one site doesnt like it.
I am at wits end and really have no idea why its not working.
It even creates the title fields properly. I can navigate into the DB and see where my created title tags are, however they are not being used on the front end of the site.
Comments
Comment #1
nicholasthompsonDo you have Custom Breadcrumb? I found out yesterday that this module breaks it...
I have a 'hack' fix but I want to find a better one.
What other modules do you have installed?
Just so you know - the bug Page Title 2 and Custom Breadcrumb is that Custom Breadcrumb loads up the tokens with values on a node-level. Token module then caches these results. Page Title 2 then looks up the title but the Page Title is already set from the cache... but incorrectly (likely a bug in my token implementation). The fix is to add a line to the Page Title function which gets the title from the tokens. I dont have the code with me right now (its on a work dev server). I'll try to post it tomorrow.
Comment #2
BrianChappell commentedDont have Custom Breadcrumb.
I have installed the same modules on all the other domains that I had success with it.
These are what I have:
BlockBar 5.x-0.1
Global Redirect 5.x-1.1
Google Sitemap 5.x-1.11
Meta tags 5.x-1.5
Page Title 5.x-2.0-alpha2
Related Links 5.x-1.0
TinyMCE 5.x-1.9
Token 5.x-1.9
ALso I am using drupal 5.3
---------
Not sure if this makes a difference, but. The site in question is stored inside a folder, not in the root. Essentially I am allowed to have more then 1 site on my hosting account so they store your site in a folder. That is the only difference I can think of b/t all the other sites that work and this one.
I can pull up the DB statistics if needed, just let me know.
-------------
I am just going to apend the code in the template.php file
<?php
// $Id: template.php,v 1.4.2.1 2007/04/18 03:38:59 drumm Exp $
/**
* Sets the body-tag class attribute.
*
* Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed.
*/
function phptemplate_body_class($sidebar_left, $sidebar_right) {
if ($sidebar_left != '' && $sidebar_right != '') {
$class = 'sidebars';
}
else {
if ($sidebar_left != '') {
$class = 'sidebar-left';
}
if ($sidebar_right != '') {
$class = 'sidebar-right';
}
}
if (isset($class)) {
print ' class="'. $class .'"';
}
}
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '
';
}
}
/**
* Allow themable wrapping of all comments.
*/
function phptemplate_comment_wrapper($content, $type = null) {
static $node_type;
if (isset($type)) $node_type = $type;
if (!$content || $node_type == 'forum') {
return '
';
}
else {
return '
'. t('Comments') .'
'. $content .'
';
}
}
/**
* Override or insert PHPTemplate variables into the templates.
*/
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '';
$output .= "
\n". $secondary ."
\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
////////////////////////////////////page title code////
if (module_exists('page_title')) {
$vars['head_title'] = page_title_page_get_title();
}
////////////////////////////////////page title code////
return $vars;
}
return array();
}
/**
* Returns the rendered local tasks. The default implementation renders
* them as tabs.
*
* @ingroup themeable
*/
function phptemplate_menu_local_tasks() {
$output = '';
if ($primary = menu_primary_local_tasks()) {
$output .= "
\n". $primary ."
\n";
}
return $output;
}
Comment #3
nicholasthompsonAh - are you using he alpha2 branch or the dev branch?
You issue was tagged to dev which DOES work (its in use on www.pponline.co.uk).
alpha2 has bugs (hence is being alpha) and doesn't work properly. I'm waiting to fix 1 last known bug with dev before making alpha3.
Try the dev one if you're not using it already...
Comment #4
BrianChappell commentedYea I was using alpha.
I tried installing Page Title 5.x-1.1
I overwrote the files, and even dropped the old table in the DB, then ran the query to re instantiate the page_title field in the Db. No luck
its just odd b/c I never had any problems on my other sites.
Comment #5
BrianChappell commentedAny other thoughts on this? Let me know if you need more information to help solve this issue.
Comment #6
nicholasthompsonHave you tried 2.x-dev? 2.x-dev works on www.pponline.co.uk (2.x-alpha doesn't)
Comment #7
nicholasthompsonNo reply for over 3 weeks - assuming fixed.
Comment #8
lefnire commentedbump, i'm using 5.x-1.1 and I've uninstalled every single module (including all the core modules) to see if there was a conflict somewhere. page title STILL didn't work after that. Yet it works just fine on another site I'm running. Very crazy.
Comment #9
nicholasthompsonI assume the code has been added to template.php correctly (in the correct/active theme)?
If you're still having problems - I think yours is a support request unreleated Brian's original one... Suggest a new issue thread.
Comment #10
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.