404 error in topics of HTML help

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Tansy
Posts: 96
Joined: Wed Aug 25, 2010 11:37 am

404 error in topics of HTML help

Unread post by Tansy »

Hi,
I am trying to publish an HTML help project and all the topics in the output except one are empty with 404 file not found error. What could be the problem? Thanks in advance.
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 404 error in topics of HTML help

Unread post by Tim Green »

Hi Tansy,

Make sure that your project does not contain any topic with the ID "index", and that your main output file is called "index.html". If you have a topic called index it will cause all kinds of strange errors.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tansy
Posts: 96
Joined: Wed Aug 25, 2010 11:37 am

Re: 404 error in topics of HTML help

Unread post by Tansy »

Make sure that your project does not contain any topic with the ID "index", and that your main output file is called "index.html". If you have a topic called index it will cause all kinds of strange errors.
Checked that, no topics named index, and the main output file is called "index.html".
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 404 error in topics of HTML help

Unread post by Tim Green »

OK, what is the ID of the affected topic? Also, are you sure that you are uploading all files and that you are not behind a proxy? If a proxy server is involved it can take quite a while to see the affected uploaded files.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tansy
Posts: 96
Joined: Wed Aug 25, 2010 11:37 am

Re: 404 error in topics of HTML help

Unread post by Tansy »

Hi Tim!
I found the source of the problem. The topic IDs were in Russian. I renamed them and the issue is fixed. Thank you!

Also I generated the project by importing a rtf file, and the project folder contains the following subfolders: _history, Baggage, HTML, Maps, Topics. When I generate a project from scratch, such folders are not created. What shall I do with them? Leave them as they are?
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 404 error in topics of HTML help

Unread post by Tim Green »

Tansy wrote: Mon May 06, 2024 9:00 am Hi Tim!
I found the source of the problem. The topic IDs were in Russian. I renamed them and the issue is fixed. Thank you!

Yes, topic IDs must only contain regular Latin ASCII characters. No special characters, no spaces etc. Help+Manual will normally prevent illegal characters when you are creating topics, but there are some situations where they may get through.
Also I generated the project by importing a rtf file, and the project folder contains the following subfolders: _history, Baggage, HTML, Maps, Topics. When I generate a project from scratch, such folders are not created. What shall I do with them? Leave them as they are?
When you don't get those subfolders it means you have chosen to create a single-file project with the extension .hmxz. Then all the standard folders (_history, Baggage, Maps, Topics) are inside the project file, which is really a zip archive. For ongoing work it is better to create the uncompressed .hmxp version, which is faster, more robust against damage and supports more features.

The HTML folder is created when you put WebHelp output there. Don't do this -- WebHelp output is always a temporary folder and it shouldn't be inside your project folder. Put it somewhere else.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tansy
Posts: 96
Joined: Wed Aug 25, 2010 11:37 am

Re: 404 error in topics of HTML help

Unread post by Tansy »

Tim Green wrote: Mon May 06, 2024 1:53 pm The HTML folder is created when you put WebHelp output there. Don't do this -- WebHelp output is always a temporary folder and it shouldn't be inside your project folder. Put it somewhere else.
Why is it bad to keep it in the project folder?
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: 404 error in topics of HTML help

Unread post by Tim Green »

Tansy wrote: Mon May 06, 2024 3:32 pm Why is it bad to keep it in the project folder?
Because it's temporary and not part of your project. Your project folder should only contain permanent data that is part of the project. Then you can also move it or send someone a copy without it being bloated with redundant data that doesn't belong there. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tansy
Posts: 96
Joined: Wed Aug 25, 2010 11:37 am

Re: 404 error in topics of HTML help

Unread post by Tansy »

Got that, thank you!
Post Reply