• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Image uploading error in Photo Gallery

M

maxioana

Guest
Error for Image uploading with resizing option in Gallery for an image with size 3.5 Mb and dimesions 3548x2376

"Error:The operation has not been completed"

Cattura1.JPG


Dettagli #27192
Data di creazione 2009/02/25 01:12:00
Livello Errore
Sorgente System
Sorgente System
Nome utente admin
Indirizzo IP 89.97.+++.+++
URL richiesta /Wizard/Edit/Modules/ImageGallery/Image/Upload
URL referrer http://sitebuilder.+++++++++++.com/Wizard/Edit/Modules/ImageGallery/ImageUpload
User agent Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Messaggio Action status: 2; Target: /Wizard/Edit/Modules/ImageGallery/ImageUpload; Messages: Errore! L'operazione non è stata completata.

________________________________________________________________________________

No error reported in /var/log/httpd/sitebuilder_error.log

________________________________________________________________________________

When we tried to upload the same image without resizing option we got the error in sitebuilder_error.log:


[Wed Feb 25 01:14:57 2009] [error] [client 89.97.+++.+++] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 29753633 bytes) in /usr/local/sitebuilder/include/SB/Modules/Transport/Client/Socket.php on line 381, referer: http://sitebuilder.+++++++++++.com/Wizard/Edit/Modules/ImageGallery/ImageUpload

Cattura2.JPG

______________________________________________________________________
After reducing the size of image to 900kb and upload it with resizing option we got the same error (The operation has not been completed) .
And no error for uploading without resizing.
______________________________________________________________________


What do we need to fix in order to upload bigger image without error?

You can get the image here:

http://rapidshare.com/files/202192319/flower.jpg

http://visitefree.altervista.org/flower.jpg


______________________________________________________________________

memory_limit = 1536M
post_max_size = 200M
upload_max_filesize = 200M

______________________________________________________________________
PHP.ini (only a part)


asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
open_basedir = Off
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 90 ; Maximum execution time of each script, in seconds
max_input_time = 90 ; Maximum amount of time each script may spend parsing request data
memory_limit = 1536M ; Maximum amount of memory a script may consume (16MB)
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 200M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = "/opt/php52/lib/php/modules"
enable_dl = On
file_uploads = On
upload_max_filesize = 200M
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 90

[Date]
[filter]
[iconv]
[sqlite]
[xmlrpc]
[Pcre]
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
 
Error present also in your sitebuilder demo!

I already read all the forum post and knowledge base realated at this type of error but nothing come up.

Everything works fine less the upload of big images (ex. 3.5Mb 2500x2500) in photo gallery.

We don't have Apache module mod_security and PHP extension suhosin on our server and also is not present at publication server.

Value present in PHP.ini (server sitebuilder and also server for publishing)

memory_limit = 1536M
post_max_size = 768M
upload_max_filesize = 768M

Try for testing purpose to upload one of the image posted above with Sitebuilder Wizard Demo provided by Parallels and you will see what I'm talking about

http://www.parallels.com/it/products/plesk/sitebuilder/demo/ (Linux version)
 
From the error above:

[Wed Feb 25 01:14:57 2009] [error] [client 89.97.+++.+++] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 29753633 bytes) in /usr/local/sitebuilder/include/SB/Modules/Transport/Client/Socket.php on line 381, referer: http://sitebuilder.+++++++++++.com/W...ry/ImageUpload

I can see that memory size 64M exhausted. Which php.ini files did you used exactly? Please give me php.ini files with paths on Sitebuilder and on publishing servers together with memory values in it.
 
Thank you for your support. I have installed a fresh copy to a new fedora server and it's working without problems
 
Back
Top