PHP only half-loading page

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

dantasman
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Apr 18, 2013 4:55 am

PHP only half-loading page

Postby dantasman » Thu Apr 18, 2013 5:11 am

I'm not sure when this started happening because I don't use the site much anymore, however, my site isn't loading more than half the page and I'm not sure why this is the case.

http://DormTshirts.com

Any suggestions? All the things referenced in the code are there so it's not a matter of pulling content from an incorrect source (images, flash, database).

Thanks!

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: PHP only half-loading page

Postby johnj » Thu Apr 18, 2013 5:26 am

You need to post the code.

dantasman
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Apr 18, 2013 4:55 am

Re: PHP only half-loading page

Postby dantasman » Thu Apr 18, 2013 5:33 am

Sorry, here is the code for index.php:

Code: Select all

<?php
include "ops/content.php";
session_start();
if ( !$_GET["pageid"] ) { $_GET["pageid"] = "home"; }
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta name="google-site-verification" content="3ZAvVmolmMDEyG_pWOIvPrNje_EmzPM1n_dq6_vIUdc" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <title>DormTshirts.com</title>
      <link type="text/css" rel="stylesheet" href="dts.css">
      <script src="js/smoothscroll.js" type="text/javascript">
      </script>
        <script language='JavaScript' type='text/javascript'>
          var requiredMajorVersion = 9;
          var requiredMinorVersion = 0;
          var requiredRevision = 0;
        </script>

      </head>
  <body>
    <div class="DivPage">
      <div class="DivHeader">
        <div class="DivLogo">
          <a href="index.php?pageid=home"><img src="images/dormtshirts.gif" border="0" /></a>
        </div>
        <div class="DivMinorNav">
        <?php showFlashContent("Dts1MinorMenu", $_GET["pageid"], "", 145, 112, "ffffff", "window"); ?>
        </div>
      <div class="DivTagline">
          <img src="images/tagline.jpg" border="0">
      </div>
        <div class="DivLogin">         
          <p><br /><?php showLoginContent() ?></p>
        </div>
      </div>
      <div class="DivMainNav">
        <?php showFlashContent("DtsNavMenu", $_GET["pageid"], "", 856, 92, "ffffff", "transparent"); ?>
      </div>
      <div class="DivContent">
        <p><?php showPageContent( $_GET["pageid"] ); ?></p>
      </div>
     <div class="DivFooter">
        <p><br /><br /><br /><?php showFooterContent(); ?><br /><br /></p>
     </div>
    </div>
   <script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
   </script>
   <script type="text/javascript">
   _uacct = "UA-1551322-6";
   urchinTracker();
   </script>
  </body>
</html>

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: PHP only half-loading page

Postby seandisanti » Thu Apr 18, 2013 10:59 am

The issue is most likely going to be in your error log. I would guess that a fatal error is occurring that is preventing the load. Since it's a production server, errors wouldn't (or at least shouldn't) be presented to every visitor when they're encountered. look in your error logs and find the most recent set of errors based on the time. I say set, because usually coupling of functionality typically turns one error into 3 or 4 cascading failures that will have similar timestamps.

User avatar
sandeep605085
New php-forum User
New php-forum User
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions
Contact:

Re: PHP only half-loading page

Postby sandeep605085 » Thu Apr 18, 2013 12:35 pm

I guess the problem might be with htaccess setting or check you htaccess setting.

better try below once and check if this works for you:
Change every instance of "AllowOverride None" to "AllowOverride All" In the 'httpd.conf' file of conf directory of Apache and restart the Apache server.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: PHP only half-loading page

Postby johnj » Thu Apr 18, 2013 7:26 pm

The page is getting loaded upto domshirts.gif image. Beyond that it has to load the flash content. First, check if your browser has the required flash plugins. Next, check what is wrong with the flash code that was suppose to load.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 3 guests

cron