Bug #43369
closed
Show history in Module Info defect
Added by Bernhard Eckl over 11 years ago.
Updated over 6 years ago.
Category:
Backend User Interface
Description
I go to Module -> Info -> Log and click on the history icon. Then I get the following error message:
Not Found
The requested URL /typo3/sysext/info/mod1/show_rechis.php was not found on this server.
can confirm this on current master
- Target version set to 6.0.3
the bug is in line 57 in this file: typo3\sysext\belog\Classes\ViewHelpers\HistoryEntryViewHelper.php
old: $historyHref = 'show_rechis.php?sh_uid=' . $historyEntry->getUid() . '&returnUrl=' . rawurlencode(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI'));
new: $historyHref = '../../../show_rechis.php?sh_uid=' . $historyEntry->getUid() . '&returnUrl=' . rawurlencode(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI'));
Actually just experienced this on 4.5.25 also. (Probably irrelevant to you guys, but thought I'd mention it.)
Line 845 of class.show_rechis.inc appears to indicate:
$Ahref = 'show_rechis.php?'.t3lib_div::implodeArrayForUrl('',$params).($anchor?'#'.$anchor:'');
Changing this to:
$Ahref = '../../../show_rechis.php?'.t3lib_div::implodeArrayForUrl('',$params).($anchor?'#'.$anchor:'');
Resulted in a Max Execution Time Exceeded error, which was at least better than a 404 ;) Sadly the server my site is on is buggered right now, so I can't tell you if the above resolves the error, or just introduces a new one.
Either way I'd love to know how to get the revision history working on 4.5.25 as I have some things I desperately need to rollback!!!
Tobias H. wrote:
the bug is in line 57 in this file: typo3\sysext\belog\Classes\ViewHelpers\HistoryEntryViewHelper.php
old: $historyHref = 'show_rechis.php?sh_uid=' . $historyEntry->getUid() . '&returnUrl=' . rawurlencode(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI'));
new: $historyHref = '../../../show_rechis.php?sh_uid=' . $historyEntry->getUid() . '&returnUrl=' . rawurlencode(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI'));
the old one worked fine on my system, but i ended up having a problem with xdebug plugin instead..the recursive calls made crossed the limit of 100 and i had to change the limit manually to access the page.. Something similar happened while installing typo3 when the max exec time of 30 seconds was exceeded..
Patch works for me in 6.0.4. Thanks!
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF