Memory error while uploading
-
- Phoca Member
- Posts: 21
- Joined: 15 Dec 2007, 01:50
You can set an optio
You can set an option in the config page to allow users to choose which is the memory limit "or" find something that get's this particular information by the server itself?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
yes, you right, I ge
yes, you right, I get there a 'if' clause
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
It is changed, you c
It is changed, you can download it now (the same version 1.6.0)
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 15 Dec 2007, 01:50
Thank you very much!
Thank you very much!
By the way I've tested the modifcation increasing the ini_set('memory_limit', '50M') to 128 (that is the host default) and it worked.
I think that if everybody like me is going to mainly use phocagallery with the "multiple add" option that automatically creates categories and lots of images thumbnails at the same time, the problem of memory exhaust could reappear and actually phocagallery is stuck in that error loop.
I would like to suggest to find a way to return an error message and avoid the bugging of pochagallery untill the user deletes the images via media manager or ftp.
Best regards and keep up the good work!
By the way I've tested the modifcation increasing the ini_set('memory_limit', '50M') to 128 (that is the host default) and it worked.
I think that if everybody like me is going to mainly use phocagallery with the "multiple add" option that automatically creates categories and lots of images thumbnails at the same time, the problem of memory exhaust could reappear and actually phocagallery is stuck in that error loop.
I would like to suggest to find a way to return an error message and avoid the bugging of pochagallery untill the user deletes the images via media manager or ftp.
Best regards and keep up the good work!
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
I don't underst
I don't understand how you can get the loop, When I have tested it (with no memory), I got the Fatal error and the script was ended - no loop ???... The problem is, that I added error messages and after these error messages loop will end but it doesn't work with the memory (ImageCreateFromJPEG() ) because you get Fatal error... And Fatal error stop the script and the looping by itself...
???
Jan
???
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 15 Dec 2007, 01:50
The loop I get is th
The loop I get is this, once I do a multiple add, if in the process there are lots of images (it happened to me with just 5) and I get the error message of memory exhaust, it wont get back to the gallery page anymore.
If I try to access the phocagallery > gallery section I will get again the memory exhaust message untill I delete those images via media manager or ftp.
Once the images are deleted I can get to the gallery section, and the images I've tryed to dowload are there but w/o thumbnail and it says that there was an error and I have to reupload those images etc etc.
If I try to access the phocagallery > gallery section I will get again the memory exhaust message untill I delete those images via media manager or ftp.
Once the images are deleted I can get to the gallery section, and the images I've tryed to dowload are there but w/o thumbnail and it says that there was an error and I have to reupload those images etc etc.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Yes, there is a link
Yes, there is a link to disable the automatically thumbnail creating, but it cannot be used if fatal error is appearing... So if each error appears, you can disable it and go to the Phoca Gallery... The problem of ImageCreateFromJPEG() is that it returns string 0 but the Fatal error too...
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 15 Dec 2007, 01:50
Ok fine, I can disab
Ok fine, I can disable the thumbnail creation, but how I can redo that thumbnail?
Is it possibile per image basis?
Sorry to bother you excessively on this topic eheh
Is it possibile per image basis?
Sorry to bother you excessively on this topic eheh
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
You can enable the t
You can enable the thumbnail creation in default settings (in case your memory is ok now) or you can add images per image. Just click on new (but there you must have the thumbnail creation enabled )
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 15 Dec 2007, 01:50
Okies, thanks for th
Okies, thanks for the support!