Page 1 of 1

Downloading large Study error The website encountered an err

Posted: Thu Feb 23, 2012 2:14 am
by seaharrior
Need help.. when I download studies, if I have only 1 or 2 pictures, download to zip works fine. However, If I try to download ultrasound, or any study that has a lot of pictures, then I get below error message., This study has about 30 to 50 pictures...

To me it sounds like it might be timing out on PHP, probably I have to increase timeout???? Please advise!

Code: Select all

Server error
The website encountered an error while retrieving http://xxx.xxx.xxx.xxx/php/actionItem.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
Also, how do I change the ORANGE background color on Home.php etc on tables. I tried changing in the template_style.css, but it does not go through.

Thanks a Bunch in advance!!!

Posted: Thu Feb 23, 2012 5:38 pm
by pacsone
1. Check the current max_execution_time and memory_limit variable settings in your php.ini configuration file, as the symptom you reported seems to suggest one or both of these limits was being exceeded.

2. You can change the background colors by modifying the following variable in the php/sharedData.php script:

Code: Select all

$BGCOLOR = "#FFA07A";

Posted: Thu Feb 23, 2012 6:49 pm
by seaharrior
Great... thanks it works now. It was the Max Memory settings in php.ini
Also the BGcolor thing worked great.. thanks again!!

Posted: Tue Feb 28, 2012 2:23 pm
by seaharrior
I thought it was resolved, but the website error or error 500 is resolved. however, when I download even two studies that has 72 and 70 images/instances each., it starts the download and sometimes when it reaches 200mb or 210mb it finishes the download, when I try to open the zip file it says corrupt file. "cannot open C:\users.....2-stydy.zip'as archive.

I have actually made the Max Memory counter to 4084MB (4gb) and Timeout value to 1900 (which is 31 minutes) and the download finishes from anywhere 10 minutes to 15. If I download only one study then I have not problem i can unzip and read the dicom images

Please help!

Posted: Tue Feb 28, 2012 4:22 pm
by pacsone
Did you check the Apache/PHP error logs and see if there's any error logged near you download time?

Posted: Tue Feb 28, 2012 6:33 pm
by seaharrior
I am using IIS. I don't see anything reported in Eventlog and looking at the IIS logs, everything looks normal. Mostly communication information like IP address, ports browser versions etc. Also, looking at the PHP log below is what I have for today activities...

Code: Select all

[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: authenticatedHost in C:\PacsOne\php\database.php on line 1918
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: authenticatedDatabase in C:\PacsOne\php\database.php on line 1919
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: sessionCookie in C:\PacsOne\php\database.php on line 1922
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mcrypt_generic_init(): Key size is 0 in C:\PacsOne\php\database.php on line 1924
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mcrypt_generic_init(): Key length incorrect in C:\PacsOne\php\database.php on line 1924
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: authenticatedUser in C:\PacsOne\php\database.php on line 1925
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mdecrypt_generic(): 7 is not a valid MCrypt resource in C:\PacsOne\php\database.php on line 1925
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: authenticatedPassword in C:\PacsOne\php\database.php on line 1926
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mdecrypt_generic(): 7 is not a valid MCrypt resource in C:\PacsOne\php\database.php on line 1926
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mcrypt_generic_deinit(): 7 is not a valid MCrypt resource in C:\PacsOne\php\database.php on line 1927
[28-Feb-2012 04:08:50 UTC] PHP Warning:  mcrypt_module_close(): 7 is not a valid MCrypt resource in C:\PacsOne\php\database.php on line 1928
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: action in C:\PacsOne\php\actionItem.php on line 45
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: option in C:\PacsOne\php\actionItem.php on line 48
[28-Feb-2012 04:08:50 UTC] PHP Notice:  Undefined index: entry in C:\PacsOne\php\actionItem.php on line 49
[28-Feb-2012 08:59:49 UTC] PHP Notice:  session_start(): ps_files_cleanup_dir: opendir(C:\Windows\Temp) failed: No such file or directory (2) in C:\PacsOne\php\home.php on line 9
[28-Feb-2012 13:44:52 UTC] PHP Warning:  unlink(): Invalid argument in C:\PacsOne\php\login.php on line 76
[28-Feb-2012 13:44:52 UTC] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-6.0/no DST' instead in C:\PacsOne\php\footer.php on line 64
[28-Feb-2012 17:59:03 UTC] PHP Warning:  unlink(): Invalid argument in C:\PacsOne\php\login.php on line 76
[28-Feb-2012 17:59:03 UTC] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-6.0/no DST' instead in C:\PacsOne\php\footer.php on line 64

Posted: Tue Feb 28, 2012 11:07 pm
by pacsone
Check your web server (IIS) and see if it has any timeout settings for CGI modules such as PHP.