|
| |
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
Relative and absolute file names - 12/3/2008 20:23:50
Can anybody help? I've spent about the last 4 hours trying to understand what has gone wrong and why. My web site has lots of links to pictures. All except one seem to be working well, when I view the site in Internet Explorer. 1. The links that are working refer to what I assume to be relative addresses i.e. Picture source = ../folder/file 2. But the link that is not working appears to be to an absolute address on my C drive. i.e. Picture source= file:///C:/EdinPhoto/folder/file. I've tried changing the name in 'Picture Properties' to ../folder/file and clicking OK. But each time do that, it changes back again to file:///C:/EdinPhoto/folder/file. The 'problem picture' is on this page (3/4 way down under heading 'Spring May 2008'): http://www.edinphoto.org.uk/talks/talk_eps_2008_12_03_documentary_page_09.htm. The folder/file name of this picture is: 0_a_l/0_around_edinburgh_-_meadows_coronation_walk_034118_1536.jpg Can anybody explain what is likely to have happened, and what I should do about it? Thank you.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/3/2008 21:07:57
Hi: Thanks for the suggestion. I am using FrontPage (but not FrontPage extensions - I'm using Filezilla to update the web site.) However, I'll follow your suggestion of doing 'Recelc Hyperlinks', then I'll publish the page that had the problem and see if that helps.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 6:35:40
Hi Texas WebDevelopers: 1. Your first suggestion (above) I ran 'Recalculate Hyperlinks' but unfortunately the problem still seems to be the same as I described above. 2. Your second suggestion above. I think my problem may be something different from the 'checksum' problem that you refer to. I've checked the HTML code for the page and can find no reference to checksum there. ALSO the code is not reverting back when I publish the page. It is reverting back immediately. i.e. - I open Picture Properties>General - I change the text in the picture source window, replacing "file:///C:/EdinPhoto"with ".." - I click OK - I immediately re-open Picture Properties>General - I find that the text in the picture source window still begins with "file:///C:/EdinPhoto". 3. I'll post another message on this thread in a moment.
|
|
|
|
caz
Posts: 3779 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Relative and absolute file names - 12/4/2008 7:00:47
Peter you are not using extensions, not "publishing" with FP but using Filezilla to upload to the server? What I would do is go into code view and change the code for that link to what you want it to be and save. Then upload that page with Filezilla. When you don't use FP Publish FP doesn't monitor the process so doesn't change any thing.
_____________________________
I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 7:34:03
Hello again. Success, at last! - but please see below. I've eventulally got the site working again by removing the picture and and replacing it by a similar one with a different name. It took a few attempts to do that becauses sometimes the new picture that I added appeared in FrontPage with a name that began "file:///C:/EdinPhoto", so I had to delete it and try again. If anybody has any idea why the files were being created beginning ""file:///C:/EdinPhoto/" rather than "../" please let me know, so that I can try to avoid having the same problem in the future. Thank you.
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 8:02:42
You need to make sure you are working in a Frontpage web. It sounds like you are in a folder. Check out this post to see if your folder is actually a Frontpage Web. In explorer, you should see a globe on the folder.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 16:33:51
Hi Corey: Thanks for the link which I've read. I have two folders on my C drive, both with globes but both have no files in them. The folder names are 'My Webs' and 'My Web Site'. However , I hold my web site as a top level folder on my C drive as C:/Edinphoto. It has worked well there. C:/Edinphoto has a 'normal folder' icon, not a globe. But it seems to be behaving well as a web site. I am able to open C:/Edinphoto in Front Page. I don't have FrontPage Server Extensions, so I don't use FrontPage to publish the site; I use FileZilla. I can also double click on one of the files in C:/Edinphoto in my web site and it opens in Internet Explorer and behaves well as an 'off-line' web site. So, all is working well. I've been able to add lots of pictures to the web site, updating the again. The only thing that is puzzling me is why the one picture that I mentioned above showed the picture source to be a name beginning "file:///C:/EdinPhoto/", rather than a name begining "../" .
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 17:01:10
If Edinphoto is where your Frontpage website is stored, Edinphoto needs to have a globe on it so Frontpage knows it is a "Frontpage Web" Try going to File - open web and choose the folder Edinphoto. Frontpage then should ask you if you want to convert it to a website (as long as you did not check don't ask me again at some point earlier)
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 17:22:36
Thanks Corey: I've just followed your advice. GOOD NEWS: In FrontPage, I went to file>open web then went to Edinphoto, and found that the Edinphoto folder DID have a globe in its icon. BAD NEWS: I've just found more photos on the web site which are showing picture sources beginning: file:///C:/EdinPhoto/ Please have a look at this page, and scroll down the page: http://www.edinphoto.org.uk/talks/talk_eps_2008_12_03_documentary_page_05.htm I think you'll find that there is only one picture that is displaying in Internet Explorer (except on my own PC where I can see them all!) All the other pictures have picture sources beginning "file:///C:EdinPhoto/". I've not been able to find any way to change the picture source to begin "../". Any suggestions would be appreciated.
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 17:40:28
I am guessing that when you work on your website, you open the website and see all the files there? Now if you open the page talk_eps_2008_12_03_documentary_page_05.htm, right click on the image and choose picture properties. Now in the General tab, you should see the (incorrect) path. You should be able to fix this here But looking at your code <img border="1" src="file:///C:/EdinPhoto/0_edin_v/0_edin_views_begbie_granton_harbour_dredger_12.jpg" alt="Granton Harbour - Dredger - Photograph by Begbie" width="480" height="535"></a> Which would make me think the image is in the folder 0_edin_v in the talks folder (root - talks - 0_edin_v). But the image is actually in the folder 0_edin_v from the main root (root - 0_edin_v). It sounds like you might be working in a Frontpage web but it is not set up properly.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 18:24:33
Hi Corey: Thanks for the quick reply, and for taking the time to look at the problem page that I mentioned. Yes, when I use FrontPage to update the C:/EdinPhoto/ copy of my web site, I can see all the folders on in the folder view panel. In fact, the web site should consist of the root folders, and other folders, each of these being direclty below the root folder. Neither the talks folder not any of the other folders at this level should have any folders beneath them. This is consistent with what I see when I open the talks folder in the folder list when I'm working in FrontPage on the C:/EdinPhoto web. i.e. the folder 0_edin_v is immediately below the root folder and is not below the talks folder. I've looed up the Picture Properties>General Tab for the last picture on the page that you mention, and found that the picture source is exactly as in the extract from the code that you quote. i.e. file:///C:/EdinPhoto/0_edin_v/0_edin_views_begbie_granton_harbour_dredger_12.jpg I'm not sure why you are suggesting that the image is in the folder 0_edin_v in the talks folder (root - talks - 0_edin_v). Perhaps I'm missing something obvious! However, the fact that all images appear correctly when I view the web site on my own PC suggests to me that this image is in fact in the 0_edin_v folder immediately below the root folder. i.e. where I would expect it to be. So, I still feel that all I need to do is to find some way of changing the first part of the path in Picture Properties>General (or perhaps by going directly into the HTML code that you quote) from "file:///C:/EdinPhoto/" to "../" to enable others to see this image when they view the web site. I hope my comments above make sense to you.
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 18:29:41
I got the 0_edin_v folder figured out. I did not take into consideration it was actually using the complete path (on your computer). Try to fix one or two of the images through the Picture Properties and then publish the website. See if that helps. You could possibly do a find / replace in the source code, but I am not too sure if that would be a good idea.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 18:44:01
Thanks Corey: Like you, I've been a bit reluctant to tamper with the source code, so I'll not touch that (- not just yet, anyway). However, I've already tried to change the picture source, using the Pictue Properties>General tab, I was not able to persuade the computer to accept the changes. Here's what happened each time I tried: - I open Picture Properties>General - I change the text in the picture source window, replacing "file:///C:/EdinPhoto"with ".." - I click OK - I immediately re-open Picture Properties>General - I found that the text in the picture source window still begins with "file:///C:/EdinPhoto". Can you suggest why that might have been happening? If I can get the computer to accept the changes, I'll be happy to go throught the images individually, changing them, publishing the web site from time to time as I go to make sure that all is working OK.
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 19:00:19
When you open the My Computer Icon on the desktop and drill down to the C drive. You should see the EdinPhoto folder. Now does that one have the globe on it? When you go to File - Open Web and choose Edinphoto, what does it say in title bar (upper left corner)? You might also try some of the suggestions mentioned at Frontpage is running slow to see if that clears up FP some.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 19:26:56
Hi Corey: 1. When I open the My Computer icon on the desktop, and drill down to the C drive, I find that there is NO GLOBE on the EdinPhoto folder. However, when I go in FrontPage to the EdinPhoto folder, using file>open, I find that the EdinPhoto folder DOES HAVE A GLOBE. 2. When I go to File>Open Web and click on the EdinPhoto folder (with the globe), the upper left corner of the title bar shows the folder icon (no globe) followed by the word: EdinPhoto. 3. I'll have a look at the suggestions in 'Frontpage running slow, as you suggest, and let you know if I find anything relevant there.
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/4/2008 19:59:30
It sounds like the FP web is corrupted. You might see if (when you have the 'web' opened in Frontpage, convert it to a folder and then back to a Web.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 20:18:18
Hi Corey: I'll reply to your most recent email in a moment. But this message is just to let you know that I've looked at the 'FrontPage running slow' page, and have removed the FrontPage temporary files. It's not long since I deleted the temporary internet cache, so I'll not do that again now. I have a search running for *.web filed, but it hasn't found any of them yet. After deleting the Front In fact I have not had problems with FrontPage running slow, so I think the problem I'm having is likely to be something different, as you suggest in your most recent message. After removing the FrontPage temporary files, I tried again to rename the picture sources for the pictures on this page: http://www.edinphoto.org.uk/talks/talk_eps_2008_12_03_documentary_page_05.htm I managed to rename the picture source for the first picture on the page, but for all the others any changes that I made did not last. The picture sources reverted to their original names immediately. Incidentally, I see that on the above page, it is not just the picture sources, but also the default link locations, that have names beginning with "file:///C:/EdinPhoto".
|
|
|
|
caz
Posts: 3779 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Relative and absolute file names - 12/4/2008 21:30:04
Maybe this from the Frontpage tutorials would help? quote:
My graphics are not appearing on my page when it is published. You probably have absolute paths to images on your computer's hard drive instead of relative paths to the images in your images folder. The most likely cause for this is that you edited your pages with FrontPage but not inside a FrontPage Web -- a web created by doing File > New > Web. Another cause can be that you inserted your images by browsing to them on your hard drive. You should always drag/drop your images into your images folder and then insert them onto pages by browsing to the images within your web. http://www.outfront.net/tutorials_02/faq.htm#Mygraphics
_____________________________
I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 21:37:46
Hi Caz: I've just noticed your Post #5 that you added above, about 18 hours ago. I've now followed your advice and gone into the code view for page http://www.edinphoto.org.uk/talks/talk_eps_2008_12_03_documentary_page_05.htm I found all occurrences of "file:///C:edinphoto/" and replaced each of them by "../" This seems to have worked, though I cannot be sure as I've only tested it so far on my own PC. (I've spent about 12 hours today trying to sort this problem but I think I've definitely made progress in the last half-hour.) I now have three questions. Can you help to answer any of them? 1. Do you know what caused FrontPage to set source addresses for some of my pictures to "file:///C:edinphoto/folder_name/file_name" ratrher than to "../folder_name/file_name" - and how I can avoid this happening in the future? 2. Do you think the web site on my PC might have become corrupt in some way? Please see posts # 15, 16, 17 above. 3. I had intended to search my WHOLE SITE replacing all occurrences of "file:///C:edinphoto/" with "../", but after making the change to this page, I noticed that the first image was not appearing on the page: http://www.edinphoto.org.uk/0_eng_ma_060/0_engraving_-_ma_080+b_craigmillar_castle_col.htm and when I right-clicked on the picture and opened properties, I found that much of the data was not available. Do you know what has gone wrong here? Thanks again for your help so far.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/4/2008 21:55:54
Hello again Caz: Thanks for your post #20 above, which seems to have been sent at about the same time as I was sending post #21 to you. The comments in the box that you sent are helpful, though I'll need to study them more carefully and try to understand exactly what has gone wrong. Certainly, the problem is that, somehow, absolute links rather than relative links seem to have been created for some images. It looks as if there may be some sort of corruption because FrontPage was not behaving very consistently earlier today. I was using exactly the same procedure to save new images into my web folder from Photoshop, but when I used FrontPage to add these images to an existing page on my web site, I found that some of them had absolute links and others had relative links. Might it be a good idea to try 'detece and repair' or is that irrelevant?
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Relative and absolute file names - 12/5/2008 7:05:34
Try also the repair Hyperlinks. Detect / repair might hyperlink. Otherwise, create a new web and copy the old web into the new web (via Frontpage)
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
|
|
caz
Posts: 3779 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Relative and absolute file names - 12/5/2008 10:01:55
I think that you should follow Corey's advice (above) now and create a new web if you need to. Certainly a Detect and Repair is indicated and can do no harm.
_____________________________
I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/5/2008 10:28:57
Hi Coreybryant and Caz: Thanks for your latest advice. I'll try to follow it some time in the next 24 hours, and I'll let you know the result. But first, I'll wait until I've made another back-up copy of the whole site.
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/5/2008 12:56:35
Hi Larry: Thanks for the warning. I had better try to understand just what set-up I have before I request a 'Detect & Repair'. Currently, I'm using FrontPage 2002 for all the updating of my web site. (I've previously o done some updating of the site using Expression Web, in order to add CSSs to the web, but I've now gone back again to using FrontPage 2002 because it seems to do what I need and seems much faster than Expression Web.) I use Outlook Express (I think it is V 6.0.2900.2180), Word 2003 and Excel 2003. I don't think I've ever done anything to integrate FontPage with Microsoft Office, but I cannot be sure about that. I don't know what 'OutBack Plus 5' is, so I'm probably not using that. Based on the above, do you think it safe for me to proceed with 'Detect & Restore' now, and what particular precautions do you suggest I should take first?
|
|
|
|
Peter
Posts: 215 From: Edinburgh Status: offline
|
RE: Relative and absolute file names - 12/5/2008 13:20:11
Hi Larry: Thanks for the reply. I appreciate the warnings and advice that you send to me. Even if the danger of losing data is not high, it is not something that I'd want to have to cope with!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|