? ?
avatar PhilETaylor
PhilETaylor
8 Jan 2021

Steps to reproduce the issue

Install Joomla 4 beta 6

Create an article called test, make it featured so it shows up on the home page.

Save that article to create it.

Edit that article, then in TinyMCE go to CMS Content -> Article and select the same "test" article. save the article.

Go to the frontend and see this

Screenshot 2021-01-08 at 22 41 57

(ok I added an image too - you don't need that)

Click test (next to the image in my screenshot)

Expected result

Breadcrumbs of

Home / Uncategorised / test

Actual result

Home / ROOT / Uncategorised / test

(url is http://0.0.0.0/index.php?view=article&id=1:test&catid=2)

Screenshot 2021-01-08 at 22 43 07

System information (as much as possible)

Additional comments

avatar PhilETaylor PhilETaylor - open - 8 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Jan 2021
avatar chmst
chmst - comment - 8 Jan 2021

Seems that this is your localhost. On windows and online, breadcrumbs are comme il faut.
Url: index.php?view=article&id=1&catid=2

Or do you have special settings? This is a new installation without any configuration.

breadcrumbs


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31925.
avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

How strange.

I have just deleted everything and started from scratch.

I get the same. ROOT is in the breadcrumb.

PHP 8.x to be sure.

avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

Maybe a PHP 8 issue
Maybe related to #31473

avatar chmst
chmst - comment - 8 Jan 2021

Yes, confirmed. I had tested in php 7.6 and have the same issue as you with php8

avatar chmst chmst - change - 8 Jan 2021
Labels Added: ?
avatar chmst chmst - labeled - 8 Jan 2021
avatar bembelimen
bembelimen - comment - 13 Jan 2021

The problem is here: https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_content/src/View/Article/HtmlView.php#L304-L309 I think, sadly I have currently no PHP 8 to confirm, so probably @chmst could you check if the "if" statement is broken in PHP 8 (or why "ROOT" is not excluded with $category->id > 1?

avatar chmst
chmst - comment - 13 Jan 2021

Please test #32027

avatar richard67 richard67 - change - 13 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-13 13:08:09
Closed_By richard67
avatar richard67 richard67 - close - 13 Jan 2021
avatar richard67
richard67 - comment - 13 Jan 2021

Closing as having a pull request. Please test #32027 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment