Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Unable to read data... in CGI.pm

Quote Reply
Unable to read data... in CGI.pm
Alex, GT staff, programming experts,

I see such errors daily in my error logs:
GT::CGI::MultiPart (3826): Unable to read data from server.
Still have 166658 bytes to read, but got 0. Data in buffer is: at path_to/MultiPart.pm line 139.

I use GT::CGI and Links modules in my custom application for upload & input management. I do NOT run under mod_perl.
I use the GT library from LSQL v3.0.3, where module versions are: GT::CGI version is v1.144, GT::CGI::MultiPart v1.5, Links v1.197.

I thought, the way I used GT::CGI and Links modules is wrong, so I checked again, and removed all things, which could cause interferences. But nothing. It continues to produce such errors.

I do load the libraries in CGI mode (NO mod_perl, NO persistent environment), in following order:
use GT::CGI;
use GT::Session::File; # must be loaded in conf_system.cfg, because session dir is set here
use GT::Template;
use GT::File::Tools qw(rmkdir move);
use GT::Date qw/date_set_format format_date date_transform date_get/;
use CGI qw/:standard/;
$CGI::POST_MAX= 1024 * 5000; # max 5 Mb posts allowed to avoid Denial of Service Attacks
use CGI::Cookie;

use Links qw/$IN $CFG/;

  • Did I something wrong with load order?
  • Is there a compatibility conflict between GT::CGI and CGI.pm when loading both?
  • I will try to move the Links load right after GT::CGI load, hoping that it will fix that problem.

    I would appreciate any ideas, suggestions, regarding this problem.


    Best regards,

    Paid Support
    from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
    Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
  • Subject Author Views Date
    Thread Unable to read data... in CGI.pm webmaster33 3180 Sep 11, 2005, 7:43 AM
    Thread Re: [webmaster33] Unable to read data... in CGI.pm
    Jagerman 3110 Sep 12, 2005, 10:00 AM
    Post Re: [Jagerman] Unable to read data... in CGI.pm
    webmaster33 3121 Sep 12, 2005, 10:47 AM