2012-10-17 103 views
0

由於幾天後captcha圖像不再顯示。typo3驗證碼錯誤

我當我試圖達到captcha.php文件給我一個錯誤:

致命錯誤:類「t3lib_div」不/typo3conf/localconf.php發現10號線

當我查找的localconf.php文件,第20行是這樣的:

<?php 
$TYPO3_CONF_VARS['SYS']['sitename'] = 'New TYPO3 site'; 
    // Default password is "joh316" : 
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971'; 
$TYPO3_CONF_VARS['EXT']['extList'] = '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,rtehtmlarea,css_styled_content,t3skin'; 
$typo_db_extTableDef_script = 'extTables.php'; 

// MAX FILE SIZE 
$TYPO3_CONF_VARS['BE']['maxFileSize'] = '100000'; 
t3lib_div::loadTCA('tt_content'); 
// This changes the upload limit for image elements 
$TCA['tt_content']['columns']['image']['config']['max_size'] = 100000; 

// This changes the upload limit for media elements 
$TCA['tt_content']['columns']['media']['config']['max_size'] = 100000; 

// This changes the upload limit for multimedia elements 
$TCA['tt_content']['columns']['multimedia']['config']['max_size'] = 100000; 

有誰有一個想法,爲什麼我得到這個錯誤?

+0

爲什麼你在localconf.php中有TCA設置? – tmt

回答

1

最好的是,下面的這個設置將在ext_tables.php文件的某些擴展名。

但是,如果你沒有任何特殊的分機,那麼你可以把它放到typo3conf/extTables.php文件中。之後,關於t3lib_div找不到的錯誤應該消失。

// MAX FILE SIZE 
$TYPO3_CONF_VARS['BE']['maxFileSize'] = '100000'; 
t3lib_div::loadTCA('tt_content'); 
// This changes the upload limit for image elements 
$TCA['tt_content']['columns']['image']['config']['max_size'] = 100000; 

// This changes the upload limit for media elements 
$TCA['tt_content']['columns']['media']['config']['max_size'] = 100000; 

// This changes the upload limit for multimedia elements 
$TCA['tt_content']['columns']['multimedia']['config']['max_size'] = 100000;