OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



[SOLVED] "Not found" articles show a wrong article

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

[SOLVED] "Not found" articles show a wrong article

Postby mbria » Mon Jul 09, 2012 3:43 am

Hi fellows,

Recently we found a kind of bug that is really annoying and surprising.

On OJS 2.3.6, when you visit a non existing article (for instance: http://papers.uab.cat/article/view/wrongURL or http://papers.uab.cat/article/view/mustShow404) OJS always shows the same article (http://papers.uab.cat/article/view/v97-n3-parella) instead of a 404 error (or better, the searcher page).

This creates incorrect statistics, and generic searchers (as google) wrongly index the magazines, giving more presence to this random article (I didn't discover yet why this article and not others) or could penalise a magazine for content duplicity.

I tested it on a clean OJS, as well as in other magazines hosted in a different server with different mod_rewrite rules and the result is always the same.

http://psicologiasocial.uab.es/athenea/index.php/atheneaDigital/article/view/show404
http://rusc.uoc.edu/ojs/index.php/rusc/article/view/mustShow404

The funny part is that old OJS versions (not sure about the exact version because all magazines I manage are now 2.3.6) redirect to index:
http://artnodes.uoc.edu/ojs/index.php/artnodes/article/view/mustShow404

I searched about this issue in the forum but I didn't find any post about it.

Any clue about how to fix it? should I open an issue in the bug track system?

Thanks for your help,
m.
Last edited by mbria on Fri Jul 20, 2012 1:02 am, edited 1 time in total.
mbria
 
Posts: 278
Joined: Wed Dec 14, 2005 4:15 am

Re: "Not found" articles show a wrong article instead of 404

Postby asmecher » Mon Jul 09, 2012 12:20 pm

Hi mbria,

Yes, that definitely sounds like a bug. Please file it in Bugzilla against OJS 2.3.8 and I'll take it from there. (Drop a link back to this conversation for bonus points.)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Re: "Not found" articles show a wrong article instead of 404

Postby asmecher » Mon Jul 09, 2012 2:38 pm

Hi all,

Posted to Bugzilla -- see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7679.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Re: [SOLVED] "Not found" articles show a wrong article

Postby mbria » Fri Jul 20, 2012 1:04 am

Alec developed a patch against OJS 2.3.6 and 2.3.7 that solves the issue:
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7679

Cheers,
m.
mbria
 
Posts: 278
Joined: Wed Dec 14, 2005 4:15 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests