[TASK] Improve error message of "broken rootline"
authorGeorg Ringer <mail@ringerge.org>
Fri, 13 Jan 2012 11:29:53 +0000 (12:29 +0100)
committerGeorg Ringer <mail@ringerge.org>
Tue, 24 Jul 2012 05:28:42 +0000 (07:28 +0200)
Currently it is hard to get the reason why the error
"broken rootline" appears. Therefore the error msg can be
improved by adding the ID and fields which are queried.

Change-Id: I0d47ba944a96b29b220e590c24ead8c75c0a5fb6
Resolves: #33082
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/13007
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_page.php

index 9e5d596..9e3ab5d 100644 (file)
@@ -703,7 +703,7 @@ class t3lib_pageSelect {
                                        // Add row to rootline with language overlaid:
                                $theRowArray[] = $this->getPageOverlay($row);
                        } else {
-                               $this->error_getRootLine = 'Broken rootline';
+                               $this->error_getRootLine = 'Broken rootline (failed on page with uid ' . $uid . ')';
                                $this->error_getRootLine_failPid = $uid;
                                return array(); // broken rootline.
                        }
@@ -1452,4 +1452,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_page.php']);
 }
 
-?>
\ No newline at end of file
+?>