Typo3 Entwicklereinstellungen: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→FLUSH CACHE) |
F (Diskussion | Beiträge) (→typo3 7) |
||
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | [[typo3]] | + | [[typo3]] | [[TYPO3.CMS 7.6 Schnipsel]] |
= typo3 7 = | = typo3 7 = | ||
+ | |||
+ | == typo3 log == | ||
+ | im typo3/install/ in | ||
+ | |||
+ | |||
+ | |||
+ | All configuration | ||
+ | |||
+ | [SYS][systemLog] = file,typo3temp/logs/system.log,1 | ||
+ | |||
+ | |||
+ | jetzt wird schön geloggt | ||
== Typoscript == | == Typoscript == | ||
Zeile 24: | Zeile 36: | ||
Alternative zu \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(); | Alternative zu \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(); | ||
+ | |||
+ | |||
+ | '''Achtung zur Einstellung''' | ||
+ | * Dateien | ||
+ | <source lang=bash> | ||
+ | ln -s typo3conf/ext/includekrexx/Resources/Private/krexx/log/ krexx | ||
+ | mv krexx/index.php krexx/index.php_ | ||
+ | more krexx/ | ||
+ | more krexx/.htaccess | ||
+ | Options +Indexes | ||
+ | IndexOptions ScanHTMLTitles FancyIndexing | ||
+ | IndexOrderDefault Descending Date | ||
+ | </source> | ||
+ | * Einstellungen im Backend Module | ||
+ | ** Output Destination: file | ||
+ | ** Try to detect AJAX requests: false | ||
=== !Extensions === | === !Extensions === | ||
Zeile 33: | Zeile 61: | ||
$parser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser'); | $parser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser'); | ||
$queryParts = $parser->parseQuery($query); | $queryParts = $parser->parseQuery($query); | ||
+ | |||
+ | |||
+ | \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($parser->parseQuery($query)); | ||
</source> | </source> | ||
* http://www.typo3-snippets.de/snippets/extbase-und-fluid/extbase-sql-queries-debuggen/ | * http://www.typo3-snippets.de/snippets/extbase-und-fluid/extbase-sql-queries-debuggen/ | ||
+ | |||
+ | <source lang=php> | ||
+ | $queryResult->toArray(); | ||
+ | \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($GLOBALS['TYPO3_DB']->debug_lastBuiltQuery); | ||
+ | </source> | ||
+ | * http://blog.undkonsorten.com/sql-queries-debuggen-in-typo3 | ||
= typo3 CMS V6 = | = typo3 CMS V6 = | ||
Zeile 113: | Zeile 150: | ||
== flush general cache == | == flush general cache == | ||
== flush system cache== | == flush system cache== | ||
+ | SYSTEM > Backend-Benutzer > edit Backend User > Optionen > TSconfig | ||
+ | options.clearCache.system = 1 | ||
+ | |||
* Viewhelper | * Viewhelper | ||
* Sprache | * Sprache | ||
+ | |||
+ | |||
+ | == Datei cache typo3 (keine Datenbank) == | ||
+ | <source lang=bash> | ||
+ | rm typo3temp/Cache/Data/cache_classes/* | ||
+ | rm typo3temp/Cache/Data/l10n/* | ||
+ | rm typo3temp/Cache/Code/cache_core/* | ||
+ | rm typo3temp/Cache/Code/static_info_tables/DomainModel* | ||
+ | rm typo3temp/Cache/Code/cache_phpcode | ||
+ | </source> | ||
+ | |||
+ | = Extension Grundlagen = | ||
+ | == Extension Installations Ablauf == | ||
+ | |||
+ | * typo3conf/PackageStates.php | ||
+ | |||
+ | * https://docs.typo3.org/typo3cms/CoreApiReference/ExtensionArchitecture/Installation/ | ||
+ | |||
+ | |||
+ | = No Cache = | ||
+ | == Typoscript == | ||
+ | <source lang=typoscript> | ||
+ | [globalVar = TSFE : beUserLogin > 0] | ||
+ | config.no_cache = 1 | ||
+ | [global] | ||
+ | </source> |
Aktuelle Version vom 26. Mai 2016, 09:00 Uhr
typo3 | TYPO3.CMS 7.6 Schnipsel
Inhaltsverzeichnis
typo3 7
typo3 log
im typo3/install/ in
All configuration
[SYS][systemLog] = file,typo3temp/logs/system.log,1
jetzt wird schön geloggt
Typoscript
im haupt template
config.contentObjectExceptionHandler = 0
typo3/install/ => All configuration
[SYS][systemLogLevel] = 3 [SYS][displayErrors] = 1 [SYS][errorHandlerErrors] = 30466 [SYS][exceptionalErrors] = 20480
# If set, the toolbar menu entry for clearing system caches (core cache, class cache, etc.) is visible for admin users. [SYS][clearCacheSystem] = 1
Entwickler Extensions
includekrexx
- fürs debuggen
- getestet mit typo3 7.6.1
Alternative zu \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump();
Achtung zur Einstellung
- Dateien
ln -s typo3conf/ext/includekrexx/Resources/Private/krexx/log/ krexx
mv krexx/index.php krexx/index.php_
more krexx/
more krexx/.htaccess
Options +Indexes
IndexOptions ScanHTMLTitles FancyIndexing
IndexOrderDefault Descending Date
- Einstellungen im Backend Module
- Output Destination: file
- Try to detect AJAX requests: false
!Extensions
- medclearcache - hat keine Auswirkungen auf Clear Frontend Cache und Clear Install Cachen
php
mysql query ausgeben
$parser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser');
$queryParts = $parser->parseQuery($query);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($parser->parseQuery($query));
$queryResult->toArray();
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($GLOBALS['TYPO3_DB']->debug_lastBuiltQuery);
typo3 CMS V6
Extension: devlog
muss am besten installiert sein!!!
log Einstellung
folgende Datei anlegen falls nicht schon existiert
typo3conf/AdditionalConfiguration.php
diese Datei wird nicht wieder automatisch überschrieben wie LocalConfiguration.php
$system = 0; //0 = develop, 1 = production, 2 = performance
if ($system === 0) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] = '127.0.0.*'; # wenn typo3 auf lo installiert ist, * für alle Rechner
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandler'] = 't3lib_error_ErrorHandler';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandlerErrors'] = E_ALL ^ E_NOTICE;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['exceptionalErrors'] = E_ALL ^ E_NOTICE ^ E_WARNING ^ E_USER_ERROR ^ E_USER_NOTICE ^ E_USER_WARNING;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = 't3lib_error_DebugExceptionHandler';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = 't3lib_error_DebugExceptionHandler';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLogLevel'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog'] = 'error_log';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_errorDLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_exceptionDLOG'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = 'console';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = '1';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['extCache'] = '0';
} elseif ($system === 1) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '2';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] = '127.0.0.*';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandler'] = 't3lib_error_ErrorHandler';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLogLevel'] = '2';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog'] = 'error_log,,2;syslog,LOCAL0,,3';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_errorDLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_exceptionDLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandlerErrors'] = 0;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['exceptionalErrors'] = 0;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = '';
} elseif ($system === 2) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] = '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandler'] = '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog'] = '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_errorDLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_exceptionDLOG'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = '';
}
deprecation_dba13840e0.log
immer mal ein Auge draufwerfen, welche Funktionen demnächst nicht mehr am Start sind
deprecation_dba13840e0.log
FLUSH CACHE
- http://blog.reelworx.at/detail/typo3-cms-clear-cache-buttons-explained/
- http://typo3blog.at/blog/artikel/typo3-caching-grundlagen/
flush frontend cache
flush general cache
flush system cache
SYSTEM > Backend-Benutzer > edit Backend User > Optionen > TSconfig
options.clearCache.system = 1
- Viewhelper
- Sprache
Datei cache typo3 (keine Datenbank)
rm typo3temp/Cache/Data/cache_classes/*
rm typo3temp/Cache/Data/l10n/*
rm typo3temp/Cache/Code/cache_core/*
rm typo3temp/Cache/Code/static_info_tables/DomainModel*
rm typo3temp/Cache/Code/cache_phpcode
Extension Grundlagen
Extension Installations Ablauf
- typo3conf/PackageStates.php
No Cache
Typoscript
[globalVar = TSFE : beUserLogin > 0]
config.no_cache = 1
[global]