Gossamer Forum
Quote Reply
Error Log
I've been gettin a similar msg on both of my forums since I've installed them over 6 months ago.

The error is located at
cgi-bin/forum/admin/GForum/Post/View.pm line 584.,

any thoughts what it could be, or what the proper code is at this particular line? Any thoughts would be appreciated.


SEO Consultation
Economics & Personal Finances
Quote Reply
Re: [discusswireless] Error Log In reply to
What are the lines of code on 580-590 ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error Log In reply to
 
my $file = \do { local *FH; *FH };
my $dir = $attachment->{"${prefix}att_id"} % 10;
my $filename = "$CFG->{qq'${prefix}_attachment_directory'}/$dir/$attachment->{qq'${prefix}att_id'}";
open $file, "<$filename" or die "Unable to open file '$filename': $!";

binmode $file;
binmode STDOUT;

require GT::MIMETypes;
my $mime_type = GT::MIMETypes->guess_type($attachment->{"${prefix}att_filename"});





THanks

SEO Consultation
Economics & Personal Finances