close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTTP 500 error

Thread began 9/01/2009 12:36 pm by meister281653 | Last modified 9/08/2009 4:35 pm by Jason Byrnes | 1232 views | 5 replies |

meister281653

HTTP 500 error

Hi,

I got that Error " HTTP 500" when I try to use the DFP2.
I set the Servertime to 900 but the error shows up.
The file is 2,5 MB big. 2 of 5 variations of the upload are uploaded, the rest not.
My server limit is 10MB, so the file size couldnt be it.

Help,
Denis

Sign in to reply to this post

Jason ByrnesWebAssist

the HTTP 500 is a generic error that just translates to "An error has occurred". We will need to know the specific error that has occured to trouble shoot the problem.

Are you using IE? If so try using FireFox.

In internet explorer there is a setting to "Display Friendly HTTP Error Messages". This setting is turned on on your computer so you are not getting the full error. To be able to debug the problem Friendly Error messages will need to be turned off so that IE will display the actual error.
In IE go to Tool -> Internet Options. Click the Advanced tab un check the option to "Display Friendly HTTP Error Messages"


Are you testing locally, in IIS 7? If so:
To enable the more advanced error messaging in IIS 7 you will need to do the following:
1) Go to Control Panel > Administrative Tools
2) Open the IIS control panel and open the ASP option
3) At the top of the ASP control area select Display: Friendly Names
4) Now go down to the Compilation area and expand Debugging Properties
5) In debugging properties make sure to set Enable Client -side Debugging, Enable Server -side debugging, and Send Errors to Browser to TRUE. Make sure to click the Apply on the right side of the page.
6) After setting the debugging you must go back to the IIS control panel and using the controls on the right side restart the server.
This will enable debugging info to display when an error occurs. This should be turned on while testing and should not be left enabled for a live server.


once we know the actual error, we can try to figure the cause.

Sign in to reply to this post

meister281653

My Page:

u1.php


My Code:

<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php require_once("WA_SecurityAssist/WA_RandomPassword.php"); ?>
<?php
if (!session_id()) session_start();
if(isset($_POST["button"])) {
$_SESSION["ImageName"] = "".WA_RandomPassword(10, true, true, true, "") ."";
}?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "load/",
'FileName' => "Original_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "400",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_to_box_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "150",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1_3 Start
$WA_UploadResult1_Params["WA_UploadResult1_3"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_width_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "250",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_3 End
// WA_UploadResult1_4 Start
$WA_UploadResult1_Params["WA_UploadResult1_4"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_height_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "3",
'ResizeWidth' => "120",
'ResizeHeight' => "250",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_4 End
// WA_UploadResult1_5 Start
$WA_UploadResult1_Params["WA_UploadResult1_5"] = array(
'UploadFolder' => "load/",
'FileName' => "fit_width_height_".$_SESSION['ImageName'] ."",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "95",
'ResizeHeight' => "95",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_5 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["button"])){
WA_DFP_UploadFiles("WA_UploadResult1", "image", "0", "", "JPG:100", $WA_UploadResult1_Params);
}
?>
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Upload</title>
</head>

<body>
<form action="" method="post" enctype="multipart/form-data" name="FormUpload" id="FormUpload">
<p>Bild:
<input type="file" name="image" id="image" />
</p>
<p>
<input type="submit" name="button" id="button" value="Hochladen" />
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"]; ?></p>
</form>
</body>
</html>


This is the Error in both iE7 and FF3013:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, service@webmailer.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


In my upload folder there are files like :

f85aea00068c176aafe1b2b62bb42bfa_tmp.JPG
550deb964bb5f0fa1582c54f636bca51.JPG


The test-image is 2,75 MB big.

Denis

Sign in to reply to this post

Jason ByrnesWebAssist

Here are a couple of things to try:

1) try using the DFP 2 Beta Build, it is available in the Beta Builds Section of the DFP Download page.

2) try increasing the memory_limit setting int the php.ini file, try using:
memory_limit = 258M


3) in order for the error reporting code to be effective, it must be at line 1 of your page. move this code:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



to line 1.

Sign in to reply to this post

meister281653

It does not work with the BETA version, too!!!!



Little question.

why should I change my php.ini?
why should I use a not official released BETA version?

Normaly, when I buy something it works, like all your other products. Thsi is real strange. it feels like let the cutomers check all the up coming errors.

I will go back to DFP1. and wait till you fix it somewhere in time.

cheers!

Sign in to reply to this post

Jason ByrnesWebAssist

You will need to change the php.ini file to account for server settings that may prevent you from uploading larger images. You say this page will upload some of the files, but not all of them, so there is a server setting that is preventing Digital File pro from allowing the file to be uploaded. Editing the php.ini file allows you to change the server settings that are preventing the upload.

When uploading an image and resizing it, the GD Library needs to be able to use a lot of memory. Changing the memory_limit setting in the php.ini file will allow the GD library use of the memory it needs.


As for using the beta Build, there was a bug found where in some cases the uploaded files where being given strange names like:
550deb964bb5f0fa1582c54f636bca51.JPG


This is fixed in the beta build. we make this available for people having this problem.

Sign in to reply to this post

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...