Error in sitemaps

Hello,

I decided to declare my ojs sitemaps, but there are wrong URL inside:
http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Actes-FSSNF/sitemap declares:

http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Memoires/sitemap declares:

These pages are 404… could you solve that?

Hi @giby

Error 404 is logged in your webserver error log file. Please, check what is recorded on this file when you attempt loading this URL.

Regards,
Israel Cefrin
Public Knowledge Project Team

seems I can’t have a free access to the logs

Hi @giby

You could ask to you IT staff to send you this error logs then check what messages were recorded on it.

Regards,
Israel Cefrin
Public Knowledge Project Team

I guess I found… or not… for the given date:
[Fri Feb 23 07:59:40 2018] [error] [client 54.36.148.3] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 08:04:17 2018] [error] [client 54.36.148.5] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 07:36:18 2018] [error] [client 54.36.148.6] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 07:54:44 2018] [error] [client 54.36.148.0] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 09:52:35 2018] [error] [client 54.36.148.4] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 09:47:58 2018] [error] [client 54.36.148.3] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 09:57:12 2018] [error] [client 54.36.148.3] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 10:01:52 2018] [error] [client 54.36.148.6] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 11:15:21 2018] [error] [client 66.249.69.54] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 11:34:19 2018] [error] [client 54.36.148.0] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 11:38:56 2018] [error] [client 54.36.148.6] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 12:11:16 2018] [error] [client 54.36.148.1] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 15:04:15 2018] [error] [client 66.249.69.54] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 16:50:23 2018] [error] [client 66.249.69.54] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 20:02:45 2018] [error] [client 62.138.0.25] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 19:44:35 2018] [error] [client 66.249.69.54] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found
[Fri Feb 23 20:51:17 2018] [error] [client 66.249.69.54] [host www.histoire-valenciennes-cahv.fr] AH10039: FastCGI: server “/homez.595/histoiresv/www/Memoires/index.php” stderr: PHP message: ojs2: 404 Not Found

Or this one:
66.249.69.54 www.histoire-valenciennes-cahv.fr - [23/Feb/2018:16:50:23 +0100] “GET /Memoires/index.php/Actes-FSSNF/about/siteMap HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)”

Hi @giby

Your log message shows a “not found” error (404 code). And checking your first post I just realised this link:
http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Memoires/about/siteMap

It is putting siteMap bellow about. Do you have a menu item structured this way? And what is your OJS version?

Regards,
Israel Cefrin
Public Knowledge Project Team

Great, you understood the issue!
This page does not exist, and the sitemap generated by OJS reference it!

My version is: Version actuelle: 3.1.0.0 (novembre 3, 2017 - 10:37 )

It does it for:
about/siteMap
about/editorialPolicies
search/titles

No idea why!

Hi @giby

Could you double check you don’t have a menu items structured this way about > siteMap?
And could you clear your template/system cache and attempt regenerate sitemap files again (just reloading page).

Regards,
Israel Cefrin
Public Knowledge Project Team

about includes:
-About
-Submission
-contact

About “you clear your template/system cache and attempt regenerate sitemap files again (just reloading page)” What do you mean?
It isn’t on my local that there is an issue… I could hardly get it clean from my web hst

Hi @giby

As “admin” user in OJS go to path as follows:

Admin Dashboard > Administraion (menu item) > Clear Template Cache (item list).

Regards,
Israel Cefrin
Public Knowledge Project Team

done

As “admin” user in OJS go to path as follows:
Admin Dashboard > Administraion (menu item) > Clear Template Cache (item list).

Please check your sitemaps.

Regards,
Israel Cefrin
Public Knowledge Project Team

Still have BS:

http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Actes-FSSNF/about/editorialPolicies http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Actes-FSSNF/about/submissions http://www.histoire-valenciennes-cahv.fr/Memoires/index.php/Actes-FSSNF/about/siteMap

Hi all,

it seems to be our fault – we did not remove that pages from the sitemap when they were removed in OJS 3…
S. sitemap fix · Issue #3459 · pkp/pkp-lib · GitHub

Best,
Bozana

2 Likes

May I know when there will be a corrected version?

Hi @giby

Either you can try to patch your current OJS version right now, or wait till the new OJS version 3.1.1 is released (in a few weeks) and upgrade your installation…

Best,
Bozana

1 Like

Can I removed the sitemap manually?

Hi @Medfac9

In OJS 3.x the sitemap is created dynamically. How would you like to remove it?

Best,
Bozana

I did not know that sitemap is created dynamically. I discovered it yesterday. So thanks