Install staging Joomla and create an article with 'readmore' and several pages.
Go to the article:
All pages should be available
Only first one and show all is visible. Other pages show 404
Staging Joomla
A reason of issue is merged PR #17175.
Plugin pagebreak is called twice.
Status | New | ⇒ | Discussion |
See file: ..\joomla-cms-staging\plugins\content\pagebreak\pagebreak.php
The code (line 76 etc.) is loading twice.
// Simple performance check to determine whether bot should process further.
if (StringHelper::strpos($row->text, 'class="system-pagebreak') === false)
{
if ($page > 0)
{
throw new Exception(JText::_('JERROR_PAGE_NOT_FOUND'), 404);
}
return true;
}
The first time var_dump(StringHelper::strpos($row->text, 'class="system-pagebreak'))
let's see an int(1234) and the second time a bool(false).
This generates the throw, an 404 error page, in line 81.
Testing without Read More shows the first and the second time an int(1234). Stringhelper also loading twice. There is NOT generated an error page.
Why are loading twice?
I can confirm the problem in Joomla 3.8.0
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-22 14:17:25 |
Closed_By | ⇒ | csthomas |
looks similar to #17305