Closed (duplicate)
Project:
Omega
Version:
7.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jan 2012 at 17:01 UTC
Updated:
13 Jul 2012 at 19:00 UTC
Hey thank you so much for such amazing theme.
I have found a little "bug" or maybe inconvenience when developing a new Omega sub-theme. If you try to output data using the function dpm() inside the .inc files for preprocess and process hook you don't get any output on your screen, however doing the same thing inside the template.php file using the appropriate hook it work.
So, this doesn't output anything:
<?php
function mytheme_alpha_preprocess_node(&$vars) {
dpm($vars);
}
But this other method works:
<?php
function mytheme_preprocess_node(&$vars) {
dpm($vars);
}
Any idea why this is happening?
Thank you.
Comments
Comment #1
marcoka commenteddid you try dsm() too?
Comment #2
dhalbert commentedTry the new D7 debug() function, too, which is built-in and is not part of the Devel module.
I am just wondering if your
mytheme_alpha_preprocess_node()is actually getting called at all.Comment #3
altrugon commented@e-anima Apparently dsm() never was meant to be created but since this function is well known by the users it was kept on the D7 version but it just calls dpm()
@dhalbert I didn't know that debug() function, I will try it thanks.
Comment #4
marcoka commentedrelated :#1422072: dpm() and/or debug() gives no output anywhere execept page.tpl.php or preprocess_page
Comment #5
marcoka commentedComment #6
marcoka commentedComment #7
cellar door commentedClosing as a duplicate of #1422072 which has good suggestions in it.