Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-15-2020, 10:19 PM   #1
helpplease
Member
helpplease began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2011
Device: Mac, VM solutions
epubcheck ERROR: Links points to a location not present in target file

Hi: I am very new to epub creation. New to Sigil. New to forum posting.

Please let me know, if I have not posted in correct place.

I ran the epubchecker on my new epub and receive many many errors. Very disheartening given I thought it was wonderful before running this epub checker.

The problem is now, I dont understand how to fix. Lets take the most common one "Links points to a location not present in the target file" Given I created this epub by taking the html from web page, I did expect errors, but not many many.

By word Link, I am assuming epubchecker mean a HTML is not correct sytax (?ill formed) rather than an actual URL link (hyperlink) not working.

for example
Code:
<div class="div1   "><a name="subj-ISBN-chapter-6-div1-1"></a>

<h2 class="titleHeading2"><p class="  " id="subj-isbn-chapter-6-p-892">Introduction</p></h2>
What of the above is the "link"?
How do I manually test a "link"? I am much better seeing things real live to understand mechanics.

If you think you can help me become less muddled -- I would value it very much. Thankyou.
helpplease is offline   Reply With Quote
Old 09-16-2020, 11:11 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Typically a "link" is referencing the '<a href=""></a>' tag.

The error code is telling you that the href="" is not pointing to, or can't be found in, the correct location. Here is a reference to look up the particulars.

In general you want it to look like:
<a href="#mylink">Go to my linked location.</a>

<p id="mylink">This is my linked location.</p>

- or, if it is on a different document:
<a href="htmlpage.html#mylink">Go to my linked location on a different document.</a>

It is important to note that the href and id must have the identical name...and it is case sensitive. So ISBN and isbn are NOT the same.

Last edited by Turtle91; 09-16-2020 at 12:28 PM.
Turtle91 is offline   Reply With Quote
Advert
Old 09-16-2020, 11:52 AM   #3
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Turtle91 View Post
In general you want it to look like:
<a href="mylink">Go to my linked location.</a>
This should be <a href="#mylink">
jhowell is offline   Reply With Quote
Old 09-16-2020, 12:10 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
do you really name the <a>? It is an ePub and there are better ways to get to the TOc.

Code:
<div class="div1   "><a name="subj-ISBN-chapter-6-div1-1"></a>

<h2 class="titleHeading2"><p class="  " id="subj-isbn-chapter-6-p-892">Introduction</p></h2>
Also, there are errors in that code.

Code:
<div class="div1"><a name="subj-ISBN-chapter-6-div1-1"></a>

<h2 class="titleHeading2"><p id="subj-isbn-chapter-6-p-892">Introduction</p></h2>
I would dump the "<a name". You don't need it.
JSWolf is offline   Reply With Quote
Old 09-16-2020, 12:28 PM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by jhowell View Post
This should be <a href="#mylink">
Yup, you're right...missed that
Turtle91 is offline   Reply With Quote
Advert
Old 09-16-2020, 01:56 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by helpplease View Post
Lets take the most common one "Links points to a location not present in the target file"
Since this an error message generated by the built-in Calibre Editor checker, you might want to click Try to fix all correctable errors automatically.

BTW, both Calibre Editor and Sigil have built-in tools that you can use to check for broken links (Tools > Reports > Links).

Also, you might want to consider using dedicated browser extensions such as DownThemAll! to download the initial HTML file.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epubcheck error on svg file roger64 Workshop 2 10-16-2016 05:49 AM
[Check Book] Link points to a location not present in the target file chaot Editor 3 11-05-2015 04:25 PM
Error epubcheck Buble ePub 43 08-15-2014 01:53 AM
Error on epubcheck Brazz ePub 5 09-01-2011 03:17 AM
Web Companion - "Error while copying the prc file to its target folder." evanj Workshop 0 11-28-2005 06:10 AM


All times are GMT -4. The time now is 06:01 PM.


MobileRead.com is a privately owned, operated and funded community.