diogo Posted September 27, 2012 Share Posted September 27, 2012 (edited) I'm having a strange problem when uploading images. when they are bigger then 10kB (some even under it) the upload hangs in 100% and nothing else happens. The Files are present on that page directory but not added to the database. What can be happening? edit: this is solved now. Edited September 27, 2012 by diogo Link to comment Share on other sites More sharing options...
apeisa Posted September 27, 2012 Share Posted September 27, 2012 What does your JS-console say? Link to comment Share on other sites More sharing options...
diogo Posted September 27, 2012 Author Share Posted September 27, 2012 You're right, it's a JS error Link to comment Share on other sites More sharing options...
apeisa Posted September 27, 2012 Share Posted September 27, 2012 Does it work on other sites on same server? Dev or stable version? Link to comment Share on other sites More sharing options...
diogo Posted September 27, 2012 Author Share Posted September 27, 2012 I have the same problem on all of them, using a multi-site installation Link to comment Share on other sites More sharing options...
diogo Posted September 27, 2012 Author Share Posted September 27, 2012 ok, this is strange... is it an error in jQuery? Link to comment Share on other sites More sharing options...
nik Posted September 27, 2012 Share Posted September 27, 2012 Hmm, there's "500 (Internal Server Error)" from the server side (Ajax POST in your first screenshot). That's where the first problem must be. Anything in the error logs? Link to comment Share on other sites More sharing options...
diogo Posted September 27, 2012 Author Share Posted September 27, 2012 Anything in the error logs? nothing... Link to comment Share on other sites More sharing options...
diogo Posted September 27, 2012 Author Share Posted September 27, 2012 The error I got from the server is undefined function imagecreatefromjpeg() || imagecreatefrompng() || imagecreatefromgif(), on the file ImageSizer.php edit: ok, here a strange thing. I disabled JS on the browser, uploaded the image, saved the page, and got the exact same error. then I enebled javascript again, and the image was there on the page... edit2: I disabled the "Display thumbnails in page editor?" option on the images field, and the uploads and was able to upload images with js enabled. Then I enabled the thumbnails option again, and had the same error, but now just by opening the page editing page. Clearly there is an error everytime imagecreatefromjpeg() and the others are called. edit3: I was expecting already, but tried it anyway just to be sure, and this also shows the same error: foreach($page->images as $i){ echo $i->width(300)->url; } edit4: one more edit. Everytime I visit the page one image is resized and an error is shown. So, is I keep refreshing the page, one more url is echoed, until all the files were created. So, the resizing works before the error stops the script. edit5: Solved! I installed the PHP GD Library, and everything works now. Strange thing is that this problem started suddenly, things used to work before and I didn't make any change to the server... well, how do I mark this as solved? Link to comment Share on other sites More sharing options...
Soma Posted September 27, 2012 Share Posted September 27, 2012 We're nearing 12/2012 so expect unusual things happening everywhere. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now