This seem to be an earlier bug resurrected (http://drupal.org/node/354676).

I just upgraded from CVS DRUPAL-5 to 6--1-2 (Rev. 1.9.2.57) and the page title and breadcrumbs are both insisting on "biblio" although the settings are set for "Publications".

Perhaps the database upgrade was not perfect? there's no biblio_base_title column in drupal.biblio.

CommentFileSizeAuthor
#14 title1.jpg65.42 KBrjerome
#14 title2.jpg66.37 KBrjerome
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rjerome’s picture

I tested this on my systems and it seems to work fine for me, so I wonder it flushing your cache might fix the problem. If you go to the "admin/settings/performance" page there is a "Clear cached data" button right near the bottom.

The page title and base url are not stored in the biblio tables but rather the "variable" table. if you do "SELECT * FROM variable v order by name" you will see a whole bunch of biblio variables in there.

Ron.

stevenovy’s picture

I'm still seeing this problem too. Clearing the cache doesn't work.

rjerome’s picture

Do you have any page caching turned ("admin/settings/performance") on at all?

If so, could you try it with it turned off?

Ron.

ajzz’s picture

I confirm... all caching and compression disabled, cleared cache... problem persists.

Thanks for pointing me to the correct table. Looks like that is not the issue (see query below)

mysql> select value from variable where name='biblio_base_title';
+----------------------+
| value |
+----------------------+
| s:12:"Publications"; |
+----------------------+
1 row in set (0.00 sec)

rjerome’s picture

Hmmm, I'm running out of ideas... I just tried it on my installation and changed the page title a base and it worked for me.

Is is possible that you have some older version of the module lurking in other directories that Drupal may be finding?

stevenovy’s picture

Same here. Disabled all caching and compression. Cleared the cache. Problem with the page title still persists.

I looked around for the module being installed somewhere else, but I only see it in the recommended /sites/all/modules directory. We started using Biblio last summer (I believe that would've been the RC1 version) and we've always updated the module without going through the dreaded export/uninstall/reinstall/import process (ala http://drupal.org/node/372447). I wonder if this is case for ajzz? Ron, any thoughts?

ajzz’s picture

Stray files improbable... because it was simply a CVS tag switch from DRUPAL-5 branch to DRUPAL-6--1-2 within the same directory. I just ran the trace module on the biblio page and and could not find any DB queries for biblio_base_title in the transcript. If you want me to check for any particular core hooks I can do that too. Hope this is nothing related to the fact that I am running on a CVS DRUPAL-6-10 core. - Ajay

rjerome’s picture

There wouldn't be any db queries, because it's doing a variable_get() and those values are statically cached already.

You could put

 print $biblio_title; die;

in the biblo_view function (in biblio.module) after the value is set and see what it is.

ajzz’s picture

Did you mean print $base_title; die;? Inserting this code works and shows "Publications", but ONLY on the individual publication node.

This however does not work for the main bibliography overview page. There is no $biblio_title in the hook_view implementation the version of biblio.module I'm using. (http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/biblio/bibl...)

EDIT: FYI, print $biblio_title; die; returns blank on the node page.

rjerome’s picture

That was just to confirm it was pulling the right value, the title of the main page is set in the hook_menu and stored in the menu_router table. So I suspect that if your base url is 'biblio' then

SELECT title FROM menu_router WHERE path = biblio;

will yield the value "Biblio". If this is the case then the problem is the menu router table is not being updated, so you might try going to the "admin/build/menu-customize/navigation" page and just saving the configuration without making any changes. This should rebuild the menu_router table.

ajzz’s picture

Base url was set to "publications" both in the 5.x and 6.x instances. I tried rebuilding the menu router table, but not much has changed. I do see two stray biblio paths in menu_router while all others are uniformly publication/*.

mysql> select path from menu_router where path like 'biblio%';
+---------------------+
| path                |
+---------------------+
| biblio/autocomplete | 
| biblio/js           | 
+---------------------+
2 rows in set (0.00 sec)

mysql> select path from menu_router where path like 'publications%';
+-------------------------------+
| path                          |
+-------------------------------+
| publications                  | 
| publications/authors          | 
| publications/authors/%/edit   | 
| publications/citekey          | 
| publications/export           | 
| publications/filter           | 
| publications/filter/clear     | 
| publications/help             | 
| publications/import           | 
| publications/keyword/%/delete | 
| publications/keyword/%/edit   | 
| publications/keywords         | 
| publications/list             | 
| publications/pot              | 
| publications/recent/rss.xml   | 
| publications/user/%           | 
| publications/viewinline/%     | 
+-------------------------------+
17 rows in set (0.00 sec)
rjerome’s picture

What's in the title column for the above rows?

select title from menu_router where path like 'publications%'
ajzz’s picture

mysql> select title,path from menu_router where path like 'publications%';
+-------------------------+-------------------------------+
| title                   | path                          |
+-------------------------+-------------------------------+
| Publications            | publications                  | 
| Authors                 | publications/authors          | 
| Edit author information | publications/authors/%/edit   | 
|                         | publications/citekey          | 
|                         | publications/export           | 
| Filter                  | publications/filter           | 
|                         | publications/filter/clear     | 
| Help                    | publications/help             | 
| Import                  | publications/import           | 
| Delete                  | publications/keyword/%/delete | 
|                         | publications/keyword/%/edit   | 
| Keywords                | publications/keywords         | 
| List                    | publications/list             | 
|                         | publications/pot              | 
| RSS feed                | publications/recent/rss.xml   | 
| My publications         | publications/user/%           | 
|                         | publications/viewinline/%     | 
+-------------------------+-------------------------------+
17 rows in set (0.00 sec)

What was on your mind? Maybe the following will help?

mysql> select title,path from menu_router where title like 'Biblio%';
+-----------------+--------------------------------+
| title           | path                           |
+-----------------+--------------------------------+
| biblio          | admin/help/biblio              | 
| Biblio settings | admin/settings/biblio          | 
| Biblio          | node/add/biblio                | 
| Biblio          | admin/content/node-type/biblio | 
+-----------------+--------------------------------+
4 rows in set (0.00 sec)

The main biblio title page and breadcrumb show the title as "Biblio" rather than "biblio".

Think we're getting close to an answer, I just don't know what it is.

Ajay

rjerome’s picture

FileSize
66.37 KB
65.42 KB

Ok, so I set mine the same and it displays the title fine... I also changed the title and it changed... (see attached images), so I'm at a loss to explain why you are not seeing what you expect. Maybe it's browser related? What browser are you using? (Please don't say IE :-) Maybe try clearing the browser caches?

mysql> select title,path from menu_router where path like 'publications%';
+-------------------------+-------------------------------+
| title                   | path                          |
+-------------------------+-------------------------------+
| Publications            | publications                  |
| Authors                 | publications/authors          |
| Edit author information | publications/authors/%/edit   |
|                         | publications/citekey          |
|                         | publications/export           |
| Filter                  | publications/filter           |
|                         | publications/filter/clear     |
| Help                    | publications/help             |
| Import                  | publications/import           |
| Delete                  | publications/keyword/%/delete |
|                         | publications/keyword/%/edit   |
| Keywords                | publications/keywords         |
| List                    | publications/list             |
|                         | publications/pot              |
| RSS feed                | publications/recent/rss.xml   |
| My publications         | publications/user/%           |
|                         | publications/viewinline/%     |
+-------------------------+-------------------------------+
17 rows in set (0.00 sec)
mysql> select title,path from menu_router where title like 'Biblio%';
+-----------------+--------------------------------+
| title           | path                           |
+-----------------+--------------------------------+
| biblio          | admin/help/biblio              |
| Biblio settings | admin/settings/biblio          |
| Biblio          | node/add/biblio                |
| Biblio          | admin/content/node-type/biblio |
+-----------------+--------------------------------+
4 rows in set (0.00 sec)

Here is the menu_router table after the title change...

mysql> select title,path from menu_router where path like 'publications%';      +-------------------------+-------------------------------+
| title                   | path                          |
+-------------------------+-------------------------------+
| Other Title             | publications                  |
| Authors                 | publications/authors          |
| Edit author information | publications/authors/%/edit   |
|                         | publications/citekey          |
|                         | publications/export           |
| Filter                  | publications/filter           |
|                         | publications/filter/clear     |
| Help                    | publications/help             |
| Import                  | publications/import           |
| Delete                  | publications/keyword/%/delete |
|                         | publications/keyword/%/edit   |
| Keywords                | publications/keywords         |
| List                    | publications/list             |
|                         | publications/pot              |
| RSS feed                | publications/recent/rss.xml   |
| My publications         | publications/user/%           |
|                         | publications/viewinline/%     |
+-------------------------+-------------------------------+
17 rows in set (0.00 sec)
ajzz’s picture

Hmm.... browsers tested: Debian Epiphany, Iceweasel, windoze: Firefox 3 & Chrome.

The only other thing I can think of is that some theme template is messing this up. Just tried a couple of other default themes and still flummoxed.

http://virus.chem.ucla.edu/publications

rjerome’s picture

Ok, some major head scratching going on here now! Given the contents of your menu_router table, I honestly can't understand how the title could get set to "Biblio", other than as you say, by the theme somewhere. I would search (your entire Drupal tree) for any variable_get calls which have "Bilblio" as the default. Failing that just search for "Biblio".

I presume you have tried changing the title to something else with no effect?

Ron.

ajzz’s picture

You presume right about me having tried to change title to something else. I even tried "You can't be serious!" :)

user~$ grep -Hrn Biblio ./drupal/ | grep variable_get
./drupal/modules/contrib/biblio/biblio.module:447:  $base_title = variable_get('biblio_base_title', 'Biblio');
./drupal/modules/contrib/biblio/biblio.module:1451:  $base_title = variable_get('biblio_base_title', 'Biblio');
./drupal/modules/contrib/biblio/biblio.admin.inc:53:    '#default_value' => variable_get('biblio_base_title', 'Biblio'),
./drupal/modules/contrib/biblio/biblio.admin.inc:335:    '#default_value' => variable_get('biblio_search_button_text', t('Biblio search')),
./drupal/modules/contrib/biblio/biblio.pages.inc:752:  $button_text = strlen(variable_get('biblio_search_button_text', ''))?variabl
e_get('biblio_search_button_text', t('Biblio search')):t('Biblio search');
./drupal/modules/contrib/biblio/biblio.pages.inc:1012:  $base_title = variable_get('biblio_base_title', 'Biblio');
rjerome’s picture

Ok, this has got to be something so obvious we just can't see it!! Could you also run that grep again without the grep for variable_get, i.e.

grep -Hrn Biblio ./drupal/
ajzz’s picture

$ grep -Hrn Biblio ./drupal/
./drupal/gallery2/modules/gd/po/.svn/text-base/pl.po.svn-base:128:"Biblioteka GD musi zostaÄ wczeÅiej wkompilowana w wersjÄ PHP (opcja --with-gd)."
./drupal/gallery2/modules/gd/po/.svn/text-base/de.po.svn-base:134:"können. Die GD-Bibliothek muss dazu im PHP einkompiliert sein (--with-gd)."
./drupal/gallery2/modules/gd/po/.svn/text-base/de.po.svn-base:149:msgstr "Version der GD-Bibliothek"
./drupal/gallery2/modules/gd/po/.svn/text-base/de.po.svn-base:177:msgstr "Sie haben anscheinend in Ihrer PHP-Installation die GD-Bi
bliothek nicht zur Verfügung."
Binary file ./drupal/gallery2/modules/gd/po/.svn/text-base/pl.mo.svn-base matches
Binary file ./drupal/gallery2/modules/gd/po/.svn/text-base/de.mo.svn-base matches
./drupal/gallery2/modules/gd/po/pl.po:128:"Biblioteka GD musi zostaÄ wczeÅiej wkompilowana w wersjÄ PHP (opcja --with-gd)."
./drupal/gallery2/modules/gd/po/de.po:134:"können. Die GD-Bibliothek muss dazu im PHP einkompiliert sein (--with-gd)."
./drupal/gallery2/modules/gd/po/de.po:149:msgstr "Version der GD-Bibliothek"
./drupal/gallery2/modules/gd/po/de.po:177:msgstr "Sie haben anscheinend in Ihrer PHP-Installation die GD-Bibliothek nicht zur Verfügung."
Binary file ./drupal/gallery2/modules/gd/po/pl.mo matches
Binary file ./drupal/gallery2/modules/gd/po/de.mo matches
./drupal/modules/contrib/captcha/translations/de.po:248:msgstr "Bild-CAPTCHAs können nicht generiert werden, weil die GD-Bibliothek Ihrer PHP-Installation keine JPEG-Unterstützung hat."
./drupal/modules/contrib/biblio/biblio.module:255:      'name' => t('Biblio'),
./drupal/modules/contrib/biblio/biblio.module:447:  $base_title = variable_get('biblio_base_title', 'Biblio');
./drupal/modules/contrib/biblio/biblio.module:544:    'title' => t('Biblio settings'),
./drupal/modules/contrib/biblio/biblio.module:1009:      '#title' => t('Other Biblio Fields'),
./drupal/modules/contrib/biblio/biblio.module:1451:  $base_title = variable_get('biblio_base_title', 'Biblio');
./drupal/modules/contrib/biblio/biblio.module:1621:    0 => t('Biblio module references &lt;bib&gt; <i>or</i> [bib]'),
./drupal/modules/contrib/biblio/biblio.module:2002:    $tokens['node']['biblio_year']      = t("Biblio: Publication year");
./drupal/modules/contrib/biblio/biblio.module:2003:    $tokens['node']['biblio_authors']   = t("Biblio: Authors");
./drupal/modules/contrib/biblio/biblio.module:2004:    $tokens['node']['biblio_type_id']   = t("Biblio: Type ID (e.g.: 100)");
./drupal/modules/contrib/biblio/biblio.module:2005:    $tokens['node']['biblio_type']      = t("Biblio: Type Name (e.g.: book)");
./drupal/modules/contrib/biblio/README.txt:16:Bibliographic information is displayed in lists with links to detailed 
./drupal/modules/contrib/biblio/README.txt:61:Bibliographic entries can be added to the database in one of two ways, individualy
./drupal/modules/contrib/biblio/biblio.import.export.inc:414:          drupal_set_header('Content-Disposition:  filename="Drupal-Bi
blio.enw"');
./drupal/modules/contrib/biblio/biblio.import.export.inc:424:          drupal_set_header('Content-Disposition: attachment; filename
="Biblio-EndNote'. $version .'.xml"');
./drupal/modules/contrib/biblio/biblio.import.export.inc:435:          drupal_set_header('Content-Disposition:  filename="Biblio-Bibtex.bib"');
./drupal/modules/contrib/biblio/biblio.import.export.inc:444:        drupal_set_header('Content-Disposition: attachment; filename=B
iblio-export.csv');
./drupal/modules/contrib/biblio/biblio.import.export.inc:1131:    drupal_set_header('Content-Disposition: attachment; filename=Bibl
io-export.csv');
./drupal/modules/contrib/biblio/biblio.info:2:name = Biblio
./drupal/modules/contrib/biblio/biblio.info:5:package = Biblio
./drupal/modules/contrib/biblio/biblio.install:78://      'name' => 'Biblio Keywords',
./drupal/modules/contrib/biblio/biblio.install:108:      'name' => 'Biblio Collections',
./drupal/modules/contrib/biblio/biblio.install:184:  return array('success' => FALSE, 'query' => 'Biblio keyword vocabulary not available');
./drupal/modules/contrib/biblio/biblio.pot:39:msgid "Biblio page title"
./drupal/modules/contrib/biblio/biblio.pot:263:msgid "Biblio search"
./drupal/modules/contrib/biblio/biblio.pot:267:msgid "This allows you to customize the text on the search button, it defaults to \"
Biblio search\"."
./drupal/modules/contrib/biblio/biblio.pot:583:msgid "Link My Profile with this Author from the Biblio database"
./drupal/modules/contrib/biblio/biblio.pot:1157:msgid "Biblio"
./drupal/modules/contrib/biblio/biblio.pot:1177:msgid "Biblio settings"
./drupal/modules/contrib/biblio/biblio.pot:1217:msgid "Other Biblio Fields"
./drupal/modules/contrib/biblio/biblio.pot:1273:msgid "Biblio module references &lt;bib&gt; <i>or</i> [bib]"
./drupal/modules/contrib/biblio/biblio.pot:1285:msgid "Biblio: Publication year"
./drupal/modules/contrib/biblio/biblio.pot:1289:msgid "Biblio: Authors"
./drupal/modules/contrib/biblio/biblio.pot:1293:msgid "Biblio: Type ID (e.g.: 100)"
./drupal/modules/contrib/biblio/biblio.pot:1297:msgid "Biblio: Type Name (e.g.: book)"
./drupal/modules/contrib/biblio/biblio.views.inc:37:  // everything belongs to the Biblio group
./drupal/modules/contrib/biblio/biblio.views.inc:38:  $data['table']['group'] = t('Biblio');
./drupal/modules/contrib/biblio/biblio.views.inc:42:    'title' => t('Biblio'),
./drupal/modules/contrib/biblio/biblio.views.inc:43:    'help' => t("Biblio publications."),
./drupal/modules/contrib/biblio/biblio.views.inc:71:  // everything belongs to the Biblio group
./drupal/modules/contrib/biblio/biblio.views.inc:72:  $data['table']['group'] = t('Biblio');
./drupal/modules/contrib/biblio/biblio_xml.inc:34:  $comment = $biblio_collection->appendChild(new DOMComment('Generated by the Bib
lio module from Drupal (http://drupal.org/project/biblio)'));
./drupal/modules/contrib/biblio/endnote8_export.inc:15:    $xml .= '<source-app name="Biblio" version="6.x">Drupal-Biblio</source-app>'."\n";
./drupal/modules/contrib/biblio/todo.txt:16:* fix Biblio user warning: empty (sub)expression' from regexp query http://drupal.org/node/349777
./drupal/modules/contrib/biblio/biblio.pages.inc:752:  $button_text = strlen(variable_get('biblio_search_button_text', ''))?variabl
e_get('biblio_search_button_text', t('Biblio search')):t('Biblio search');
./drupal/modules/contrib/biblio/biblio.pages.inc:1090:    if ($menu == 'Biblio settings') $path = 'admin/settings/biblio/author/list/';
./drupal/modules/contrib/biblio/biblio.admin.inc:51:    '#title' => t('Biblio page title'),
./drupal/modules/contrib/biblio/biblio.admin.inc:53:    '#default_value' => variable_get('biblio_base_title', 'Biblio'),
./drupal/modules/contrib/biblio/biblio.admin.inc:335:    '#default_value' => variable_get('biblio_search_button_text', t('Biblio search')),
./drupal/modules/contrib/biblio/biblio.admin.inc:336:    '#description' => t('This allows you to customize the text on the search b
utton, it defaults to "Biblio search".')
./drupal/modules/contrib/biblio/biblio.admin.inc:911:    '#title' => t('Link My Profile with this Author from the Biblio database'),
./drupal/modules/contrib/biblio/biblio.admin.inc:1101:  if ($menu == 'Biblio settings') $path = 'admin/settings/biblio/author/list';
rjerome’s picture

OK, so no further ahead there.

Desperate times call for desperate measures, so how about you just edit line 449 in the biblio.module file and put the title you want in there and see if it has any effect.

Ron.

ajzz’s picture

Sorry. No go. I'll try to reproduce this on another box I'm upgrading soon. If there's any more troubleshooting that can be done, let me know. - Ajay

rjerome’s picture

Are you saying that the title still didn't change, even when hard coded into the menu definition???

I just don't know where that could be coming from, but I guess since your not the only one (comments 2 & 6) there must be an issue somewhere.

I'm guessing you are running on a UNIX box? Could you give me details of the software stack?

Ron.

ajzz’s picture

Yeah... the title still didn't change after hard-coding in biblio.module. If it matters, I also tried the page_title module and it works on the individual biblio nodes, but not the main biblio overview page... so whatever it is, seems to be in the way the page is generated - a mystery of forgotten variables?

PHP version = 5.2.8-pl2-gentoo with apache2handler
Webserver = Apache (custom build 2.2)
Database = mysql-5.0.70-r1
Operating system = Linux 2.6.27-gentoo-r8 SMP i686

rjerome’s picture

Ok, nothing strange in the software stack, interesting about the page_title module, and that may be leading us somewhere... Individual nodes are theme('node',...) but the citation list is theme('page',...). I still can't imagine where that "Biblio" title iis coming from though.

ajzz’s picture

I found it... by trial and error, editing Biblio entries in the menu. The 6.x module adds an additional item in the user navigation menu called "Biblio" with child options "Authors", "Keywords", "Import". Changing this nav menu_item from "Biblio" to "Publications" made it show up as the latter in the overview page.

After doing the above, the menu router table shows that the title for path "publications" has changed from "Other Title" as shown in comment #14 to "Publications" as below.

Phew! what a hunt!

mysql> select title,path from menu_router where path like 'publications%';
+-------------------------+-------------------------------+
| title                   | path                          |
+-------------------------+-------------------------------+
| Publications            | publications                  | 
| Authors                 | publications/authors          | 
| Edit author information | publications/authors/%/edit   | 
|                         | publications/citekey          | 
|                         | publications/export           | 
| Filter                  | publications/filter           | 
|                         | publications/filter/clear     | 
| Help                    | publications/help             | 
| Import                  | publications/import           | 
| Delete                  | publications/keyword/%/delete | 
|                         | publications/keyword/%/edit   | 
| Keywords                | publications/keywords         | 
| List                    | publications/list             | 
|                         | publications/pot              | 
| RSS feed                | publications/recent/rss.xml   | 
| My publications         | publications/user/%           | 
|                         | publications/viewinline/%     | 
+-------------------------+-------------------------------+
17 rows in set (0.00 sec)
vesp0lit’s picture

Hello all,I just wanted to introduce myself,I am new here and I hope to have a very nice time on this forum.

rjerome’s picture

Ahhh, so it was picking the page title from the menu_links table then, I'll have to look into how these two tables are related and this issue can be avoided in the future.

Thanks for tracking that down,

Ron.

rjerome’s picture

Ok, so it seems that if those navigation menu items are disabled, then the menu_links table doesn't get updated, and then... the title doesn't change :-(

I'll have to dig a bit deeper to find a way around this.

rjerome’s picture

Status: Active » Fixed

This one is squashed once and for all! I now explicitly set the title...

    $base_title = variable_get('biblio_base_title', 'Biblio');
    drupal_set_title($base_title);
    print theme('page', $content);

And that seems to get around the problem if the nav menu is disabled.

Ron.

ajzz’s picture

Status: Fixed » Active

Any major upgrade recommends disabling all modules to update core, then updating the module code and finally enabling them. That workflow will lead to this issue consistently. My guess is that the two others on this thread had followed these guidelines during upgrade too.

Here's some more info (postmortem?). I'm not sure why, but there are two entries for path "publications" in menu_links (see below). I guess if subsequent queries are made to pull titles searching for path, there is ambiguity. I annotated the menu edit that worked with "(Menu)" to confirm that it is being put there by the system module.

mysql> select module,router_path,link_title from menu_links where router_path like 'publications';

+--------+--------------+---------------------+
| module | router_path  | link_title          |
+--------+--------------+---------------------+
| system | publications | Publications (Menu) | 
| menu   | publications | Publications        | 
+--------+--------------+---------------------+
2 rows in set (0.00 sec)

I see that the issue status changed between two previews of this post. Thanks for the fix :) can you commit to the official release anytime soon?

ajzz’s picture

Status: Active » Fixed

Oops my cross-post seems to toggle status... switching back to fixed.

BTW, will the current fix behave nicely when using page_title module?

rjerome’s picture

I guess those "module" names in the menu tables leave a little to be desired... I suppose "menu" is referring to hook_menu whereas the system.module looks after the actual "visible" menus? I noticed some "reset" links on the menu admin page which seem to get everything back in sync if the navi menus have been disabled or changed.

I'll be rolling out a 1.3 release sometime soon (probably this weekend), but the fix is in the DRUPAL-6--1 CVS branch if you want to test it. Whether is works with the page_title_module... Don't know, I'll be waiting for that report :-) but I expect that it should.

Cheers,
Ron.

stevenovy’s picture

Glad you guys figured this one out! It's been driving me nuts for MONTHS! I had the same issue going, the Biblio menu items were disabled. I just enabled them, changed their title to Publications, and voila! I know have Publications on the main biblio page and its title.

Status: Fixed » Closed (fixed)

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