[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>
Thu, 9 Feb 2012 12:12:34 +0000 (13:12 +0100)
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: I3a60452fbe6f4b7e5b2d06cac64364a34e7aeb52
Resolves: #33082
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7779
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_page.php

index 98e6c24..839dfa1 100644 (file)
@@ -660,7 +660,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.
                        }