Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since updating to 6.x-1.1 the Page Title module http://drupal.org/project/page_title does not work. I have confirmed this on 3 of my sites and have found the reverting back to 6.x-1.0 fixes the problem.
Comment | File | Size | Author |
---|---|---|---|
#46 | 1144188-page-title-not-showing.patch | 553 bytes | aquariumtap |
#26 | page_title_compatibility-nicholasthompson.patch | 1.41 KB | nicholasThompson |
#3 | page_title_module_compatibility-1144188.patch | 1.2 KB | aquariumtap |
Comments
Comment #1
sheena_d CreditAttribution: sheena_d commentedCan you give us some more details on this? How is it not working (i.e. what is the behavior you are seeing, or not seeing, that differs from how that modules usually works)? Also, are you testing with only Fusion Core enabled, or are you using a sub-theme of some sort?
Comment #2
carlodimartino CreditAttribution: carlodimartino commentedOk Thanks. Yes I am using sub-themes and/or Fusion based themes in all instances where I am seeing the problem. To give you a specific example of the problem with a site for example: I'm using Acquia Marina with Page Title and have the page title patterns set as: Default: [site-name] | [page-title] & Frontpage: [site-name] | [site-slogan] but neither of these patterns work at all when using any Fusion Theme or sub-theme when using 6.x-1.1. Page titles instead show as the Drupal's default pattern: [site-title] | [site-name].
Even if I use Fusion core only and no sub-themes, I see this problem.
If I switch to a standard theme such as Bluemarine or revert to Fusion 6.x-1.0, the module works fine.
Comment #3
aquariumtap CreditAttribution: aquariumtap commentedThe attached patch adds support for the page_title module.
The reason page_title works in 6.x-1.0 and not 6.x-1.1 is the latter version introduced html tag sanitation (#868572) for the site slogan. This patch will bypass the sanitization if the page_module is active.
Comment #4
broncomania CreditAttribution: broncomania commentedthis works 50% because the taxonomy titles is still not working. Is this part really nessesary? I mean the page title module resolves all wishes,so why do I need a preprocess function for the page title in a theme??
I hope this function will be extended with a checkbox if i wish to process the page title. So i could decide working page title or not.
I deleted the part of code and this is not a good solution I know, but it's working!
Comment #5
aquariumtap CreditAttribution: aquariumtap commentedHi broncomania, the processing is in there because not everyone uses the page_title module, and we're building off default functionality to sanitize slogans.
The patch I sent you bypasses any Fusion processing if the page_title module is being used. I tested a taxonomy title using page_title, and it worked. Could you please describe the problem you're having a bit more ?
Comment #6
Duplika CreditAttribution: Duplika commentedDid indeed caused us unexpected issues with SEO.
I agree that it would be great to have a checkbox to decide if we want to use this or not.
Comment #7
aquariumtap CreditAttribution: aquariumtap commentedHi Juanzo, what issue are you having? If the page_title module is in use, then the title comes straight from that module, without any modification by Fusion.
Comment #8
sauvymer CreditAttribution: sauvymer commentedHello,
I can't to download le last version :
The requested URL /files/projects/fusion-7.x-1.0-alpha1.zip was not found on this server.
thanks
sauvy
Comment #9
aquariumtap CreditAttribution: aquariumtap commentedHi sauvymer, I'm not sure what happened, but the fine folks at drupal.org have been working on it:
http://drupal.org/node/1153392
In the meantime, you can access the code by altering the link slightly (removing the "ftp." from ftp.drupal.org):
http://drupal.org/files/projects/fusion-7.x-1.0-alpha1.zip
Comment #10
stephthegeek CreditAttribution: stephthegeek commentedChanging back to actual issue
(downloads are fixed)
Comment #11
eule CreditAttribution: eule commentedwhats about the page titles now? is it fixed in a dev version ? i put the fix in but i must say the same as @rectangle, for me is the taxonomy non working ..is any fix aviable?
thanks
Comment #12
aquariumtap CreditAttribution: aquariumtap commentedYes, the fix is committed to dev. Please describe your problem in more detail. I was not able to replicate the taxonomy issue.
Comment #13
Duplika CreditAttribution: Duplika commentedI'm my case, having Page Title 6.x-2.3 and Fusion 6.x-1.1, our titles don't appear as configured at Page Title. This started happening when we updated to Fusion 6.x-1.1 and to fix it, we deleted the following code from fusion_core/template.php:
Comment #14
aquariumtap CreditAttribution: aquariumtap commentedHi Juanzo, thanks for the details -- the code you deleted does not have the patch from #3 applied.
Comment #15
Steady CreditAttribution: Steady commentedI'm having the same problem.
I am using the latest fusion and a theme from topnotchthemes (fusiondrupalthemes).
It seems the page title module is just being ignored.
When creating content, the option to have a different page title than the usual drupal heading/title appears. But once the page is created, any alternative text entered that should appear in the tag is just ignored. It simply uses whatever I wanted to have as the heading on the page.
This is extremely annoying as the < title > and the heading < h1 > are usually a little different though related for seo purposes.
I am usure from the above, what the best correction is as I am a novice.
(What is starting to annoying me with drupal is that one gets warning messages to upgrade things, but almost everytime I do this, for core, modules or themes, there always seems to be problems. It's very frustrating to say the least and I am losing a bit of heart. My time is too valuable to waste and it is frustrating that I don't know enough to be comfortable in handling it when it goes wrong so much). Rant over...
Comment #16
aquariumtap CreditAttribution: aquariumtap commentedSteady, have you applied the patch from #3?
Comment #17
carlodimartino CreditAttribution: carlodimartino commentedI have a few alternative suggestions for you.
1. Apply the patch from #3 http://drupal.org/files/issues/page_title_module_compatibility-1144188.p...
works fine for me.
2. Roll back to fusion 6.x-1.0 http://drupal.org/node/848744
3. Maybe from now on you should only do security updates if other updates have been such a problem.
4. Stop using Drupal and demand a refund ;)
Comment #18
Steady CreditAttribution: Steady commentedHi,
I have been trying to understand how to apply the patch in 3.
I have never done this before and the data I have been able to find on it has me completely confused.
I honestly have been trying to find how to apply this patch for 3 or 4 hours with NO luck or understanding whatsoever.
It seems you have to be a programmer or something to do this. I really don't know how to...
Any further suggestions?
Thanks.
Comment #19
carlodimartino CreditAttribution: carlodimartino commentedComment #20
aquariumtap CreditAttribution: aquariumtap commentedHi Steady,
You don't have to be a programmer, but applying a patch can be tricky and we've all experienced your frustration in one way or another. It's a worthwhile thing to learn, and it'll help you over and over again if you work with Drupal, so it might be worth jumping onto IRC and joining the #drupal channel to chat and work through the problem in real time. Here's how to join IRC (Internet Relay Chat).
This particular patch if very small, so you could just apply it manually. Here are some instructions. In short, the lines that start with a minus (-) need to be deleted, and (+) need to be added. The more cryptic lines like this are just to help you find the lines that need to be removed/added:
I haven't committed this patch yet because I'm looking for testers, but this will likely be resolved sometime this week if you want to wait. At that point, the change will be in the latest version of Fusion-7.x-1.x-dev.
So you have a few options -- but I think it'd help a lot to chat with other Drupal people in real time, so you can describe specifically what's going wrong when you try to patch.
Comment #21
aquariumtap CreditAttribution: aquariumtap commentedHah, thanks rectangle :)
Comment #22
Steady CreditAttribution: Steady commentedAquarium Tap,
That is a great and useful answer. Many thanks!
I will get into this more next week when I get more time.
In the meantime I appreciate your message.
Best wishes,
Steady
Comment #23
giorgio79 CreditAttribution: giorgio79 commentedApplied the patch, but did not fix it for me.
I had separate page title patterns for diffferent content types, but no luck.
Comment #24
giorgio79 CreditAttribution: giorgio79 commentedActually, I take that back.
Just had to clear cache.
Works like magic, this is much appreciated.
Comment #25
SchwebDesign CreditAttribution: SchwebDesign commentedThank you VERY much for this, i was really lost as to what was wrong until i found this thread. This fixed it for me as well!
Comment #26
nicholasThompsonThe patch applied to the DEV branch is not quite right; there is no need to separately apply the Page Title value as Page title has its own preprocess_page hook. By fusion applying it, it will essentially happen twice. This is mitigated by the page_title_page_get_title() function statically caching the value.
Attached is an improved patch on the latest 6.x-1.x-dev branch.
Comment #27
nicholasThompsonMeant to set "needs review"...
Comment #28
angelil-il6 CreditAttribution: angelil-il6 commentedHi.
I have the same problem.
I have read this post, and looked at the patch.
when I looked at it and at the template.php it was not complitly as I would have expected it to be.
so I have reinstall fusion theme to the current version, and looked at the file again.
this is what I have found, starting from line 152:
if (drupal_get_title()) {
$head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal'));
}
else {
$head_title = array(variable_get('site_name', 'Drupal'));
if (variable_get('site_slogan', '')) {
$head_title[] = strip_tags(variable_get('site_slogan', ''));
}
}
$vars['head_title'] = implode(' | ', $head_title);
}
please write down the necessary changes that need to be modified.
Regards
Angel
Comment #29
radoya CreditAttribution: radoya commentedI just removed all that code, leave just last } and it seams work for me now.
I hope that it will note make some other issues.
Comment #30
JayVGee CreditAttribution: JayVGee commentedI am currently having a problem with the page title module and a custom fusion sub-theme. I have installed the module and it seems to be working properly; except when I edit the page title field for an individual page, the page title doesn't show, I still get the default page title I setup in the page titles module settings. I have looked in the issue ques for the module and there is a patch, but when the patch is applied I am still not getting the results. I tried updating my theme to the most recent update for Fusion Core (not a critical update), but it crashed my site (the interface was all screwed up). I then reverted back to the previous version of Fusion Core and just updated the template.php file and tried applying the patch to it then, but I was getting the same page title results. Does anyone have any suggestions on what I could be missing? Thanks!
Comment #31
Oceanman CreditAttribution: Oceanman commented@JayVGee Do you have this in the head of your page template:
This was missing from mine and now I have titles showing up as expected. I hope that helps.
Comment #32
JayVGee CreditAttribution: JayVGee commentedThanks Oceanman, I appreciate the help but I already had that line in the page template file. In a nut shell I can set the default page title based on the specific content type in the 'Page Title' module settings. However, when I try to set the page title for specific pages, the default page title still comes up instead. Does anyone have ideas, I could really use the help.
Comment #33
Steady CreditAttribution: Steady commentedUse an earlier version of fusion.
That was the only way I got page-title to work properly with a fusion based theme!!!
Comment #34
aquariumtap CreditAttribution: aquariumtap commentedI am preparing a new version of fusion with support for the page title module to be released this week.
Comment #35
JayVGee CreditAttribution: JayVGee commentedSteady,
Thanks, but I am currently using Fusion 6.x-1.0, which I believe is the same version you were using and I was still having no success is setting the Page Title for a particular page; does work when I set a particular content type with a default Page Title however.
Aquariumtap,
Thanks, please let me know when it becomes available. Also, please refer me to any documentation on how to update a base theme without breaking the custom sub-theme. When I tried to upgrade to Fusion 6.x-1.1 it broke my site, Im not sure what I did wrong. See my post at number #30.
Comment #36
aquariumtap CreditAttribution: aquariumtap commented@JayVGee - incompatibility with the page title module is a known issue from Fusion 1.0 to 1.1, but I'm not aware of any other issues that would have broken your site. Could you open a separate issue with more specifics? If "the interface was all screwed up", including screenshots would be helpful. Thanks!
Comment #37
aquariumtap CreditAttribution: aquariumtap commented@nicholasThompson - your revised patch makes sense to me, but the page_title_page_get_title() function returns a static variable on a second call. It's very fast, and the patch as-is has been tested.
Comment #38
nicholasThompsonThat is true - a call to a function to return a static variable is fast. Cant argue with that :)
I guess the point I'm making is that it's unnecessary and inefficient. No matter how fast that function is, it will always be faster to not do it ;)
You'd never write code which did:
... because it's pointless and inefficient, but it's basically what DEV is doing. See:
http://drupalcode.org/project/fusion.git/blob/cea495e3455b7ead7315dc9827...
Page Title already implements it's own page preprocessor to handle this and it sets the
$vars['head_title']
itself - by Fusion checking for the presence of Page Title and then re-setting the value using exactly the same function call (regardless of static caching), it's basically mimicking the above code. See:http://drupalcode.org/project/page_title.git/blob/a9a5d31d9357fa13603b3c...
I set the Version back to 6.x-1.x-dev because that's where its still broken (imho) ;)
Comment #39
JayVGee CreditAttribution: JayVGee commentedAquariumtap,
Any updates on the new version of Fusion to be released to fix the 'Page Titles' issue? I am still having the same issue from post #32. Thanks!
Comment #40
aquariumtap CreditAttribution: aquariumtap commentedI"m testing right now :)
Comment #41
aquariumtap CreditAttribution: aquariumtap commented@JayVGee - the issue from #32 doesn't appear to be specific to Fusion. I was able to recreate the issue on other themes. See #1220776: Can't change per node-type title
@nicholasThompson - I was following the instructions set by the page_title module, but as it turns out, they were for Drupal 5. Calling a function of another module to see if there's anything to do/modify is exactly what the Drupal hook system does. It's the most common pattern employed on this framework. But you're right, it wasn't necessary here. I've changed the fix to use your approach. Thank you.
Comment #42
brunorios1 CreditAttribution: brunorios1 commentedsubscribing
Comment #43
aquariumtap CreditAttribution: aquariumtap commentedFix has been committed with the 6.x-1.11 release.
Comment #44
carlodimartino CreditAttribution: carlodimartino commentedI'm afraid this is not working for me at all. I have tried 6.x-1.11 on 3 sites now all with the same results - Page Title module does not work at all and worse than that, with the module enabled I get no page titles at all. I'm just getting
<title></title>
in the page source.Comment #45
eule CreditAttribution: eule commentedsame as @rectangle, getting no page titles
Comment #46
aquariumtap CreditAttribution: aquariumtap commentedPatch attached -- if someone else could test this, I will do another Fusion release right away to propagate the change more easily. I'm very sorry about the oversight.
Comment #47
eule CreditAttribution: eule commentedthanks! i get the page titles now
Comment #48
SchwebDesign CreditAttribution: SchwebDesign commentedthanks for your attention to this matter
dev from 2011-Aug-04 doesn't work for me (and thus comment 46 i believe doesn't work for me: http://drupal.org/node/1144188#comment-4824984 )
BUT patch from comment 17 worked for me: http://drupal.org/node/1144188#comment-4527322
with Page Title module 6.x-2.5
Comment #49
aquariumtap CreditAttribution: aquariumtap commentedHi SchwebDesign, please update Fusion to the latest version (6.x-1.12). Again, sorry for the troubles!
Comment #50
asb CreditAttribution: asb commentedThanks for the new release, this issue has been a major annoyance, and it's great that it's now resolved!
Comment #51
Jimmel CreditAttribution: Jimmel commentedHi
I am using Page Title 6.x-2.5 and Fusion 6.x-1.12 and the page title still does not work when I want to place different titles for each node.
Is the patch included in the lastest version of Fusion that I am using. Going by #49 it seems to be.
Is there any other problems.
Regards
Jimmel
Comment #52
sheena_d CreditAttribution: sheena_d commentedJimmel,
The issue should be resolved with the 6.x-1.12 version of Fusion. Can you give us a few more details about the issue you are having and some tips on how to recreate the issue for testing?
Thanks,
Sheena
Comment #53
Jimmel CreditAttribution: Jimmel commentedHi
It looks like I have resolved it by going back to the default settings in page title configurations and then changing them again. Changing them without going back to the default settings did not seems to alter anything for the individual nodes. So Fusion and Page title now seem to be compatible.
Regards
Jimmel
Comment #54
sheena_d CreditAttribution: sheena_d commentedThanks for the update!