Closed (fixed)
Project:
Biolife
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2012 at 21:32 UTC
Updated:
29 Apr 2012 at 16:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
betarobot commentedAll clear in logs on my setup, so the questions is how to see all the notices?
thx
Comment #2
arpieb commentedRegarding the "strict warning" message above, here is a patch to fix that in both node.tpl.php and node--news.tpl.php as the code is the same in both templates. The D7 render() only wants to be passed actual variables as it needs to modify the render array; passing the return value from a function is what's causing the error.
The other errors sound like maybe the Noodle base theme isn't enabled...?
Comment #3
michelle@betarobot: Sorry, somehow missed this. You can look in error.log to see them. There's also a change you can make with the E_* stuff to have them show on the screen but I can't remember off the top of my head how that's done. :(
@arpieb: It's possible it wasn't enabled. I didn't realize base themes needed to be enabled. I thought they just needed to be present.
Comment #4
arpieb commentedBase themes in D6 didn't have to be enabled, but if any Drupal core calls try to query active themes the base theme won't show up. I've seen sketchy behavior on D6 and D7 both if a base theme isn't installed - some things appear to work great, others not so much. Think of a theme like a module - if it's not enabled, some of the base theme functions *might not* be available to subthemes.
It might not be the cause of your problems, but if you've got Biolife installed and enabled, which means Noodle Base should be there - it's the only reason I can think of that Drupal core can't find the theme.
I know that I'm working on a very Omega-heavy project right now, and the frontend developers have got the Omega base themes enabled on all sites involved, so there might be something to it...
Comment #5
michelleI don't know... I only installed it out of curiosity so I don't remember if I had the base theme enabled or not. If that's the likely cause of it and no one else is having problems, I suggest just fixing the one you found to be a bug and not worrying about the others unless someone actively using the theme brings them up.
Comment #6
betarobot commented@arpieb thanks for patch! Makes sense I guess, strange enough I haven't see any notices at my dozen of setups. Will commit it with more updates around weekend, as well as to Noodle then, as it shares the same code in this case.
And @Michelle you don't have to enable the base theme in D7 (just sub theme, the rest should pick up). But hmm, @arpieb wondering about your Omega experience now.
Comment #7
arpieb commentedThe bug probably only shows under a couple conditions - the correct set of PHP error flags in the config and what version of PHP you're running on. It seems like one of the 5.3 versions started complaining more about the use of temp arrays generated by function calls than earlier versions (I've run into the same kind of error with other contrib modules on 5.3.x installations).
Who knows with Omega, maybe due to the heavy module integration with Delta and Omega Tools (which we're also using) it is required to be enabled...
On a side not, got BioLife dropped into a site, subthemed it, and really like the layout, features and regions. Nice job!
Comment #8
betarobot commented@arpieb your patch again. And thanks for compliment!