Spend whole day trying to make working simple debugging code for Tweme theme (using D8).
function tweme_preprocess_node(&$variables) {
$node = $variables['elements']['#node'];
kint($node);
kim ($variables);
}
The only response is blank page no other info.
What's wrong with my debugging code?
var_dump($variables);
instead plusdie()
if it's test server. Maybe your$node
object is too big to render and you've got out of memory error. But without access to error log it's just a guessing. You need to provide more information about the problem or at least clarify which line exactly causing the blank page.