I have disabled and uninstalled theme dev and later found that it keeps filling the log with the message:
Theme key "placeholder" not found.

The messages get logged each time I edit a view (??).

Comments

amontero’s picture

Title: Module keeps writing log messages to watchdog when uninstalled » Change logging source to avoid confusion with core's theme.inc
Status: Active » Needs review
StatusFileSize
new956 bytes

My fault, not a theme_developer issue.
I was wrong because I found the string inside the modules dir when grepping for it.
It is also in 'includes/theme.inc' and by deleting the module the messages keep appearing.
Obviously, I was blaming the wrong module.
Patched module to help distinguish messages in log.

eojthebrave’s picture

Status: Needs review » Reviewed & tested by the community

Tbis is a super simple fix and makes sense. Documentation for watchdog() even suggests using the module name as the $type argument.

kenneth.venken’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

devel_themer_theme_twin should behave exactly like the core theme() function. Changing the watchdog source, changes the behaviour of the theme function. Is there any merit in being able to distinguish between the two sources?

amontero’s picture

I'm no theme developer, so I'm not sure if distinguishing the true source would be of any benefit. As I've been banging my head for a while, seemed to me worthwile to patch in case somebody else runs on the same when troubleshooting a site.
Using different source can help some admins unfamiliar with theming like me making obvious where is the source of the trouble. I also think as #2, too.
Again, I'm not familiar with theming, but IMHO, it can't hurt not replicating the behavior of theme() core just for this and avoid confusion.
My 2c.

amontero’s picture

Status: Closed (works as designed) » Needs review

Bumping, just in case closed issues do not notify.

kenneth.venken’s picture

Maybe the error message should be improved to be more descriptive.
This should probably be moved to core.

Theme key "placeholder" not found means that the placeholder.tpl.php or theme_placeholder() couldn't be found.

jason.fisher’s picture

Agree that this should be moved to core .. my cron mail log would appreciate it .. ;)

kenneth.venken’s picture

Project: Theme developer »
Version: 7.x-1.x-dev »
Status: Needs review » Active

Moving to core as this is a won't fix for theme developer for now.

amontero’s picture

Project: » Theme developer
Version: » 7.x-1.x-dev

I still think that devel_themer_theme_twin function can mimic core's one but worthwhile having a distinguishable message to just avoid anyone else mistakenly look at the wrong place like I did. This won't impair theme_developer functionality and seems an easy solution IMO, too.

I think improving the message would not solve anything, since devel_themer_theme_twin would reflect that change as a twin, would't it? In case core's message could be improved it should be another different issue.

Anyway, I'm not 100% about it, so maybe some core people take is needed. Note that "Drupal core" and not "core" is the appropiate project. Not sure if against 7.x or 8.x.

kenneth.venken’s picture

Status: Active » Fixed

Ok, i give in ;). Committed to 7.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.