![]() |
|
Strange image upload problem. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Strange image upload problem. (/thread-10207.html) |
Strange image upload problem. - Jole - 2012-07-16 Hello, great ZenPhoto team! I am visiting your site/forum, every day, so I will start this post with things I believe every post on forum should start with. (System info, ZenpPoto info and how ZenPhoto is installed) System info:Apache/2.2.22 Zenphoto info:Zenphoto version 1.4.3 [10393] (Official build) How Zenphoto is inhaled?Classic method of installation, files sent to server via FTP, manually created SQL database, run setup.php... About problem:I have problem with uploading images via Zenphoto back end admin panel. If I try upload handler: flash If I try upload handler: jQuery But it is not like that for all images I am trying to upload. Then I tried to upload images in different resolutions and with some I had problems with some not. For example I can not upload image in resolution 1600 x 1200 pixels, with size about 150 kb, but I can upload image in resolution 1920 x 1200 with size about 50 kb. After testing, and testing, I found that problem is not resolution of image, it is size of image in bytes. For example I can upload image in resolution of 2233 x 3654 pixel. I made that image, blank gray image, jpeg, with small size of just 127.08 kB (130.125 bytes) Also, it is important to note that I nave no problems with any image if I upload it via FTP, no matter if size is bigger than 127 kb. Image if found, resized, everything if fine then, problem is just uploading images using admin back end, and with images bigger than about 127 kb. On upload page I can see this: "Note: The maximum size for your total upload is 8MB which is set by your PHP configuration post_max_size. Don't forget, you can also use FTP to upload folders of images into the albums directory!" Also my "upload_max_filesize" in php.ini is 32MB If there is something I need to change in my php.ini file or something else, please advice. Best regards. Strange image upload problem. - sbillard - 2012-07-16 Have you looked in your server log for any errors? Off hand I do not know why size would be a problem so long as it is within the PHP limits (which it apparently is). Maybe there is some other limit. For instance there are limits on how much data can be in a "post" request. That should not be involved with the uploads, but maybe there is something eles we do not know of. Since all three uploaders fail, it is probably something on the server side, so maybe there will be an error message somewhere telling us what. [edit]BTW, thank you for your very thorough posting. This kind of information is really helpful. Sorry that maybe this time there is not enough, but you have done a nice job of reporting your problem. Strange image upload problem. - Jole - 2012-07-16 Hello again. Thank you for your informations. There is no any errors, there is no error_log in root of site, or in zp-core flder or in any other folder, also there is no errors in debug.log in zp-data folder. Is there some other place where I should look for errors? Also, I tried to go back to 1.4.2.4 then back to 1.4.2.1 then again back to current version, but problem is active on all versions. Also I have one more site on the same server with Zenphoto CMS and when I tried on that site, I realized that I have same problem. So you are right, it is probably something on the server side. Could you please tell me where to look? I have access to WHM, so I can look around and make changes. But where to look, and for what? Best regards. Strange image upload problem. - sbillard - 2012-07-16 About the only thing I can think of is for you to put some debugging statements into the upload handler script. In this case the simplest would be the http uploader. You can start by placing the followind just after the require_once statement in
keep moving the line down in the code until you do not get anything placed into the debug log. (Clear the log between tries.) That will give us what got posted and where the upload script stopped. Strange image upload problem. - Jole - 2012-07-17 I tried to paste: like this: define('OFFSET_PATH', 3); require_once(dirname(dirname(dirname(FILE))).'/admin-globals.php'); debugLogVar('HTTP uploader $_POST', $_POST); ` |