Bug #102029
Updated by Ramón Schlosser about 1 year ago
When using the CE "Related pages" (menu_related_pages) and having pages in the list with no keyword selected the following exception occurs: <pre> PHP Runtime Deprecation Notice: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php line 4760 </pre> The problem seems to be that when creating ne pages the keywords are `NULL`. A simple "Null "Nullish coalescing operator" in /typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php:828 should fix the issue: <pre><code class="php"> $kw = trim($this->parent_cObj->keywords($value_rec[$kfieldSrc] ?? '')); </code></pre>