Needs review
Project:
Artists C01
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2008 at 19:19 UTC
Updated:
28 Aug 2008 at 20:57 UTC
Jump to comment: Most recent file
In trying to learn more about theming I've installed the devel themer module. However artistC01 gives a:
"Fatal error: Call to a member function getName() on a non-object ... devel_themer.module on line 339"
when trying to view the theme (outside of the admin area).
According to Moshe who wrote the devel module, "yeah, themer does not use classes."
I don't suppose it would be an easy fix to allow artistC01 to be compatible with the devel module?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | template.php.diff | 770 bytes | ztyx |
Comments
Comment #1
JThan commentedSubscribe
Comment #2
ztyx commentedHi ardarvin,I tried to reproduce the error by enabling ArtistsC01, Devel, 'Devel node access' and 'Theme developer' but could not. My versions are:ArtistsC01: 6.x-1.1Devel*: 6.x-1.8,,,so on my computer ArtistsC01 seems to be fully compatible with Devel as far as I can see.What versions do you have? Are you positive that your problem goes away when you disable the Devel module?I have been able to reproduce the error with:
One needs to leave the administration pages to reproduce it.
EDIT: This is probably related to ArtistsC01 as claimed here: http://drupal.org/node/237056
EDIT #2: Reading the issue referred to above, I managed to reproduce the error.
Comment #3
ztyx commentedThe error was due to using the wrong declaration of
artistsC01_feed_icon(...)as it needed to conform to theme_feed_icon($url,$title). ChangingartistsC01_feed_icon($url)toartistsC01_feed_icon($url, $title)did the trick.I am attaching a patch that fixes this issue and also incorporates the title into the
<a href=...></a>.Comment #4
ztyx commentedComment #5
ztyx commented...if it makes anyone happier I have also proposed a patch to improve this error message as this error might happen to other themers as well and is a mess to debug.
Comment #6
cha0s commented[EDIT] Sorry, I posted too soon, another patch was developed that had the same functionality as mine. :)