blank page after successful install ... due to short tags?
Posted: Wed May 18, 2005 4:52 pm
Well ... I decided to try this out (the 'stable' 0.9.2) ... and the setup ran well (except that the zip must have failed when downloading ... some directories weren't there, but I think the tar was ok)
But as soon as I tried to use it I got a blank page ... after 1 reinstallation and getting pretty sick of it ... I decided to take one more look ... admin/login.php works, but as soon as one gets logged in ... I get this as source (debug enabled)
Hmm ... 'short tags' ("<?" instead of "<?php") ... and this server has those toggled off ... so I'm assuming this 'blank page' issue is related to the other ones that seems to be unsolved?
(might very well be that those has short tags off aswell?)
btw, from the php manual
Are there many places in the code that use short tags?
But as soon as I tried to use it I got a blank page ... after 1 reinstallation and getting pretty sick of it ... I decided to take one more look ... admin/login.php works, but as soon as one gets logged in ... I get this as source (debug enabled)
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
<title>CMS Admin System</title>
<link rel="stylesheet" type="text/css" href="style.php" />
<link rel="stylesheet" type="text/css" href="tab.php" />
<__script__ type="text/javascript" src="../lib/helparea.js"></__script>
</head>
</__body >
<?
//CHANGED
require_once("../include.php");
$theme=get_preference(get_userid(),"admintheme");
if (file_exists(dirname(__FILE__)."/themes/$theme/header.php")) {
include(dirname(__FILE__)."/themes/$theme/header.php");
} else {
include(dirname(__FILE__)."/themes/default/header.php");
}
//STOP
?>
<?
<?
//CHANGED
require_once("../include.php");
$theme=get_preference(get_userid(),"admintheme");
//echo "theme:$theme";
if (file_exists(dirname(__FILE__)."/themes/$theme/footer.php")) {
include(dirname(__FILE__)."/themes/$theme/footer.php");
} else {
include(dirname(__FILE__)."/themes/default/footer.php");
}
//STOP
?>
<div id="debugfooter"><div><p>set datestyle='ISO'</p>
<p>SELECT sitepref_name, sitepref_value from test1siteprefs</p>
<p>SELECT * FROM test1modules ORDER BY module_name</p>
</div>
</div><__body>
</__html>
(might very well be that those has short tags off aswell?)
btw, from the php manual
I'm not in the mood to go through unknown sourcecode to hunt out every short tag ... so I instead aska question...Note: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control, because short tags may not be supported on the target server. For portable, redistributable code, be sure not to use short tags.
Are there many places in the code that use short tags?