Bug #14857
closedcontent editing fields disapear when using extTables.php
0%
Description
I uncommented the line in typo3conf/extTables.php:
$GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024;
coming with version 3.8.0.
$typo_db_extTableDef_script = 'extTables.php';
is set by default in locacalconf.php
All content editing fields disapear in typo3/alt_doc.php in the Backend. It's not possible to edit any content any more.
Additionally I get the warning:
Warning: Invalid argument supplied for foreach() in /var/lib/typo3/typo3_src-3.8.0/typo3/sysext/cms/layout/class.tx_cms_layout.php on line 390
Deactivating the warning just let the warning disapear. The bug(?) still the same.
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
HTTP_ACCEPT_LANGUAGE: de
CONST: PHP_OS : Linux
CONST: TYPO3_OS :
CONST: PATH_thisScri: /data0/htdocs/kunden.tmpw.de/sapprestart/typo3/install/index.php
CONST: php_sapi_name: apache
OTHER: TYPO3_VERSION: 3.8.0
OTHER: PHP_VERSION : 4.1.2
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif() : 1
imagepng() : 1
imagejpeg() : 1
imagettftext() : 1
OTHER: IMAGE_TYPES : 30
OTHER: memory_limit : 25M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /sapprestart/typo3/install/index.php
SERVER: PATH_TRANSLA: /data0/htdocs/kunden.tmpw.de/sapprestart/typo3/install/index.php
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib : 1
T3CV_GFX: gdlib_png : 1
T3CV_GFX: gdlib_2 : 1
T3CV_GFX: im : 1
T3CV_GFX: im_path : /usr/bin/
T3CV_GFX: im_path_lz: /usr/bin/
T3CV_GFX: im_version: 1
T3CV_GFX: im_negate_: 1
T3CV_GFX: im_imvMask: 0
T3CV_GFX: im_combine: composite
(issue imported from #M1276)
Updated by Arne Gehlhaar over 19 years ago
fortgort to mention the page where the warning apears:
typo3/sysext/cms/layout/db_layout.php
Warning: Invalid argument supplied for foreach() in /var/lib/typo3/typo3_src-3.8.0/typo3/sysext/cms/layout/class.tx_cms_layout.php on line 390
Updated by Peter Niederlag over 19 years ago
<cite>
I uncommented the line in typo3conf/extTables.php:
$GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024;
coming with version 3.8.0.
</cite>
Which package does carry this file? Are u sure it came with a official TYPO3-package?
Actually that does not seem like an appropriate action to me right now...
maybe put in a check if it is a good idea to spit this $TCA into CMS TYPO3 without in care. ;). have you tried adding t3lib_div::loadTCA('tt_content'); and not using $GLOBALS?
But then, if it is a file from the distribution, then it should work, you're right...
Updated by Arne Gehlhaar over 19 years ago
I've tried it on 3 different servers now. Always with the dummy-package. I downloaded the package and the sources from the official typo3.org website. Everytime the same error. So to me it looks really like a bug.
What do you mean with "appropriate action"? This comes with the 3.8.0 release by default in typo3conf/extTables.php. I just did what is written in the comments:
/**
* Overriding $TCA
*
* The TYPO3 Configuration Array (TCA) is defined by the distributed tables.php and ext_tables.php files.
* If you want to extend and/or modify its content, you can do so with scripts like this.
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder.
* Extensions are movable to other TYPO3 installations and provides a much better division between things! Use them!
*
* Information on how to set up tables is found in the document "Inside TYPO3" available as a PDF from where you downloaded TYPO3.
*
* Usage:
* Just put this file to the location typo3conf/extTables.php and add this line to your typo3conf/localconf.php:
* $typo_db_extTableDef_script = 'extTables.php';
*/
// Raise upload limit for images in 'image' content-elements to 10*1024 bytes = 1MB
#$GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024;
- $GLOBALS['TCA']['tt_content']['columns']['starttime']['config']['eval'] = 'datetime';
- $GLOBALS['TCA']['tt_content']['columns']['endtime']['config']['eval'] = 'datetime';
- $GLOBALS['TCA']['pages']['columns']['starttime']['config']['eval'] = 'datetime';
- $GLOBALS['TCA']['pages']['columns']['endtime']['config']['eval'] = 'datetime';
Updated by Sebastian Kurfuerst about 19 years ago
Hi Arne,
as Peter already pointed out, you have to use the t3lib_div::loadTCA method.
You can find some examples here:
http://typo3.org/documentation/document-library/doc_core_api/Extending_the_TCA_a/
there is also some extension setting the max image size to some higher value in TER - you can look there how it was done.
Closing this bug, if there is some new information, please reopen.
Greets, Sebastian