?
avatar jmanager
jmanager
3 Dec 2017

Steps to reproduce the issue

When we set in Global Configuration Use URL Rewriting & Add Suffix to URL to "Yes" (with launched .htaccess file)

Expected result

Looking for non-html files on the server that does not exist, displays error 404

Actual result

No error 404, after enabling error reporting we get a message:
Error displaying the error page: Call to undefined method Joomla\CMS\Document\RawDocument::addHeadLink(): View not found [name,type,prefix]: article, txt, contentView

txt - when we looking for txt file, php - when we looking for php file etc

System information (as much as possible)

PHP 5.6, 7.0, 7.1
Apache
Tested on localhost and trusted hosting companies.

Additional comments

No errror in Joomla 3.8.1 Previous version not testedscreen shot 2017-12-03 at 11 16 27
screen shot 2017-12-03 at 11 16 39screen shot 2017-12-03 at 11 16 48screen shot 2017-12-03 at 11 16 53

avatar jmanager jmanager - open - 3 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Dec 2017
Category Router / SEF
avatar jmanager
jmanager - comment - 3 Dec 2017

Impact:
When we set Display Errors to off & Error_reporting to none, bots testing our site receive a 500 error


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Dec 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-12-04 06:02:45
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 4 Dec 2017
Closed_Date 2017-12-04 06:02:45 2017-12-04 06:02:46
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 4 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Dec 2017

closed as having Pull Request #18966

avatar zyzak
zyzak - comment - 30 Mar 2018

i have the same problem , any solutions?


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Mar 2018

@zyzak can you please test #18966 as there is no Test yet.

avatar ggppdk
ggppdk - comment - 30 Mar 2018

@zyzak

Please note that to test PR #18966

  • you need to use Joomla's beez and protostar templates

to make a fix for your website if you are not using Joomla's beez and protostar templates
then you need to
either contact the author of your Joomla template,
or someone that knows a little about Joomla templates, that will add similar checks to error.php like PR #18966 does

you can ask more in Joomla forums too

avatar zyzak
zyzak - comment - 30 Mar 2018

I checked Protostar and Beez3 template with link domainname.pl/index.xml
I have also no debug there, and error message is Error: Call to undefined method Joomla\CMS\Document\XmlDocument::addHeadLink(): View not found [name, type, prefix]: article, xml, contentView - little different error but is giving 404

se here screen> http://zyzak.ayz.pl/beez-giving-404-but-with-error.jpg

avatar ggppdk
ggppdk - comment - 30 Mar 2018

This issue is not the same as issue #20004

(see comment)
#20004 (comment)

Just both issues occur because no checks are being made to ensure that JDocument is a JDocumentHTML

Add a Comment

Login with GitHub to post a comment