Web Hosting Talk







View Full Version : Homepage isn't loading properly!


DavidV
02-28-2004, 02:31 PM
Hello everyone,
Wednesday night I was doing some minor programming on my site. Nothing major at all. All of a sudden Explorer crashed and now my homepage doesn't load any content at all. You can still see the title and the background.
I've emailed my development company but haven't gotten a reply.
My site is built on PHP/MySQL.
Any ideas?

Here's a link LatinsOnline.com (http://latinsonline.com)

Thanks everyone.

DWS
02-28-2004, 03:27 PM
Well, there is nothing in the <body> tag of your page... so it is not showing anything.

<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 background="http://www.latinsonline.com/img/bg.gif" id=bbody stats=1>



<script language="JavaScript">
document.location='?&resolution='+Scr();
</script>
</body>

DavidV
02-28-2004, 06:33 PM
Didn't notice that. What's the next step? Sorry to sound like such a newbie.
Here's what I have in the body tag of my index.html file.



<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 background="<#ROOTHTML#>img/bg.gif" id=bbody stats=1>
[#if MEMBER_INSTANT_MESSENGER="on"#]
<script language="JavaScript">
acePopup("messenger.php?<#SID#>","Instant_messenger",240,400,null,1,1);
</script>
[#endif MEMBER_INSTANT_MESSENGER#]
[#if SHOW_POPUP_ADV!="" && ACTION!="advert"#]
<script language="JavaScript">
acePopup("?action=advert&<#SID#>","advert",[#POPUP_W#],[#POPUP_H#],"random",1,1);
</script>
[#endif SHOW_POPUP_ADV#]

[#if ACTION='advert'#]
[#if ADV_POPUP#][#begin ADV_POPUP#][#if CUSTOM_CODE!=""#][#CUSTOM_CODE#][#else CUSTOM_CODE#]<a target="_blank" href="adv.php?id=[#ID#]"><img src="<#ROOTHTML#>images/banners/[#IMAGE#]" alt="[#DESCR#]" border="0"></a>[#endif CUSTOM_CODE#][#end ADV_POPUP#][#endif ADV_POPUP#]
[#else ACTION#]

[#if !iResolution#]
<script language="JavaScript">
document.location='?<#SID#>&resolution='+Scr();
</script>
[#else iResolution#]
<!-- :banner: -->
[#if ADV_RIGHT!='' && iResolution='0'#]
<div id="Layer1" style="position:absolute; left:770px; top:10px; width:210px; height:300px; z-index:1">
[#begin ADV_RIGHT#][#if CUSTOM_CODE!=""#][#CUSTOM_CODE#][#else CUSTOM_CODE#]
[#if ITYPE='swf'#]
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="120" HEIGHT="500" id="cap6" ALIGN=""><PARAM NAME=movie VALUE="<#ROOTHTML#>images/banners/[#IMAGE#]"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="<#ROOTHTML#>images/banners/[#IMAGE#]" menu=false quality=high bgcolor=#FFFFFF WIDTH="120" HEIGHT="500" NAME="cap6" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
[#else#]
[#if ITYPE!=''#]
<a target="_blank" href="adv.php?id=[#ID#]"><img src="<#ROOTHTML#>images/banners/[#IMAGE#]" alt="[#DESCR#]" border="0"></a>
[#endif#][#endif#]
[#endif CUSTOM_CODE#][#end ADV_RIGHT#]
</div>

[#endif ADV_RIGHT#]
<!-- :/banner: -->


[#inc headers.html#]


[#if ACTION!='notes'&&ID!=MEMBER_ID#]
[#inc left.html#]
[#inc body_top.html#]
[#else ACTION#]
[#inc left_prof.html#]
[#endif ACTION#]

[#inc <#ACTION#>.html#]

[#if ACTION!='notes'&&ID!=MEMBER_ID#]
[#inc body_bottom.html#]
[#endif ACTION#]

[#endif iResolution#]
[#endif ACTION#]
</body>

DWS
02-28-2004, 06:44 PM
Was the page working before? Were you able to see any content on that page? If so, maybe you uploaded a wrong version of your page.

Next step basically is to either:
- add content on the page and reupload it OR
- upload the right file that had the original content if you still have it saved

DavidV
02-28-2004, 06:48 PM
Yes this page was working before. All content was visible.
I'm not too sure what you mean by the "wrong version" of my page.
I believe I was working on this page when Explorer crashed. After that, it stopped loading properly.

DWS
02-28-2004, 06:49 PM
Just saw your edited post... is that ASP in the body tag? I don't know ASP, so can't suggest anything... but I noticed that when I go to your homepage, I get redirected to http://latinsonline.com/engine/index.php

The code you posted doesn't look like PHP. Find the /engine/index.php and post here if the <body> tag looks any different than what I posted in my first post above.

DWS
02-28-2004, 06:53 PM
Originally posted by DavidV
Yes this page was working before. All content was visible.
I'm not too sure what you mean by the "wrong version" of my page.
I believe I was working on this page when Explorer crashed. After that, it stopped loading properly.

By "wrong version," I meant a wrong file that you might have uploaded by mistake.

Did you finish working on the page when Explorer crashed? Did you save the latest changes?

DavidV
02-28-2004, 06:56 PM
No, that shouldn't be ASP. As far as I know it is written in PHP.
I couldn't find any <body> tag in the index.php file. I thought only html files had <body> tags?

I didn't get to save any last changes that I made before Explorer crashed. There wasn't anything I was doing that should've kept the content from showing though.

DWS
02-28-2004, 07:03 PM
Originally posted by DavidV
No, that shouldn't be ASP. As far as I know it is written in PHP.
I couldn't find any <body> tag in the index.php file. I thought only html files had <body> tags?

That is not php as far as I know. Can you rename the page to .asp and see if that works?

Yes, <body> tag is an HTML tag, but when you try to open a .php page, your browser converts PHP (which is server side scripting language) into readable HTML.

Browser will show whatever is in the <body> tag. So even PHP webpages will have HTML's <body> tag, and possibly PHP functionality (variables, functions, arrays, etc.).

FYI, you can create a whole HTML file and save it as .php, it will work...

DWS
02-28-2004, 07:07 PM
A Basic PHP page would look something like this:

<html>
<head>
<title>Title</title>
</head>
<body>
<?php
echo "Hello World!";
//more php code;
// . . .
// more php code;
?>
<!-- Maybe some HTML -->
<table><tr><td>Test</td></tr></table>
<!-- Some PHP Again -->

<?php
echo "The End!";
?>

</body>
</html>

DavidV
02-28-2004, 07:12 PM
I see. If I change index.php to index.asp, it'll be the only filed saved as an ASP. All the other files are either .html or .php
Should I still change it to .asp?

DavidV
02-28-2004, 07:17 PM
The index.php file actually starts with:

<?
@include_once("config.php");
@include_once("lib/myxml.php");
@include_once("libgeneral.php");

...........

The First code I had posted up above was from my index.html file.

DWS
02-28-2004, 07:35 PM
Just make a copy of the index.html (with the code above) and save it as david.asp... and try opening that.

And yes, the index.php file looks like actual PHP.

I don't know how XML works, but it could even be XML as it is used for your site (second include statement above). Anyways, try ASP first and see if that works.

Edit: Do you have AIM/MSN/Y!? I've to leave in a few mins...

DavidV
02-28-2004, 07:41 PM
I just saved index.html as david.asp

DWS
02-28-2004, 07:42 PM
Weird, it says david.asp not found. Where is it located?

DavidV
02-28-2004, 07:43 PM
yeah. Yahoo!

username: latinsonline

DavidV
02-28-2004, 07:45 PM
latinsonline.com/templates/david.asp

DavidV
02-28-2004, 09:40 PM
Still need help. Anyone out there?

ca-uk
02-28-2004, 10:10 PM
it looks to me like you're using some kind of forum software and your index page is based on some template language - is that the case?

ca-uk
02-28-2004, 10:16 PM
i've just found the cause of your problem but you seem to have removed the page!!

ca-uk
02-28-2004, 10:19 PM
you seem to have fixed it now :)

DavidV
02-28-2004, 11:17 PM
Thanks anyway ca-uk. I appreciate it.

Kudos to DWS for taking the time towalk me through it. Thank you so much!

Mods can you please delete the code I posted? This is part of a proprietary CMS my development company created for me.

Thanks