Monday, August 27, 2007

Uebimiau Bug: class.uebimiau.php on line 467

See: http://www.uebimiau.org/

Migrating the webfrontend (uebimiau version 2.7.2, is a old release) from an old suse to debian with php5 caused one error:

Site: https://***/download.php?folder=inbox&ix=0&mnum=&bound=FF0tLS0tLS0tLS0tLFFFFFA0MDUwNjAyMDAwNjA2MDIwFFFFMDU=&part=1&sid={46D2FFFF54623-46D2FCE259441-FFFF232418}&tid=0&lid=1

Warning: Header may not contain more than a single header, new line detected. in /Data/DataInet/webmail.t-p.com/inc/class.uebimiau.php on line 467

 

Solve it this way

$ diff class.uebimiau.php.ori class.uebimiau.php
466,467c466,467
<                       header(“Content-Type: $content_type; name=\”$filename\”\r\n”
<                       .”Content-Length: $filesize\r\n”);

>                       header(“Content-Type: $content_type; name=\”$filename\”");
>                       header(“Content-Length: $filesize”);
469c469
<                       header(“Content-Disposition: $cdisp; filename=\”$filename\”\r\n”);

>                       header(“Content-Disposition: $cdisp; filename=\”$filename\”");
680c680
< ?>
\ No newline at end of file

> ?>

I dislike php 

Posted by schmidi2 at 17:50:14 | Permalink | No Comments »

Sunday, August 5, 2007

upload_max_filesize and post_max_size should have same size

From typo3 I have learned that the two php-options (general in /etc/php/php.ini) should have the same value. Otherwise doesn’t make really sense. 

Maximum size for POST requests is smaller than max. upload filesize upload_max_filesize=20M, post_max_size=8M
You have defined a maximum size for file uploads which exceeds the allowed size for POST requests. Therefore the file uploads can not be larger than 8M

(Don’t forget restarting your webserver always you make a change in php.ini) 

Posted by schmidi2 at 20:22:23 | Permalink | No Comments »

Sunday, July 29, 2007

Uebimiau Bug: folders.php on line 157

See: http://www.uebimiau.org/

Migrating the webfrontend (uebimiau version 2.7.2, is a old release) from an old suse to debian with php5 caused one error:

Site: https://***/folders.php?folder=inbox&sid={****}&tid=0&lid=8

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /Data/DataInet/***/folders.php on line 157

 

Solve it this way

$ diff folders.php.ori folders.php
155,156c155,160
<
< $umFolderList = array_merge($system, $personal);

>
> if(isset($personal)) {
> $umFolderList = array_merge($system, $personal);
> } else {
> $umFolderList = array_merge($system);
> }

Posted by schmidi2 at 15:09:40 | Permalink | No Comments »