Quote Originally Posted by niccol View Post
In my head at the moment I have an problem when a Zen Cart/Wordpress preview page is called from the Wordpress admin area as a preview. This sounds like there is a weirdness in the way the variable $template is defined in the two programs. I am guessing that the variable is used in both lots of code? I'll have a look when I get a minute.

As long as I believe it is what I have described then I don't have too much problem in just sidestepping it.

Thanks again guys.....
Funny, it must be contagious! After I looked into the theme.php file in wp-admin, I changed the wp_redirect function name just as a test, and started to get the same error that you describe - I absolutely was not getting this error before I edited the file. To my amazement, after reverting the file to its original, the error still appears!

Well I gave up on trying to figure it out because I've settled down on a theme anyways, just wanted to see.

The $template variable is used frequently. I am not sure where it starts or what its exact powers are though, because it is used in different ways on different occasions.