Bug #14160
closed
CGI Error message when accessing the install tool
Added by old_henknijveld over 20 years ago.
Updated about 6 years ago.
Description
On certain pages in the install tool (read menu choices), I get a CGI Error message:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
After digging in the class.t3lib_install.php, I found at line 1750 that the code to check if the file exist is marked for not executing (with a #). By removing this, the install tool works correctly.
I am running Windows 2003 server with php 4.3.6 and IIS6.
Regards,
Henk Nijveld
(issue imported from #M83)
OK, this is a proposed fix:
In the file t3lib/class.t3lib_install.php (and (if not symlinked) in its duplicate in the typo3/t3lib/ folder) change the following:
Replace the line:
- if (@file_exists($v) && @is_file($v.$filename.$isExt)) { // file_exists was necessary on windows, because is_file issued a warning if the path was not correct.
With this line:
if (ini_get("safe_mode") || (@file_exists($v) && @is_file($v.$filename.$isExt))) {
That way, if safe_mode is on, the check for the existance of the file would not cause the test to fail, but if it's not enabled, the existance of the file is checked before it's executed. This makes sense to me.
Please confirm if this works for you, Henk Nijveld!
cheers,
Ingmar
Ingmar,
Thanks Ingmar for the response.
This works for me. Why would it not, its the same line as commented with the #, only with a extra check, on save_mode.
I don't know enough from typo3 to tell, that this would not break anything else. Kasper had a reason to change/removing this of course.
regards,
Henk Nijveld
hi ingmar.
The fix didn't work on my typo3 ver. 3.61
running windows 2003 on iis server 6.0 with
php installed as cgi script, PHP version 4.12
imagemagick version 4.29
This is fixed.
Rev. 4890:
Line 1856 in typo3/sysext/install/mod/class.tx_install.php :
if (ini_get('open_basedir') || (file_exists($v)&&@is_file($v.$filename.$isExt))) {
So this is nearly what Ingmar proposed.
- Status changed from Resolved to Closed
Also available in: Atom
PDF