Forum Moderators: coopster

Message Too Old, No Replies

Service Unavailable - Zero size object

error when accesing my PHP page

         

guarriman

3:55 pm on Jul 12, 2007 (gmt 0)

10+ Year Member



In April I posted this issue:
[webmasterworld.com...]

Using PHP 4.3.10 + Apache 2.0.52 on Linux, I got this error message when accesing my PHP page:
---------------
Service Unavailable - zero size object
The server is temporarily unable to service your request. Please try again later.
Reference #15.21eaaad4.1173400585.294a7ed8
---------------

and it comes again :(

I modified php.ini ir order to increase 'memory_limit':
memory_limit = 48M

but it doesn't solve it. Any suggestion?

coopster

5:52 pm on Jul 12, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The error message you are receiving is likely to do with memory allocation issues. What does the PHP script do? Is it a file upload or something?

guarriman

9:02 am on Jul 13, 2007 (gmt 0)

10+ Year Member



Yep, my script does images uploads an creates two resized versions of them.

I control size limit (100 Mb) with 'php.ini':


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

Any suggestion?

coopster

2:59 pm on Jul 13, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There are more than one directive you need be concerned with when learning how to configure php.ini to upload big files [webmasterworld.com]. And don't forget that your HTTP server may come into play as well. For example, on Apache there is the limitrequestbody [httpd.apache.org] configuration directive.