ProMission Projects, Inc.

Typo3 FAQ

Premature end of script headers adding links in rtehtmlarea

When you try adding a link with rtehtmlarea you receive an internal server error.  Looking at the error_log for httpd you may have:


Premature end of script headers: php-script, referer: http://www.yoursite.net/typo3/alt_doc.php?returnUrl

=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php

%3Fid%3D69&edit[tt_content][181]=edit


Premature script header errors are usually caused by a rights issue.  if the directory is chmod to 775, try 755 on the extension directory.  This fixed the problem on our servers.

tt_content 9.8 MB limit fix:

  1. Go to line 762 in typo3/sysext/cms/tbl_tt_content.php
  2. Change

'max_size' => '10000', 

to whatever number works for you.  (10000 = 9.8MB)

tt_content image 1 MB limit fix:

  1. Go to line 338 (line 394 in TYPO3 4.0.4) in typo3/sysext/cms/tbl_tt_content.php
  2. Change

'max_size' => '1000', 

to whatever number works for you.  (1000 = 1.2MB)


ImageMagick Grief:

  1. tar xzf ImageMagick-4.2.9.tar.gz
  2. Then we change to the ImageMagick-4.2.9 directory and call the configuration program with the following command line:
  3. ./configure -enable-lzw=yes -without-x -enable-shared -disable-static -without-perl -without-frozenpaths -with-ttf=yes
  4. make install
  5. run combine to make sure it is installed

Check php.ini for safe mode restrictions the Typo3 install tool will not detect if safe mode is restricting it.  Typo3 does not tell you this however.  There is no error either, it just doesn't find it.

https secure shell login with Typo3:

add to .htaccess file

RewriteEngine On

RewriteCond %{HTTP_HOST} ^([^:]+)

RewriteRule ^/your/path_to/typo3/?$https://your.server.tld/your/path_to/typo3/ [L,R]

Symlink Issues and .htaccess:

If you are getting strange errors and Typo3 does not work try this .htaccess file.  This is what we use on our servers with Typo3.

 

Options +FollowSymlinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule   ^[^/]*\.html$  index.php

 

Import footer information from page 555 as plain TEXT:

temp.buildFooter = TEXT

temp.buildFooter.data = DB:tt_content:555:bodytext

temp.buildFooter.wrap = |

Import footer information from page 555 as stored RTE content:

temp.buildFooter = RECORDS

temp.buildFooter.tables = tt_content

temp.buildFooter.source = 555

Steps to install AWStats under Typo3:

  1. Install the extention
  2. make the hidden directory .awstats-data/
  3. chmod the .awstats-data/ so the webserver can write to the directory
  4. Install tool:  change the logging directory to your prefered directory.
    (usually filadmin/)
  5. in that directory create an empty file.  (example.log)
  6. add this typoscript to turn on logging:
      config.stat = 1
      config.stat_apache = 1
      config.stat_apache_logfile = example.log
  7. chmod the perlscript awstats.pl so that the webserver can execute the
    script.
  8. In Typo3 click on AWStats then enter a name for the log file then click on"save configuration"
  9. Then click on the name you gave the log.
  10. Then click on "update now" or no data will appear.

Extremely simple Typoscript menu:

  //Top Menu

  subparts.MENU_TOP = HMENU

  subparts.MENU_TOP.1 = TMENU

  subparts.MENU_TOP.1.NO {

    allWrap = <td> | </td>

  }