Bug #16683
closedextCache = 0 results corrupt extension downloads
Added by Bjrn Kraus about 18 years ago. Updated about 18 years ago.
0%
Description
With the setting TYPO3_CONF_VARS['EXT']['extCache'] = 0 you can download installed extensions in the Extension Manager via "Backup/Delete" just as normal. But if you try to reimport the extension the EM reports that the file is corrupt (some MD5 problem).
(issue imported from #M4456)
Files
EM import.tiff (26 KB) EM import.tiff | Administrator Admin, 2006-11-03 10:40 |
Updated by Peter Niederlag about 18 years ago
Are you reimporting into the very same installation or to another/different installation?
I do have this setting applied on my main development machine/installation and export the extensions form there all the time without any problems.
So maybe it just does not work to import an extension if extCache=0 (disabled caching). I am pretty sure the extensions are not corrupted by this setting.
Peter
Updated by Peter Niederlag about 18 years ago
I just rechecked, can't reproduce this issue. Importing also works flawless here.;(
Can you maybe check your php-error-logging?
other than that; plz check again, use another extension/ browser ....fresh install...
[and be sure to post the exact error of EM, maybe attach a screenshot]
Peter
Updated by Bjrn Kraus about 18 years ago
I tried the import with several production machines which work with normal settings (extCache = 1). So the problem is only with the export I think. If I activate caching, everthing works fine again. There must be an export problem with the EM that only counts with extCache = 0.
Here are my localconf.php settings:
$TYPO3_CONF_VARS['BE']['disable_exec_function'] = '0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']["gdlib_png"] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']["im"] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']["im_path"] = '/usr/bin/'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['TTFdpi'] = '96'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['jpg_quality'] = '80'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['SYS']['sitename'] = 'MySite'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['EXT']['noEdit'] = '0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['FE']['tidy'] = '0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['FE']['logfile_dir'] = 'fileadmin/'; // Modified or inserted by TYPO3 Install Tool.
$typo_db_username = ''; // Modified or inserted by TYPO3 Install Tool.
$typo_db_password = ''; // Modified or inserted by TYPO3 Install Tool.
$typo_db_host = 'localhost'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['SYS']['encryptionKey'] = 'f7e9050c92a851b0016442ab604b0488807615f9738ca1379aab756f83fced30db7a8d424a2b6d6e3d093a40f5b87ee0'; // Modified or inserted by TYPO3 Install Tool.
$typo_db = 'test'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["compat_version"] = '4.0'; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 27-07-2006 11:12:08
$TYPO3_CONF_VARS['EXT']['extList'] = 'css_styled_content,tsconfig_help,context_help,extra_page_cm_options,impexp,sys_note,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate_analyzer,func_wizards,wizard_crpages,wizard_sortpages,lowlevel,install,belog,beuser,aboutmodules,setup,taskcenter,info_pagetsconfig,viewpage,t3skin,xmlrpc_lib,jeditvfs,phpmyadmin,realurl,realurlmanagement,adaltas_realurl_i18n,rlmp_tmplselector,rtehtmlarea,kb_cont_slide,cag_magstyleimg,xajax,kickstarter,indexed_search,static_info_tables,sr_feuser_register,px_hotels,llxmltranslate,px_hotels_manager,fpdf,px_hotels_viewer,div,static_info_tables_de,static_info_tables_it'; // Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['rlmp_tmplselector'] = 'a:1:{s:12:"templateMode";s:4:"file";}'; // Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['rtehtmlarea'] = 'a:16:{s:21:"noSpellCheckLanguages";s:23:"ja,km,ko,lo,th,zh,b5,gb";s:15:"AspellDirectory";s:15:"/usr/bin/aspell";s:17:"defaultDictionary";s:2:"en";s:14:"dictionaryList";s:2:"en";s:18:"HTMLAreaPluginList";s:198:"TableOperations, SpellChecker, ContextMenu, SelectColor, TYPO3Browsers, InsertSmiley, FindReplace, RemoveFormat, CharacterMap, QuickTag, InlineCSS, DynamicCSS, UserElements, Acronym, TYPO3HtmlParser";s:20:"defaultConfiguration";s:105:"Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)";s:12:"enableImages";s:1:"0";s:24:"enableAccessibilityIcons";s:1:"0";s:16:"enableDAMBrowser";s:1:"0";s:22:"enableMozillaExtension";s:1:"0";s:16:"forceCommandMode";s:1:"0";s:15:"enableDebugMode";s:1:"0";s:23:"enableCompressedScripts";s:1:"1";s:20:"mozAllowClipboardUrl";s:114:"http://releases.mozilla.org/pub/mozilla.org/extensions/allowclipboard_helper/allowclipboard_helper-0.5.3-fx+mz.xpi";s:18:"plainImageMaxWidth";s:1:"0";s:19:"plainImageMaxHeight";s:1:"0";}'; // Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['indexed_search'] = 'a:17:{s:8:"pdftools";s:9:"/usr/bin/";s:8:"pdf_mode";s:2:"20";s:5:"unzip";s:9:"/usr/bin/";s:6:"catdoc";s:9:"/usr/bin/";s:6:"xlhtml";s:9:"/usr/bin/";s:7:"ppthtml";s:9:"/usr/bin/";s:5:"unrtf";s:9:"/usr/bin/";s:9:"debugMode";s:1:"0";s:18:"fullTextDataLength";s:1:"0";s:23:"disableFrontendIndexing";s:1:"0";s:6:"minAge";s:2:"24";s:6:"maxAge";s:3:"168";s:16:"maxExternalFiles";s:1:"5";s:26:"useCrawlerForExternalFiles";s:1:"0";s:11:"flagBitMask";s:3:"192";s:16:"ignoreExtensions";s:0:"";s:17:"indexExternalURLs";s:1:"0";}'; // Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 17-08-2006 22:23:48
// Updated by TYPO3 Install Tool 20-08-2006 15:45:47
// Updated by TYPO3 Extension Manager 14-09-2006 23:33:38
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8'; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 14-09-2006 23:43:22
$TYPO3_CONF_VARS['EXT']['extConf']['sr_feuser_register'] = 'a:4:{s:12:"uploadFolder";s:27:"uploads/tx_srfeuserregister";s:10:"imageTypes";s:30:"png, jpg, jpeg, gif, tif, tiff";s:12:"imageMaxSize";s:3:"250";s:12:"useFlexforms";s:1:"1";}'; // Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['static_info_tables_de'] = 'a:1:{s:5:"dummy";s:1:"1";}'; // Modified or inserted by TYPO3 Extension Manager.
$TYPO3_CONF_VARS['EXT']['extConf']['static_info_tables_it'] = 'a:1:{s:5:"dummy";s:1:"0";}'; // Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 27-10-2006 18:47:45
$TYPO3_CONF_VARS['SYS']['sqlDebug'] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['FE']['debug'] = '1'; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 29-10-2006 17:14:46
// Updated by TYPO3 Extension Manager 30-10-2006 16:09:15
$TYPO3_CONF_VARS['EXT']['extCache'] = '0'; // Modified or inserted by TYPO3 Install Tool.
Updated by Peter Niederlag about 18 years ago
weird....
so you say:
a) site one
versions: Php5; Typo3 4.0
extCache=0
export extension (any ext, whci way are you using exactly)
-> seems to work
b) site two
versions: Php5; Typo3 4.0
extCache=1
import extension
-> fails
Could you please post exact error (screenshot)?
Which OS?
which minor version of TYPO3? 4.0.1, 4.0.2
I just can't reproduce it, so it must be something strange...
Updated by Bjrn Kraus about 18 years ago
This is exactly what happens. Site one is (export) on my Mac with PHP 5.1.6 www.entropy.ch Release 1, TYPO3 4.0.2. The production machine (import) is Ubuntu Linux, PHP 5.1.4, TYPO3 4.0.2.
I added a screenshot of the failed import.
Perhaps the problem depends on some special settings on my developer machine. But if that would be the case, I wonder why everything works fine with activated caching?!
Updated by Peter Niederlag about 18 years ago
Did you ever compare the two different version of exported extensions (file-size), with/without extCache=0 ? Could you maybe put those two versions up somewhere so we can have a look at them?
Updated by Bjrn Kraus about 18 years ago
Ich habe mir mal im Editor die beiden binaries angeschaut: Der Unterschied liegt darin, dass bei deaktiviertem extCache (= 0) noch ein Leerzeichen oder was ähnliches im t3x-File ist, was dann wahrscheinlich die MD5-Summe, die zu Beginn der Datei steht, durcheinander bringt. Kann das sein?
Updated by Bjrn Kraus about 18 years ago
OK, forget about the bug report and close it: I checked my TYPO3 installation and compared it with others. With deactived cache my version always prints out a space character at the begin of the output... sorry!
Updated by Peter Niederlag about 18 years ago
It turned out to be no bug after all.