Closed (fixed)
Project:
GitHub
Version:
7.x-1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 09:07 UTC
Updated:
18 Feb 2016 at 10:54 UTC
Jump to comment: Most recent
I'm trying to track down why, but this module doesn't seem to play well with Omega base themes.
Comments
Comment #1
larseliasnielsen commentedThe problem is caused by
hook_page_build(). It's set to render thegithub_ribbon()in$page['header']['github_ribbon']and this dosen't exists in the theme.This worked for me:
github.module, line 36-45:
Comment #2
bhosmer commentedGood catch, and thanks for posting your solution. I never had a chance to go back and look at this and completely forgot about it.
What do you think would be the best way to fix this, since not all themes have a header region?
Comment #3
larseliasnielsen commentedUnfortunately I was unable to find a proper solution to the problem.
The only thing I found was that system_region_list() can render the page blocks.
The reason I used
$page['page_top']is that according to html.tpl.php,page_topis used to render markup before all other dynamic content.Comment #4
bhosmer commentedMy thought was to use page_top as well, since if I remember correctly, that is present all the time.
Comment #5
larseliasnielsen commentedpage_topandpage_bottomis by default shown in Drupal 7, but ifhtml.tpl.phpdosen't include them (which it should) (look here), the regions are not rendered.The answer could be to check if the regions exists or let the user choose what block to display the ribbon in.
I've applied for maintainership of this module, so maybe I'll have the chance to make a proper solution for this issue.
Comment #6
bhosmer commentedExcellent work, and thanks for stepping up and taking over stewardship of this.
Comment #7
larseliasnielsen commentedComment #8
larseliasnielsen commentedThis issue is now fixed with the new release. Let me know if you run into problems.
Comment #9
bhosmer commentedWith Omega 7.x-4.0-beta7 and 7.x-3.1 the banner shows, however the toolbar disappears upon activating github.
Comment #10
larseliasnielsen commentedIn the configuration page, what region have you placed the region in?
I can't seem to reproduce the error.
Comment #11
bhosmer commentedIt happens on both left and right regions.
When you said "latest" I assumed you meant the latest release when I tested it out.
I went and pulled the latest from git, 251d26ebc31, and I don't see this error any longer.
Kudos for the third select box on the configuration options.
RTBC for me.
Comment #12
larseliasnielsen commentedIt occurred to me that the commit, where this bug was fixed, wasn't a part of the latest release, but I'm glad you figured this out yourself.
I've created a new release where this bug is fixed, as you saw when you pulled the repo.
Let me know if you find more bugs :)
Comment #13
bhosmer commentedThanks for giving this the love it needed.
Comment #14
pravin ajaaz commentedComment #15
pravin ajaaz commented