Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#14 | title1.jpg | 65.42 KB | rjerome |
#14 | title2.jpg | 66.37 KB | rjerome |
Comments
Comment #1
rjerome CreditAttribution: rjerome commentedI 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.
Comment #2
stevenovy CreditAttribution: stevenovy commentedI'm still seeing this problem too. Clearing the cache doesn't work.
Comment #3
rjerome CreditAttribution: rjerome commentedDo you have any page caching turned ("admin/settings/performance") on at all?
If so, could you try it with it turned off?
Ron.
Comment #4
ajzz CreditAttribution: ajzz commentedI 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)
Comment #5
rjerome CreditAttribution: rjerome commentedHmmm, 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?
Comment #6
stevenovy CreditAttribution: stevenovy commentedSame 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?
Comment #7
ajzz CreditAttribution: ajzz commentedStray 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
Comment #8
rjerome CreditAttribution: rjerome commentedThere wouldn't be any db queries, because it's doing a variable_get() and those values are statically cached already.
You could put
in the biblo_view function (in biblio.module) after the value is set and see what it is.
Comment #9
ajzz CreditAttribution: ajzz commentedDid 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.Comment #10
rjerome CreditAttribution: rjerome commentedThat 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
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.
Comment #11
ajzz CreditAttribution: ajzz commentedBase 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/*.
Comment #12
rjerome CreditAttribution: rjerome commentedWhat's in the title column for the above rows?
Comment #13
ajzz CreditAttribution: ajzz commentedWhat was on your mind? Maybe the following will help?
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
Comment #14
rjerome CreditAttribution: rjerome commentedOk, 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?
Here is the menu_router table after the title change...
Comment #15
ajzz CreditAttribution: ajzz commentedHmm.... 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
Comment #16
rjerome CreditAttribution: rjerome commentedOk, 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.
Comment #17
ajzz CreditAttribution: ajzz commentedYou presume right about me having tried to change title to something else. I even tried "You can't be serious!" :)
Comment #18
rjerome CreditAttribution: rjerome commentedOk, 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.
Comment #19
ajzz CreditAttribution: ajzz commentedComment #20
rjerome CreditAttribution: rjerome commentedOK, 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.
Comment #21
ajzz CreditAttribution: ajzz commentedSorry. 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
Comment #22
rjerome CreditAttribution: rjerome commentedAre 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.
Comment #23
ajzz CreditAttribution: ajzz commentedYeah... 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
Comment #24
rjerome CreditAttribution: rjerome commentedOk, 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.
Comment #25
ajzz CreditAttribution: ajzz commentedI 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!
Comment #26
vesp0lit CreditAttribution: vesp0lit commentedHello all,I just wanted to introduce myself,I am new here and I hope to have a very nice time on this forum.
Comment #27
rjerome CreditAttribution: rjerome commentedAhhh, 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.
Comment #28
rjerome CreditAttribution: rjerome commentedOk, 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.
Comment #29
rjerome CreditAttribution: rjerome commentedThis one is squashed once and for all! I now explicitly set the title...
And that seems to get around the problem if the nav menu is disabled.
Ron.
Comment #30
ajzz CreditAttribution: ajzz commentedAny 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.
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?
Comment #31
ajzz CreditAttribution: ajzz commentedOops my cross-post seems to toggle status... switching back to fixed.
BTW, will the current fix behave nicely when using page_title module?
Comment #32
rjerome CreditAttribution: rjerome commentedI 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.
Comment #33
stevenovy CreditAttribution: stevenovy commentedGlad 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.