homepage Welcome to WebmasterWorld Guest from 107.22.70.215
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Local vrs Remote behaviour driving me nuts.
url, html, script, local, remote
Marck




msg:594468
 9:00 pm on Jul 18, 2004 (gmt 0)

Hello,

I've got a weird problem. It's driving me nuts. I have got a website (on a server somewhere) which works fine.

I've copied ALL files (just as I have been doing since the last year) to my local server. I change to configuration.php for the url, www offset.

Now, if I open my local site, some pictures will NOT show (even tho these are present and can be opened directly using IE and Netscape). The URLs are correct, since other pictures, on the same location are shown. When trying to open these files in netscape or IE with a deep link, they do NOT show.

Also, IE reports an error ( line 2, char 24 ';' expected) and -sometimes also- (line 2, char 11 ')' expected).

For yall to be able to help me, this is the SOURCE output from IE:


<?xml version="1.0"?>

<head>

<title>The Title</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta name="description" content="page description," />
<meta name="keywords" content="word, word, etc" />
<base href="http://local.example.org/" />
<script language="JavaScript1.2" src="http://local.example.org/includes/js/rollover.js" type="text/javascript"></script>
<script language="JavaScript1.2" src="http://local.example.org/includes/js/mambojavascript.js" type="text/javascript"></script>

<script language="JavaScript" type="text/javascript">

<!--
function MM_reloadPage(init)
{ //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

//-->
</script>
<script language="JavaScript1.2" type="text/JavaScript1.2">
<!--
_editor_url = 'http://local.example.org/editor/htmlarea2/'; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }

if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else {
document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>');
}
//-->
</script>

<link href="templates/marck/css/template_css.css" rel="stylesheet" type="text/css" />

</head>

Now, I viewed the sources of the local version and the remote version and they are the same (except for the www-url).

And all this did work a month ago (since my last update).

The local.example.org refers to a dynamic ip, which resolves to my local server. There are no further differences to the remote version.

Anyone got any idea about what is happening here?

Help will be appreciated :-)

[edited by: tedster at 2:32 am (utc) on July 19, 2004]
[edit reason] remove specifics [/edit]

 

kaled




msg:594469
 9:33 pm on Jul 18, 2004 (gmt 0)

It may not be relevant, but since a base href is defined, all relative urls will refer to the original site.

Do some images use abolute urls whilst others use relative urls? In addition, might there be an issue of case-sensitivity?

Kaled.

Marck




msg:594470
 9:50 pm on Jul 18, 2004 (gmt 0)

I think you're wrong there, 'www.example.com' is the remote site, 'local.example.org' is my local server. I'm pretty sure that that is OK.

All urls, pertaining to these images, are constructed dynamically (no hardcoded links) so that is not an issue either.

(If, in IE, i select the properties of an image I get this URL:
[example.com...]

On the local server that becomes:
[local.example.org...]

These are correct, images are in that folder. But some will not show.
)

Upper/lowercase is a problem on the remote (unix) server, which wants every filename to be in lowercaps.
But that does not matter on my local (windows) server.
So, that is not the issue.

Anyways, thanks for the hints. But I already checked these :-)

It's really weird. It really looks like there is something wrong with the images (but I still wonder why I can see them when coming from the remote server).

For bug #2, the IE errors, it looks like there is something wrong with the 'content' tags. Yet I dont know what.....

[edited by: tedster at 2:31 am (utc) on July 19, 2004]

Dudermont




msg:594471
 2:23 am on Jul 19, 2004 (gmt 0)

Ok this is just a guess but I think that you might have somthing blocking people from hotlinking to your images or something along those lines.

Because I can view the first one but not the second one. But if I navigate to the folder then click on the image it works perfectly. Just when I click on the image from the link from here.

p.s. You are not supposed to post links to your site from here. It will most likey be removed pretty soon.

Marck




msg:594472
 6:50 am on Jul 19, 2004 (gmt 0)

Ofcourse you can not see the second picture: my local server = offline :-) It is not supposed to be accessable from outside my lan anyways.

But again that is not the issue. If I myself from the local server directly try to open the second picture then it will NOT show. The image is there, and viewable using any other means. And this only happens with 5 of the 9 images....

And for the links, well a mod will have to change my post, I cant find an 'edit' button here. But thanks for making me aware:)

Dudermont




msg:594473
 7:08 am on Jul 19, 2004 (gmt 0)

Actually if it is offline now it wasn't earlier and if it is not supposed to be accessable outside your lan then not a very good job is being done because I could see the directory listing and could view the image when I clicked on it from the directory listing that was showing up. :)

Marck




msg:594474
 7:35 am on Jul 19, 2004 (gmt 0)

Let me restate. It -can- be accesible from the outside, since I sometimes use it as a backup and then I want it to be accessible. So yesterday, when I was working on it, anybody could access it.

But normally it is offline (hence not accessible) and that is how it is normally.

If you could see the directory listing, did the image show up?

Dudermont




msg:594475
 8:45 am on Jul 19, 2004 (gmt 0)

The image didn't show up when I clicked the link. So I deleted the image name from the address bar and the image directory came up.

I saw the image that you linked to and clicked on it. The image came up. So it was there.

So I came back here clicked on the the second link again amd again it didn't show up.

So I figured since I could see the image when I went through the directory and clicked on it, that it might be a .htaccess file set to not allow linking to your images or something.

kaled




msg:594476
 9:48 am on Jul 19, 2004 (gmt 0)

HTTP headers ok? In particular, Content-type.

Marck




msg:594477
 11:45 am on Jul 19, 2004 (gmt 0)

ht access file.. Mmm. Since I'm at work right now, I cannot go deeper on the subject right away. But I will surely look into that.

Content tags: I couldnt find anything strange with that either.

Marck




msg:594478
 3:32 pm on Jul 19, 2004 (gmt 0)

still can't find it.

Narrowed bug2 somewhat down:


<?xml version="1.0"?>
<html>
<head>
<script language="JavaScript" src="http://www.MyRemoteSite.com/includes/js/rollover.js" type="text/javascript"></script>
<script language="JavaScript"
<body bgcolor="#FFFFFF">
hallo
</body>
</html>

This works, but if I replace MyRemoteSite by Localhost, then IE pops up with an error.

Both .js scripts are identical, and in the same (relative) location.

So I checked the hosts file = OK.
So I checked my browser settings (even tho it doesnt work under Netscape either). Settings are LOW. Still no success.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved