? ? Success

User tests: Successful: Unsuccessful:

avatar chivitli
chivitli
3 Dec 2014

If you try to access page of an article which doesn't exist anymore, you'll get a warning on this line. Search engines regularly try to crawl all sorts of links, even if they were changed ages ago...

avatar chivitli chivitli - open - 3 Dec 2014
avatar jissues-bot jissues-bot - change - 3 Dec 2014
Labels Added: ?
avatar jissues-bot jissues-bot - change - 3 Dec 2014
Labels Added: ?
avatar vdespa vdespa - change - 3 Dec 2014
Category Plugins
avatar Kubik-Rubik
Kubik-Rubik - comment - 7 Dec 2014

@chivitli The plugin should not be called at all if the article is not available! Can you please explain how to reproduce the described problem?

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar chivitli
chivitli - comment - 7 Dec 2014

It's about accessing a page of an available article which has pages inside. Create an article, accessible via example.com/my-article, and make sure that it has at least two pages, so that the page example.com/my-article?start=1 also exists. If you try to access example.com/my-article?start=2 etc you'll see a notice

avatar Hackwar
Hackwar - comment - 8 Dec 2014

I would say that the plugin needs to throw a 404 if that page is non-existent. Otherwise the user/search engine simply sees an article with no content... So if the page is not defined, please throw a 404.

avatar wilsonge
wilsonge - comment - 12 Feb 2015

I can reproduce this btw. So it's definitely an issue we need to address

avatar Hackwar
Hackwar - comment - 13 Feb 2015

As I wrote in december: It needs to throw a 404. The URL is invalid and thus should throw a 404. Otherwise you have a "duplicate content" issue with pages n to n+infinity.

avatar FloryGlory FloryGlory - test_item - 14 Mar 2015 - Tested successfully
avatar FloryGlory
FloryGlory - comment - 14 Mar 2015

The notice disappeared (Notice: Undefined offset: 4 in C:\xampp\htdocs\plugins\content\pagebreak\pagebreak.php on line 180)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.
avatar seagul30
seagul30 - comment - 14 Mar 2015

@test successful
Tested a page with pagebreak and ?showall=&start=200
works

however, throwing a 404 sound logical, too.

avatar seagul30 seagul30 - test_item - 14 Mar 2015 - Tested successfully
avatar zero-24 zero-24 - change - 11 Jun 2015
Status Pending Needs Review
avatar zero-24
zero-24 - comment - 11 Jun 2015

Moving to Needs Review so a Maintainer can take a decision here :smile: Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar roland-d
roland-d - comment - 6 Sep 2015

Agree with @Hackwar , if a page doesn't exist we should throw a 404. This is how it works with other content pages as well. Load any article in the front-end with a non-existent ID and you get a 404 as expected.

@chivitli Can you please update your PR to throw a 404 in case the page doesn't exist?

avatar roland-d roland-d - change - 6 Sep 2015
Status Needs Review Information Required
avatar roland-d
roland-d - comment - 12 Dec 2015

Hello @chivitli

Thank you for your contribution.

The last comment here was on September 6th. Can you please follow-up?
If no reply is received within 4 weeks we will close this issue.

Thanks for understanding!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Dec 2015

This PR has received new commits.

CC: @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Dec 2015

This PR has received new commits.

CC: @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Dec 2015

This PR has received new commits.

CC: @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot joomla-cms-bot - change - 12 Dec 2015
Labels Added: ?
avatar chivitli
chivitli - comment - 12 Dec 2015

@roland-d

Sorry for the delay. I updated the pull request to throw 404 and added a new language constant. Please test again

Thanks!

avatar roland-d
roland-d - comment - 14 Dec 2015

@chivitli There is a codestyle issue:

FILE: .../travis/build/joomla/joomla-cms/plugins/content/pagebreak/pagebreak.php


FOUND 1 ERROR(S) AFFECTING 1 LINE(S)


129 | ERROR | Whitespace found at end of line

Can you fix that as well? Thanks.

avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Dec 2015

This PR has received new commits.

CC: @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar chivitli
chivitli - comment - 14 Dec 2015

@roland-d

Sure, fixed!

avatar brianteeman brianteeman - change - 19 Dec 2015
Status Information Required Pending
Labels
avatar roland-d
roland-d - comment - 4 Jan 2016

@FloryGlory @seagul30 Can you guys please test one more time? Thank you.

avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Jan 2016

This PR has received new commits.

CC: @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar chivitli
chivitli - comment - 4 Jan 2016

I changed JError to Exception, let's help win that lottery ticket :-)

avatar andrepereiradasilva andrepereiradasilva - test_item - 4 Jan 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jan 2016

I have tested this item :white_check_mark: successfully on fa068d4


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar infograf768
infograf768 - comment - 5 Jan 2016

Patch works fine.

Although the pagebreak ini file is loaded in frontend, I suggest to change the new string to a generic one in en-GB.ini as it could be used by anyone to throw a "Page not found".

It would be
JERROR_PAGE_NOT_FOUND="Page not found" to be added line 126

avatar chivitli
chivitli - comment - 5 Jan 2016

@infograf768

Suggestion accepted, thanks.

avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Jan 2016

This PR has received new commits.

CC: @andrepereiradasilva, @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Jan 2016

This PR has received new commits.

CC: @andrepereiradasilva, @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Jan 2016

This PR has received new commits.

CC: @andrepereiradasilva, @FloryGlory, @seagul30


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar infograf768 infograf768 - test_item - 5 Jan 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 5 Jan 2016

I have tested this item :white_check_mark: successfully on b5e7bbe


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar andrepereiradasilva andrepereiradasilva - test_item - 5 Jan 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Jan 2016

I have tested this item :white_check_mark: successfully on b5e7bbe


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar brianteeman brianteeman - change - 27 Jan 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 27 Jan 2016

RTC - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5306.

avatar joomla-cms-bot joomla-cms-bot - change - 27 Jan 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 27 Jan 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-01-27 22:17:46
Closed_By wilsonge
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment