[TYPO3-core] RFC #10259: Bug: Update reference index contains misleading (wrong!) instructions

Daniel Krupke email at danielkrupke.de
Sun Feb 22 22:11:18 CET 2009


Now attached the right patch :-)

Daniel

2009/2/22 Daniel Krupke <email at danielkrupke.de>:
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10259
> http://bugs.typo3.org/view.php?id=9710
> http://bugs.typo3.org/view.php?id=7482
> http://bugs.typo3.org/view.php?id=6248
>
>
> Branches:
> trunk
>
>
> Problem:
> DB Check module references deprecated script file.
>
>
> Solution:
> Instruct user to use CLI script for updating/checking reference index
> and add further details.
>
> Notes:
> bug10259_trunk.patch.txt is patch for trunk
>
>
>
> so long,
> Daniel Krupke
>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
>



-- 
newmedia.solutions sk | Krupke & Siemon GbR
Daniel Krupke
Rosenbergstr. 28
70174 Stuttgart
Mobil +49 177 / 642 74 92
info at newmedia-solutions.de
www.newmedia-solutions.de
ICQ# 51473103
-------------- next part --------------
Index: typo3/sysext/lowlevel/dbint/index.php
===================================================================
--- typo3/sysext/lowlevel/dbint/index.php	(revision 5055)
+++ typo3/sysext/lowlevel/dbint/index.php	(working copy)
@@ -29,6 +29,8 @@
  *
  * This module lets you check if all pages and the records relate properly to each other
  *
+ * $Id$
+ * 
  * @author	Kasper Skaarhoj <kasperYYYY at typo3.com>
  * @coauthor	Jo Hasenau <info at cybercraft.de>
  */
@@ -373,8 +375,13 @@
 
 			// Output content:
 		$content = $GLOBALS['LANG']->getLL('clickToUpdateRefIndex') . ' <input type="submit" name="_update" value="' . $GLOBALS['LANG']->getLL('updateNow') . '" /><br/>';
-		$content.= $GLOBALS['LANG']->getLL('clickToTestRefIndex') . ' <input type="submit" name="_check" value="' . $GLOBALS['LANG']->getLL('checkNow') . '" /><br/>';
-		$content.= $GLOBALS['LANG']->getLL('checkScript') . '<br/>' . t3lib_extMgm::extPath('lowlevel').'dbint/cli/refindex_cli.phpsh';
+		$content.= $GLOBALS['LANG']->getLL('clickToTestRefIndex') . ' <input type="submit" name="_check" value="' . $GLOBALS['LANG']->getLL('checkNow') . '" /><br/><br/>';
+		$content.= '<p>' . $GLOBALS['LANG']->getLL('checkScript') . '</p><br />';
+		$content.= '<p>' . $GLOBALS['LANG']->getLL('checkScript_check_description') . '<br />' . 
+					$GLOBALS['LANG']->getLL('checkScript_check_example') . '</p><br />';
+		$content.= '<p>' . $GLOBALS['LANG']->getLL('checkScript_update_description') . '<br />' . 
+					$GLOBALS['LANG']->getLL('checkScript_update_example') . '</p><br />';
+		$content.= '<p>' . $GLOBALS['LANG']->getLL('checkScript_more') . '</p>';
 		$this->content.= $this->doc->section($GLOBALS['LANG']->getLL('updateRefIndex'), $content, false, true);
 	}
 
Index: typo3/sysext/lowlevel/dbint/locallang.xml
===================================================================
--- typo3/sysext/lowlevel/dbint/locallang.xml	(revision 5055)
+++ typo3/sysext/lowlevel/dbint/locallang.xml	(working copy)
@@ -24,7 +24,12 @@
 			<label index="updateNow">Update now!</label>
 			<label index="clickToTestRefIndex">Click here to test reference index:</label>
 			<label index="checkNow">Check now!</label>
-			<label index="checkScript">You can also run the check as a shell script if the processing takes longer than the PHP max_execution_time allows:</label>
+			<label index="checkScript">You can also run the check as a shell script using CLI if the processing takes longer than the PHP max_execution_time allows.</label>
+			<label index="checkScript_check_description">To check the reference index use:</label>
+			<label index="checkScript_check_example">php /path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -c</label>
+			<label index="checkScript_update_description">To update the reference index use:</label>
+			<label index="checkScript_update_example">php /path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -e</label>
+			<label index="checkScript_more">Make sure that a BE user with the name _cli_lowlevel exists. For more details see: /path/to/your/typo3/sysext/lowlevel/HOWTO_clean_up_TYPO3_installations.txt</label>
 			<label index="updateRefIndex">Update reference index</label>
 			<label index="showSQL">Show SQL parts</label>
 			<label index="useFormattedStrings">Use formatted strings, labels and dates instead of original values for results</label>


More information about the TYPO3-team-core mailing list