Forum Moderators: open
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>
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]
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]
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.
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:)
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?
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.
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.