| View previous topic :: View next topic |
| Author |
Message |
babela
Joined: 20 Apr 2007 Posts: 2
|
Posted: Apr 20, 2007 1:55 am Post subject: Error2 at /cgi-bin/upload.cgi line 325 |
|
|
Hi,
Thank you for a great script
the files upload fine and I can see them on the server, but the page does not redirect. When I unhide the hidden frame it shows:
Error2 at /var/www/test.oberrecht.com/cgi-bin/upload.cgi line 325.
I have tried the suggestions in the sticky post but that did not fix the problem.
The tmp and final upload folders are chmod 777
uploaded files lifetime is set to 0
I am using the pro 2.4 version of the script on ubuntu LTS server. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Apr 20, 2007 6:44 am Post subject: |
|
|
Pretty rare problem, probably some permissions issue or .
Here goes quick fix: in upload.cgi find
| Code: | | opendir(DIR, $dir) || die"Error2"; |
and replace with
| Code: | | opendir(DIR, $dir) || return; |
|
|
| Back to top |
|
 |
babela
Joined: 20 Apr 2007 Posts: 2
|
Posted: Apr 20, 2007 3:14 pm Post subject: |
|
|
| thank you, that worked! |
|
| Back to top |
|
 |
|