I'm working with the e-journal module. I've been trying to override one of the themeable functions, but every time I add the function into template.php I end up with the site's front page going blank (the page should be effected by the newly themed function).

Most of the ideas I've been able to find by searching through the forums related to not enough memory for PHP. I already have the memory limit at 24MB, so I don't think that's my problem.

I've added this to the template.php:

// Allow theming of the index page for a particular issue.
function phptemplate_ejournal_list_this_issue(&$journal, $iid) {
	return _phptemplate_callback('ejournal_list_this_issue', array('journal' => $journal, 'iid' => $iid));
}

I then created a "ejournal_list_this_issue.tpl.php" file. I've tried various things in there (ranging from a simple div tag to a complete of the original function), all with the same result. If I comment out the lines from template.php everything's fine. Node and admin pages all work fine. Any suggestions about where I've gone wrong would be most helpful.

Aaron

Comments

jddunn’s picture

I'm having the same problem trying to override the user profile layout with 4.65/phpbluemarine using these instructions. Any suggestions would be much appreciated.

acrosman’s picture

As a work around I've just been doing the whole override in PHP in the template.php file. It's not a good solution, but it's kept the project moving until I can find a proper one.