Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:22:23 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155482 Posts in 21708 Topics by 7734 Members
Latest Member: adrielkhollis4
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: WB site not showing in IE7  (Read 1927 times)
oeh

Offline Offline

Posts: 190



« on: March 24, 2009, 11:27:00 PM »

I all.

I desperately deeds HELP.

I have a web page (www.pinscher.no) that are not displaying in IE 7

And t be frank, I have no clue what so ever, what is generating this error.

So, peace someone help me figuring out what is wrong.

Thanks in advance.
Odd Egil

Code:
<?php
// $Id: index.php 2008-04-07 Odd Egil Hansen $
/*
WebsiteBaker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2008, Ryan Djurovich
WebsiteBaker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or(at your option) any later version.
WebsiteBaker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with websitebaker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if(!defined('WB_URL')) {
header('Location: ../index.php');
exit(
0);
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- title></title -->
<?php simplepagehead(); ?>
<link href="<?php echo TEMPLATE_DIR?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo TEMPLATE_DIR?>/print.css" rel="stylesheet" type="text/css" media="print" />
<link rel="stylesheet" href="<?php echo TEMPLATE_DIR?>/css/template_css_brown.css" type="text/css" media="screen" />

<?php if (function_exists("find_my_class") )
{
$path_to_js WB_URL."/modules/fe-codehighlight/prettify.js";
$path_to_css WB_URL."/modules/fe-codehighlight/prettify.css";
ob_start();
page_content();
$content ob_get_contents();
ob_end_clean();
find_my_class($content"pre""prettyprint"$path_to_css$path_to_js);
}
?>


<?php 
// this allows to include the optional module files (frontend.css, frontend.js) into the head section
if(function_exists('register_frontend_modfiles')) {
register_frontend_modfiles('css');
register_frontend_modfiles('js');
}
?>


</head>
<body>
<a name="pagetop">
</a>

<div>
<table width= "100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<?php echo TEMPLATE_DIR?>/images/space.gif" width="770" height="1" alt="" /></td>
</tr>
<tr>
<td><div class="background">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?php echo TEMPLATE_DIR?>/images/center.jpg">
<tr>
<td width="116"><img src="<?php echo TEMPLATE_DIR?>/images/left.jpg" width="116" alt="" /></td>
<td class="title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100" colspan="2" class="title" style="padding-top:0px;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" style="padding-left:10px;"><a href="<?php echo WB_URL?>"><?php page_title('''[WEBSITE_TITLE]'); ?></a></td>
<td></td>
</tr>
</table></td>
</tr>
<tr align="left">
<td width="100%" height="29" valign="bottom" class="mainlevel-nav"><table align="left" cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<ul id="mainlevel-nav">
<?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?>
<?php show_menu2(0SM2_ROOTSM2_STARTSM2_PRETTY'<li [if(class=mainlevel_nav)]>[a]<span>[menu_title]</span></a>'); ?>
<?php ?></ul>
</td>
<td align="left"><?php ShowRssSiteFeed('ISO-8859-10');?></td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="26"><img src="<?php echo TEMPLATE_DIR?>/images/right.jpg" width="26" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="25" background="<?php echo TEMPLATE_DIR?>/images/shadowl.jpg">&nbsp;</td>
<td height="25" bgcolor="#F1F1F1" style="border-bottom: 1px solid #999999; border-top: 5px solid #FFFFFF;">[[editthispage]] &nbsp;  &nbsp;<span class="pathway"><?php show_breadcrumbs(); ?>
</span>
</td>
<td height="25" align="right" bgcolor="#F1F1F1" style="border-bottom: 1px solid #999999; border-top: 5px solid #FFFFFF;"></td>
<td width="11" height="25" align="right" background="<?php echo TEMPLATE_DIR?>/images/shadowr.jpg">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="padding-left:8px; background-repeat: repeat-y;" background="<?php echo TEMPLATE_DIR?>/images/shadowl.jpg">&nbsp;</td>
<td valign="top" style="background-repeat: repeat-y;"background="<?php echo TEMPLATE_DIR?>/images/lb.gif"> <div class="leftrow">
<?php ob_start(); // start output buffer
show_menu(1,1,-1,true,'<tr align="left"><td>[a][menu_title][/a]</td></tr>','','','','class="mainlevel"','class="mainlevel" id="active_menu"'); // call menu
$foo=ob_get_contents(); // put outputbuffer in $foo
ob_end_clean(); // clear outputbuffer
if ($foo<>"") { // some code to execute cause there is some block
echo '<p>';
echo 
'</p>';
echo 
'<table cellpadding="0" cellspacing="0" class="moduletable">';
echo 
'<tr>';
echo 
'<th valign="top">';
echo 
'Meny</th>';
echo 
'</tr>';
echo 
'<tr>';
echo 
'<td>';
echo 
'<table width="100%" border="0" cellpadding="0" cellspacing="0">';
echo 
$foo
echo 
'</table>'// show the block (as saved in $foo)
echo '</td>';
echo 
'</tr>';
echo 
'</table>';
} else { 
// some code for no info
}
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">

<tr>
<?php if(SHOW_SEARCH) { ?>
<td width="100%" height="29">
<table width="99%" cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top" align="left" >S&oslash;k</th>
</tr>
<tr>
<td align="center" valign="middle" >
<div align="center" class="search"><p>
<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION?>" method="post">
<div align="center" class="search">
<input alt="search" class="inputbox" type="text" name="string" size="20" value="<?php echo $TEXT['SEARCH']; ?>..." onblur="if(this.value=='') this.value='<?php echo $TEXT['SEARCH']; ?>...';" onfocus="if(this.value=='<?php echo $TEXT['SEARCH']; ?>...') this.value='';" /></div>
<input type="hidden" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" />
</form>
</p></div>
</td>
</tr>
<tr>
<th valign="top" align="left" >Nyhetsbrev</th>
</tr>
<tr>
<td><p>
<div align="center" class="search">
<?php if(function_exists('newsletter_info')) {
newsletter_info('Nyhetsbrev','nyheter@pinscher.no',true,false); }
?>

</div>
</p></td>
</tr>
<tr>
<td>
<?php
if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
?>

<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<p>
<th valign="top">
<?php echo $TEXT['LOGIN']; ?>
</th>
</p>
</tr>
<tr>
<td>
<form name="login" action="<?php echo LOGIN_URL?>" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<p><input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" /></p>
<p><a href="<?php echo FORGOT_URL?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a></p>
<!-- p><// ?php if(is_numeric(FRONTEND_SIGNUP)) { ? >
<a href="<// ?php echo SIGNUP_URL; ? >"><// ?php echo $TEXT['SIGNUP']; ? ></a></p-->
<!-- <//?php } ? -->
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php
} elseif(FRONTEND_LOGIN AND $wb->is_authenticated()) {
?>

<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<p><th valign="top"> <?php echo $TEXT['LOGGED_IN']; ?></th>
</p>
</tr>
<tr>
<td>
<form name="logout" action="<?php echo LOGOUT_URL?>" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<p><?php echo $TEXT['WELCOME_BACK']; ?>, <a href="<?php echo PREFERENCES_URL?>"></p>
<p><?php echo $wb->get_display_name(); ?></a></p>
<p><input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" /></p>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php
}
?>

</td>
</tr>
<tr>
<td><?php page_content(5); ?></td>
</tr>
</table>
</td>
<?php
}
?>

</tr>
</table>
</div>
</td>
<td valign="top" bgcolor="#FAFAFA" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td align="left" valign="top"><?php page_content(3); ?></td>
<td align="left" valign="top"><?php page_content(4); ?></td>
</tr>
<tr align="left" valign="top">
<td style=" border-top: 4px solid #FFFFFF; padding: 5px;" colspan="2">
<div class="main">
<table class="contentpaneopen">
<tr>
<td class="contentheading" width="100%">
[[editthispage]]&nbsp;<?php page_title('','[PAGE_TITLE]'); ?>
</td>
</tr>
</table>
<table class="contentpaneopen">
<tr>
<td valign="top" colspan="2">
<?php if (class_exists('imageOptimizer')) {
ob_start();
page_content();
$content ob_get_contents();
ob_end_clean();
image_optimize($page_id$content);
}
else {
page_content();
}
?>


<br /><br /></td>
</tr>
</table>
</div></td>
</tr>
</table>
</td>
<?php ob_start(); // start output buffer
echo "<div id=\"mynews\">"//
display_news_items(113601'Fra styret''Les mer''For tiden ingen nyheter'true'<a><img>'false' (m.d.Y)'31);
display_news_items(12101'Fra avlsrådet''Les mer''For tiden ingen nyheter'true'<a><img>'false' (m.d.Y)'31);
display_news_items(14301'Pinschertreff''Les mer''For tiden ingen nyheter'true'<a><img>'false' (m.d.Y)'31);
display_news_items(13301'Utstilling''Les mer''For tiden ingen nyheter'true'<a><img>'false' (m.d.Y)'31);
echo 
"</div>";
page_content(2); // call menu
$foo=ob_get_contents(); // put outputbuffer in $foo
ob_end_clean(); // clear outputbuffer
if ($foo<>"") { // some code to execute cause there is some block
echo '<td valign="top" style="background-repeat: repeat-y; "background="'.TEMPLATE_DIR.'/images/rb.gif">';
echo 
'<div class="rightrow">';
echo 
'<p>';
echo 
'</p>';
echo 
'<table cellpadding="0" cellspacing="0" class="moduletable">';
echo 
'<tr>';
echo 
'<th valign="top">';
echo 
'Nyheter</th>';
echo 
'</tr>';
echo 
'<tr>';
echo 
'<td>';
echo 
'<table width="100%" cellspacing="1" cellpadding="0" border="0" align="">';
echo 
'<tr>';
echo 
'<td>';
echo 
$foo// show the block (as saved in $foo)
echo '</td>';
echo 
'</tr>';
echo 
'</table>';
echo 
'</td>'
echo 
'</tr>';
echo 
'</table>';
echo 
'</div>';
echo 
'</td>';
} else { 
// some code for no info
}
?>

<td valign="top" style="padding-right: 8px; background-repeat: repeat-y;" background="<?php echo TEMPLATE_DIR?>/images/shadowr.jpg">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?php echo TEMPLATE_DIR?>/images/center2.jpg">
<tr>
<td width="26"><img src="<?php echo TEMPLATE_DIR?>/images/left2.jpg" /></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="left"><a href="#pagetop"><img src="<?php echo TEMPLATE_DIR?>/images/ltop.jpg" alt="Top!" border="0" /></a> </td>
<td align="center"><div class="footer"><div align="center"><?php page_footer(); ?> <br />&copy;&nbsp;<?php page_title('','[WEBSITE_TITLE]'); ?> Powered by <a href="http://www.websitebaker.org/" target="_blank">
websitebaker</a> </div>
</div>
</td>
<td width="30" align="right"><a href="#pagetop"><img src="<?php echo TEMPLATE_DIR?>/images/rtop.jpg" alt="Top!" border="0" /></a></td>
</tr>
</table>
</td>
<td width="26"><img src="<?php echo TEMPLATE_DIR?>/images/right2.jpg" /></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
</body>
</html>
Logged

Good bye ;-{(
oeh ;-}>
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: March 25, 2009, 12:38:35 AM »

Hi,
the page is not shown also in FF3 and Opera,
because it's a totaly white page without any line of HTML in the source, there must an error occur realy early in your document.
Think it's this:
Code:
<?php simplepagehead(); ?>
You call a function, where "the hell" is this function, can't see any include or similar above this line ...

Would be a good idea to set the error_level to E_ALL in the advanced settings/options, so it should produce an error message ...

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
oeh

Offline Offline

Posts: 190



« Reply #2 on: March 25, 2009, 01:18:39 AM »

Hi,
the page is not shown also in FF3 and Opera,
because it's a totaly white page without any line of HTML in the source, there must an error occur realy early in your document.
Think it's this:
Code:
<?php simplepagehead(); ?>
You call a function, where "the hell" is this function, can't see any include or similar above this line ...

Would be a good idea to set the error_level to E_ALL in the advanced settings/options, so it should produce an error message ...

Regards Bernd

Hi Bernd.
Thank you for the quick response.

This is what I'm getting setting the error level to "E_ALL"
 
Code:
Strict Standards: Non-static method dbConnect::getVersion() should not be called statically in /home/2/p/pinscher/www/modules/img_optimizer/include.php on line 50

Strict Standards: Non-static method rhTools::getVersion() should not be called statically in /home/2/p/pinscher/www/modules/img_optimizer/include.php on line 63

Warning: Cannot modify header information - headers already sent by (output started at /home/2/p/pinscher/www/modules/img_optimizer/include.php:50) in /home/2/p/pinscher/www/modules/searchtools/search.php on line 49

Tis code is from the snippet Simple PageHead
@http://www.websitebakers.com/pages/modules/various/simple-page-head.php
Code:
<?php simplepagehead(); ?>
My be its totally wrong ?-)

Regards
Odd Egil
Logged

Good bye ;-{(
oeh ;-}>
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!