404 Error Website Problem

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 990 Views - Last Post: 24 June 2011 - 07:25 PM

#1 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

404 Error Website Problem

Posted 22 June 2011 - 11:12 PM

I am having major problems with my website (http://www.daphnechenphotography.com). A lot of the pages shows the 404 page error. I can't seem to know what's wrong with the website. Can anyone help me to take a look at my website? Your help is highly appreciated!

Daphne
Is This A Good Question/Topic? 0
  • +

Replies To: 404 Error Website Problem

#2 Slice  Icon User is offline

  • sudo pacman -S moneyz


Reputation: 242
  • View blog
  • Posts: 704
  • Joined: 24-November 08

Re: 404 Error Website Problem

Posted 23 June 2011 - 05:55 AM

I can't seem to find any 404 errors. But off topic, your navigation bar isn't very consistent. On some pages the link is "Babies" and on others it is "Newborns".

If you have access to php on your host, I would recommend looking into the php "include" function. It is very useful for things such as navigations.

Back to the 404 error, what pages are you encountering this problem with?
Was This Post Helpful? 0
  • +
  • -

#3 codeprada  Icon User is offline

  • Changed Man With Different Priorities
  • member icon

Reputation: 946
  • View blog
  • Posts: 2,355
  • Joined: 15-February 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 06:04 AM

No images seems to show in the slideshows. I also don't see any 404 errors.
Was This Post Helpful? 0
  • +
  • -

#4 Codey09  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 210
  • Joined: 20-August 09

Re: 404 Error Website Problem

Posted 23 June 2011 - 06:58 AM

The only time I got a 404 error was when viewing the images which I only got X's when you click on the view in new window button. Also when you click on the blob it opens up in a new window and there is no way of getting back to the main website. I would of thought it would of been better for consistency to have the blog within the same site and navigation.
Was This Post Helpful? 0
  • +
  • -

#5 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:04 AM

View Postcodeprada, on 23 June 2011 - 06:04 AM, said:

No images seems to show in the slideshows. I also don't see any 404 errors.


I just fixed the 404 error problem two hours ago. It turned out that my file name says "Wedding.html" and the coding says "wedding.html". Ever since I changed the file name to "wedding.html", the error message is gone. However, I still can't seem to find out why the images don't show up.
Was This Post Helpful? 0
  • +
  • -

#6 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:11 AM

View PostSlice, on 23 June 2011 - 05:55 AM, said:

I can't seem to find any 404 errors. But off topic, your navigation bar isn't very consistent. On some pages the link is "Babies" and on others it is "Newborns".

If you have access to php on your host, I would recommend looking into the php "include" function. It is very useful for things such as navigations.

Back to the 404 error, what pages are you encountering this problem with?


I changed "babies" to "newborns" a few days ago. I thought maybe it had caused this problem. Therefore, I changed "newborns" back to "babies" just to see if it makes a difference. It doesn't seem like it does. I will change them back, but thanks for noticing the inconsistency.
Was This Post Helpful? 0
  • +
  • -

#7 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3715
  • View blog
  • Posts: 5,972
  • Joined: 08-June 10

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:19 AM

View Postd312kimo, on 23 June 2011 - 02:04 PM, said:

However, I still can't seem to find out why the images don't show up.

That would be because your image URLs are wrong.

If you look at the XML files you are feeding the Flash movie, like this one for example, you will see a list of URLs. However if you follow the URLs, you just get a 404 error. Not one image I've tested works.

Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.
Was This Post Helpful? 0
  • +
  • -

#8 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:25 AM

View PostAtli, on 23 June 2011 - 07:19 AM, said:

View Postd312kimo, on 23 June 2011 - 02:04 PM, said:

However, I still can't seem to find out why the images don't show up.

That would be because your image URLs are wrong.

If you look at the XML files you are feeding the Flash movie, like this one for example, you will see a list of URLs. However if you follow the URLs, you just get a 404 error. Not one image I've tested works.

Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.



How do I fix these links?
Was This Post Helpful? 0
  • +
  • -

#9 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3715
  • View blog
  • Posts: 5,972
  • Joined: 08-June 10

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:48 AM

Start by finding the exact path where you images are stored. Then update the links to refer to them instead.

For example, if your main HTML file is stored at:
/home/dap/www/index.html
And your images at:
/home/dap/www/Simpleviewer/images/
Then your image URLs should look like:
/Simpleviewer/images/ImageName.jpg

I can't be more specific that that because I don't know where your files are.
Was This Post Helpful? 1
  • +
  • -

#10 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 02:45 PM

View PostAtli, on 23 June 2011 - 07:48 AM, said:

Start by finding the exact path where you images are stored. Then update the links to refer to them instead.

For example, if your main HTML file is stored at:
/home/dap/www/index.html
And your images at:
/home/dap/www/Simpleviewer/images/
Then your image URLs should look like:
/Simpleviewer/images/ImageName.jpg

I can't be more specific that that because I don't know where your files are.


Thanks! I thought it was set up correctly, but I could be wrong. I will check it when I go home in a few hours. Thanks!
Was This Post Helpful? 0
  • +
  • -

#11 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 23 June 2011 - 02:55 PM

[/quote]
Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.
[/quote]


Hi Atli,

I am not sure if this helps, but below is how I save my files.
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image

The way the codes are set up is following the way I save my images. I just donít understand why the images arenít linking.

Daphne
Was This Post Helpful? 0
  • +
  • -

#12 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3715
  • View blog
  • Posts: 5,972
  • Joined: 08-June 10

Re: 404 Error Website Problem

Posted 23 June 2011 - 07:10 PM

View Postd312kimo, on 23 June 2011 - 09:55 PM, said:

I am not sure if this helps, but below is how I save my files.
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image

Ok, for future reference, if you want to post pre-formatted text (with tabs and such visible) use [code] tags. Took me ages to figure out you meant those last 5 to be indented!

As it turns out, it looks like your host is running Windows, so the case-sensitivity is a non issue for you (for now). Still, if you code this way you are likely to get into trouble later on.

But that simply leaves you with non existing files. None of the links in your XML files works, and none of the folders you point to seem to either. For instance, this is one of the links from your Weddings XML file:
simpleviewer/images/weddings/Edmonton_Wedding_Photography01.jpg

But no matter how I alter this, it links to nothing.
Original,
With "Simpleviewer" removed,
Inside a "Weddings" subdir,
etc...

Are you absolutely sure the above hierarchy is correct? Have you verified this to be true on your server? How are you connecting to the server, by the way? FTP?

As far as I can see, your files are simply not there. That's why your links are failing.

This post has been edited by Atli: 23 June 2011 - 07:11 PM

Was This Post Helpful? 0
  • +
  • -

#13 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 24 June 2011 - 07:32 AM

View PostAtli, on 23 June 2011 - 07:10 PM, said:

View Postd312kimo, on 23 June 2011 - 09:55 PM, said:

I am not sure if this helps, but below is how I save my files.
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image

Ok, for future reference, if you want to post pre-formatted text (with tabs and such visible) use [code] tags. Took me ages to figure out you meant those last 5 to be indented!

As it turns out, it looks like your host is running Windows, so the case-sensitivity is a non issue for you (for now). Still, if you code this way you are likely to get into trouble later on.

But that simply leaves you with non existing files. None of the links in your XML files works, and none of the folders you point to seem to either. For instance, this is one of the links from your Weddings XML file:
simpleviewer/images/weddings/Edmonton_Wedding_Photography01.jpg

But no matter how I alter this, it links to nothing.
Original,
With "Simpleviewer" removed,
Inside a "Weddings" subdir,
etc...

Are you absolutely sure the above hierarchy is correct? Have you verified this to be true on your server? How are you connecting to the server, by the way? FTP?

As far as I can see, your files are simply not there. That's why your links are failing.


I renamed my "Wedding" folder to "wedding" and it seemed to solved some of the problems. As you can see, so of the photos are showing on my website now. However, photos in the 'couples' link as well as some of the photos in the 'weddings' link still aren't showing.

Can I have a space in the file name? For example: wedding (1).html
A lot of the photos that don't show up are saved with this kind of file name.
Was This Post Helpful? 0
  • +
  • -

#14 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3715
  • View blog
  • Posts: 5,972
  • Joined: 08-June 10

Re: 404 Error Website Problem

Posted 24 June 2011 - 07:51 AM

Hmm, odd. It seems the folder names are not case-sensitive but the filenames are.

This is a broken link from your couples XML file:
simpleviewer/images/couples/edmontonengagementphotographer01.jpg

But when I capitalize the words in the file name, like so, the link works:
simpleviewer/images/couples/EdmontonEngagementPhotographer01.jpg

What kind of server are you running this on? Windows doesn't support case-sensitive file or folder names, so it's a little odd that it would require file names to be case-sensitive, but not folder names.

Moral of the story: Never mix the case of your files and folders. If you save the file as Folder/FileName.jpg don't try to request it as folder/filename.jpg. Windows won't see the difference, but it gets all messed up when you try to put it online.
Was This Post Helpful? 0
  • +
  • -

#15 d312kimo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 22-June 11

Re: 404 Error Website Problem

Posted 24 June 2011 - 08:00 AM

View PostAtli, on 24 June 2011 - 07:51 AM, said:

Hmm, odd. It seems the folder names are not case-sensitive but the filenames are.

This is a broken link from your couples XML file:
simpleviewer/images/couples/edmontonengagementphotographer01.jpg

But when I capitalize the words in the file name, like so, the link works:
simpleviewer/images/couples/EdmontonEngagementPhotographer01.jpg

What kind of server are you running this on? Windows doesn't support case-sensitive file or folder names, so it's a little odd that it would require file names to be case-sensitive, but not folder names.

Moral of the story: Never mix the case of your files and folders. If you save the file as Folder/FileName.jpg don't try to request it as folder/filename.jpg. Windows won't see the difference, but it gets all messed up when you try to put it online.


It is odd. I also renamed all the files to "EdmontonEngagementPhotographer" last night, but the photos still don't show in the 'couples' link. Maybe I need to upload the html file again. :(
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2