LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Blank webpages after server upgrade (https://www.linuxquestions.org/questions/linux-newbie-8/blank-webpages-after-server-upgrade-4175448965/)

sumdrunkguy 02-06-2013 10:49 PM

Blank webpages after server upgrade
 
Hello everyone,

I recently upgraded my server from

Plesk Control Panel version psa v8.6.0_build86080930.08 os_CentOS 4.2
Operating system Linux 2.6.9-023stab043.1-smp
php 5.2.9-1

to

OS CentOS 6.3 (Final)
Panel version 11.0.9 Update #35
PHP 5.3.3

After the upgrade a few of my sites are serving blank pages. An example of the page is shown below.

Code:

<?php
require_once('init.php');
$loadClass = SB_Modules::loadClass('Modules_Login');
$loginObject = new Modules_Login('vp0h4792b5g');
$loginObject->init();
$loginObject->processAction();
$loadClass = SB_Modules::loadClass('Modules_Statistics');
$statisticsObject = new Modules_Statistics('joydy496y3n');
$statisticsObject->init();
$statisticsObject->processAction();
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Teas and Wellness Centre - Home</title><meta name="DESCRIPTION" content=""><meta name="KEYWORDS" content="Teas, Wellness, Health, Green Tea, "><meta name="GENERATOR" content="Parallels Plesk Sitebuilder 4.5.0"><link href="css/styles.css?template=av-243&colorScheme=red&header=&button=buttons1" rel="stylesheet" type="text/css"></head><BODY TOPMARGIN="52" RIGHTMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" style="background-image: url(images/bg1.gif?template=av-243&colorScheme=red&header=&button=buttons1);"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="background:url(blue/images/bg2.gif?template=av-243&colorScheme=red&header=&button=buttons1) repeat-x;"><tr><td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(images/bg2.jpg?template=av-243&colorScheme=red&header=&button=buttons1);background-repeat: repeat-x;background-position: left top;"><tr><td height="5"></td><td width="780" rowspan="2" align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="5" align="left" valign="top"></td></tr><tr><td height="66" align="left" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="16" align="left" valign="top"><img src="images/bg_tmenu3.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="16" height="66"></td><td align="left" valign="middle" background="images/bg_tmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1"><table align="center" cellpadding="0" cellspacing="0"><tr><td style="padding-left:10px; padding-right:10px;" class="menua"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page29.php" class="menua">Home</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page1.php" class="menu">Teas and Wellness Centre</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page31.php" class="menu">Dragons Lair Teas</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page6.php" class="menu">Reading Room</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page7.php" class="menu">Wellness Room</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page39.php" class="menu"><?php
echo $loginObject->getMainMenuTitle('Customer Login');
?></a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page34.php" class="menu">Ready to Shop</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page30.php" class="menu">News &amp; Events</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page3.php" class="menu">Dragons Lair Unplugged</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page2.php" class="menu">Contact Us</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page5.php" class="menu">Customer Reviews</a></div></td><td><img src="images/line_top.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td><td style="padding-left:10px; padding-right:10px;" class="menu"><div align="center"><img src="images/bullet.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="9" height="9"><br><a href="page8.php" class="menu">Wholesale</a></div></td></tr></table></td><td width="14" align="right" valign="top"><img src="images/bg_tmenu2.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="14" height="66"></td></tr></table></td></tr><tr><td align="left" valign="top"><table width="100%" height="207" border="0" align="center" cellpadding="0" cellspacing="0" background="images/header_bg.jpg?template=av-243&colorScheme=red&header=&button=buttons1"><tr><td class="line1"><img src="images/space.gif?template=av-243&colorScheme=red&header=&button=buttons1"></td></tr><tr><td align="right" valign="middle" style="background-image: url(images/header.jpg?template=av-243&colorScheme=red&header=&button=buttons1);background-repeat: no-repeat;background-position: right top;"><table width="350" align="left" cellpadding="0" cellspacing="0" style="padding-top:10px;"><tr><td align="center"><a href="./"><img src="images/logo/b23f82b87858dcd793706048601e1712.gif?template=av-243&colorScheme=red&header=&button=buttons1" border="0" alt=""></a></td></tr><tr><td align="center" class="company" style="padding-top:10px;">Teas and Wellness Centre</td></tr><tr><td align="center" class="slogan"></td></tr></table></td></tr></table></td></tr><tr><td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="12" align="left" valign="top"><img src="images/bg_tleft.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="12" height="4"></td><td align="left" valign="top" background="images/bg_tcent.gif?template=av-243&colorScheme=red&header=&button=buttons1"><img src="images/bg_tcent.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="1" height="4"></td><td width="10" align="left" valign="top"><img src="images/bg_tright.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="10" height="4"></td></tr><tr><td width="12" align="left" valign="top" background="images/bg_submenu1.gif?template=av-243&colorScheme=red&header=&button=buttons1"><img src="images/bg_submenu1.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="12" height="1"></td><td align="left" valign="top" background="images/bg_submenu.gif?template=av-243&colorScheme=red&header=&button=buttons1"><table width="100%" border="0" cellspacing="1" cellpadding="0"><tr><td align="right" valign="top" background="images/bg_leftline.gif?template=av-243&colorScheme=red&header=&button=buttons1"><img src="images/bg_leftline.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="162" height="1"><br><br><table width="150" border="0" cellspacing="0" cellpadding="0"><tr><td width="150" align="left"><table border="0" cellpadding="0" cellspacing="0"></table></td></tr></table></td><td height="300" valign="top"><img src="images/space.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="598" height="15"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="text-header" style="padding-top:5px;padding-left:20px;">Home</td><td style="padding-left:6px;"><img src="images/icon_text.gif?template=av-243&colorScheme=red&header=&button=buttons1" alt="" width="17" height="17" border="0"></td></tr></table><br><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="pageContent" name="SB_stretch"><div>
<div><span style="font-family: Times New Roman"><span style="font-size: medium">
<div>
<div>&nbsp;</div>
</div>
<div>&nbsp;</div>
</span></span></div>
</div>
<span style="font-family: Times New Roman">
<div>
<div><strong><span style="color: rgb(255, 0, 0);"><span style="font-size: medium;">Welcome to </span></span></strong><span><span style="font-size: medium"><br />
<br />
</span></span></div>
</div>
<span style="font-size: x-large;"><strong>Dragons Lair Teas and Wellness Centre<br />
</strong></span><br />
<span style="font-size: large;">Since we have opened the door in December 2008, Dragons Lair Speciality Teas has evolved into Dragons Lair Teas and Wellness Centre in May, 2012. &nbsp;We have now added a team of holistic health and wellness practitioners to our Wellness Centre. &nbsp;We still Sell and Serve Premium loose leaf teas from around the world, providing a Relaxed Seating and Meeting Place, Tea wares, Gift Wares, Accessories and more.....<br />
<br />
You have to come check out our new and bigger facility and be a part of our Wellness Community in Westbank, British Columbia in the Vintage View Centre. &nbsp;<br />
<br />
We have the Tea Room, Wellness Room, Reading Room, Raynor Massage Studio, Raynor School of Massage &amp; Training (Canada) and Health is Bliss all under one roof; providing wellness and health, bodywork and treatment, support and spiritual growth. &nbsp;</span><br />
<br />
<div>&nbsp;<!-- Delete this text and enter your script here. //--></div>
</span><?php
echo $statisticsObject->getContentBlock();
?><br/><br /></td></tr></table></td></tr></table></td><td width="10" align="left" valign="top" background="images/bg_submenu2.gif?template=av-243&colorScheme=red&header=&button=buttons1"><img src="images/bg_submenu2.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="10" height="1"></td></tr><tr><td width="12" align="left" valign="top"><img src="images/bg_left.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="12" height="1"></td><td align="left" valign="top" background="images/bg_cent.gif?template=av-243&colorScheme=red&header=&button=buttons1"><img src="images/bg_cent.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="1"></td><td align="left" valign="top"><img src="images/bg_right.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="10" height="1"></td></tr></table></td></tr><tr><td height="66" align="left" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="12" align="left" valign="top"><img src="images/bg_bmenu1.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="12" height="66"></td><td align="center" valign="middle" background="images/bg_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1"><table align="center" cellpadding="0" cellspacing="0"><tr><td style="padding-left:10px; padding-right:10px;" class="bmenua" id="abmenu"><a href="page29.php" class="bmenua">Home</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu2"><a href="page1.php" class="bmenu">Teas and Wellness Centre</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu3"><a href="page31.php" class="bmenu">Dragons Lair Teas</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu4"><a href="page6.php" class="bmenu">Reading Room</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu5"><a href="page7.php" class="bmenu">Wellness Room</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu6"><a href="page39.php" class="bmenu"><?php
echo $loginObject->getMainMenuTitle('Customer Login');
?></a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu7"><a href="page34.php" class="bmenu">Ready to Shop</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu8"><a href="page30.php" class="bmenu">News &amp; Events</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu9"><a href="page3.php" class="bmenu">Dragons Lair Unplugged</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu10"><a href="page2.php" class="bmenu">Contact Us</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu11"><a href="page5.php" class="bmenu">Customer Reviews</a></td><td class="cmenu"><img src="images/line_bmenu.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="2" height="8"></td><td style="padding-left:10px; padding-right:10px;" class="bmenu" id="bmenu12"><a href="page8.php" class="bmenu">Wholesale</a></td></tr></table></td><td width="13" align="right" valign="top"><img src="images/bg_bmenu2.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="13" height="66"></td></tr></table></td></tr><tr><td align="left" valign="top" class="footer"></td></tr></table></td><td></td></tr><tr><td><img src="images/space.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="1" height="1"></td><td><img src="images/space.gif?template=av-243&colorScheme=red&header=&button=buttons1" width="1" height="1"></td></tr></table></td></tr></table></BODY></html>
<?php
$statisticsObject->destruct();
?>



Is there anyone with PHP knowledge that can tell me what's going on here and how I might fix it?

Many thanks

ted_chou12 02-07-2013 02:30 PM

I think you should post your php files along with your html codes, because it doesn't look like that it should show something. I only see loading modules and calling other functions, doesnt look like the page is going to display anything at all! Btw, you can surround your code with {code}{/code} with { changed to [. So it could be easier to read.
Thanks,
Ted

sumdrunkguy 02-07-2013 08:18 PM

Thanks Ted, I edited the post.

Cheers

Quote:

Originally Posted by ted_chou12 (Post 4886470)
I think you should post your php files along with your html codes, because it doesn't look like that it should show something. I only see loading modules and calling other functions, doesnt look like the page is going to display anything at all! Btw, you can surround your code with {code}{/code} with { changed to [. So it could be easier to read.
Thanks,
Ted



All times are GMT -5. The time now is 03:13 AM.