[Typo3] Cannot use AWSTATS extension, RegEx problem?

Tracy Li angleph8 at yahoo.com
Tue Aug 9 07:08:12 CEST 2005


Dear all,

I tried to install some of the stats extensions, such as VTS, cc_awstats, on our company's website built upon TYPO3, but all ended with the following warning message:

Warning: ereg(): Unmatched \{ in /var/www/html/cms/typo3/mod/tools/em/index.php on line 2657

As a result, when I clicked the "VTS" or "AWStats" icon under the "Tools" module, a very generic error page was displayed:

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

Did some research on the forum and the only clue I found is that "Typo3 uses Perl-like regex (PCRE, http://php.net/pcre) whereas some PHP installations use Posix like regex (http://php.net/regex when configured with --with-regex)." Checked with our ISP and found out the following PHP compilation switches was configued for us:

'--with-regex=system'
'--with-pcre-regex'        

Our ISP also mentioned that their PHP engine is integrated with ensim control panel. The thing is that I don't have this problem on our own linux test machine which only has the following PHP compiliation switches configured:

'--with-pcre-regex=/usr'

Don't know why our ISP did not specify the dir of the PCRE library files in the '--with-pcre-regex'  switch. 

Please advise and thanks in advance,
Tracy

 





More information about the TYPO3-english mailing list