[Typo3] Cannot use AWSTATS extension, RegEx problem?

Tracy Li angleph8 at yahoo.com
Wed Aug 10 03:30:00 CEST 2005


Problem solved and this is what I did:

1. In file "/var/www/html/cms/typo3/mod/tools/em/index.php":

1) Replace statement "if (ereg("\n[[:space:]]*class[[:space:]]*([[:alnum:]_]+)([[:alnum:][:space:]_]*){",$fContent,$reg))" with statement "if (ereg("\n[[:space:]]*class[[:space:]]*([[:alnum:]_]+)([[:alnum:][:space:]_]*)[{]",$fContent,$reg))";

2) Replace statement "if (ereg('^class[[:space:]]*([[:alnum:]_]+)([[:alnum:][:space:]_]*){',$line,$reg))" with statement "if (ereg('^class[[:space:]]*([[:alnum:]_]+)([[:alnum:][:space:]_]*)[{]',$line,$reg))"

Afterwards, the following warning message will NO LONGER be generated when importing or installing either the "Vistor Tracking System (VTS)" or the "AWSTATS" extensions.

2. Set the permission CHMOD to 755 RECURSIVELY for both the VTS and the AWSTATS extension folders under the "typo3conf/ext" directory. Afterwards, the following error message will NO LONGER be displayed when "VTS" or "AWStats" icon under the "Tools" module is clicked:

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request ...

Tracy



More information about the TYPO3-english mailing list