View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Warning: session_start() error message with file upload form

Thread began 9/14/2009 7:36 am by terry370125 | Last modified 9/14/2009 6:01 pm by terry370125 | 1145 views | 3 replies

terry370125

Warning: session_start() error message with file upload form

With DFP2, I have a very simply upload form, which is intended to upload to a /Downloads/ folder that is outside the web root. When I attempt to upload a file, the following errors are shown.

Notice: Use of undefined constant on - assumed 'on' in E:\webs\lsmontgomery.com\wwwroot\uploadDownload.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\webs\lsmontgomery.com\wwwroot\uploadDownload.php:3) in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 70

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\webs\lsmontgomery.com\wwwroot\uploadDownload.php:3) in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 70

I included the code, <?php error_reporting(E_ALL); ini_set('display_errors',on); ?> at the top of the page and <?php echo WA_DFP_AllUploadsDebug(); ?> at the bottom of the page in an attempt to debug the page. This gave me the following listing:

Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName : images/spacer.gif
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName : images/spacer.gif
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded

WHEN I REMOVED THE DEBUGGING CODE, the following error messages appeared.

Warning: mkdir() [function.mkdir]: Permission denied in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 30

Warning: move_uploaded_file(E:\webs\lsmontgomery.com\wwwroot\..\..\downloads\454b08a5fa82b1c3595b76aee7c0f477_tmp.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 96

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\temp\PHP-uploads\php2D81.tmp' to 'E:\webs\lsmontgomery.com\wwwroot\..\..\downloads\454b08a5fa82b1c3595b76aee7c0f477_tmp.jpg' in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 96

Warning: copy(E:\webs\lsmontgomery.com\wwwroot\..\..\downloads\454b08a5fa82b1c3595b76aee7c0f477_tmp.jpg) [function.copy]: failed to open stream: No such file or directory in E:\webs\lsmontgomery.com\wwwroot\WA_DigitalFilePro\HelperPHP.php on line 98

I have contacted my web host about permissions for this folder. He tells me that the /downloads/ folder has read/write access.

Any help you can give me in debugging this problem would be very much appreciated.

Best regards,
Terry Montgomery

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...