Dear Support Forum Users,
i have a Problem since 4 Days i try to fix my upload issue.
My upload frontend and backend are working with Image resolutions 1920 x 1080. There is no Problem.
But i try to upload my normal Picture taken with my mobile phone.
These Pictures have a Resolution from 5376 x 2988.
When i try to upload it with all method Java, HTML5, Flash it´s not working.
In Backend i get the error that the file is too big or the Server have not enough Memory. I try all Parameters.
On Server i set:
max_file_uploads = 20
post_max_size 64M
upload_max_filesize 64M
memory_limit 512M
On Joomla i set under media to 100M per File
In Phoca Parameters i set:
Max File Size = 67108864
Max Resolution Width = 15360
Max Resolution Height = 8640
Max Upload from User = 1073741824
Please i Need help. I don´t know what should i do to solve this.
Image too big or not enough memory on Server
-
baker
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2016, 10:11
-
Gruz
- Phoca Enthusiast

- Posts: 61
- Joined: 26 Dec 2008, 19:09
- Location: Ukraine
- Contact:
Re: Image too big or not enough memory on Server
What is the size of the photo you try to upload? Can you provide a photo example so I can try at my server?
Did you check that Joomla uses your upload setting? Try so search for lines you have setup at the server here
upload_max_filesize
post_max_size
memory_limit

Did you check that Joomla uses your upload setting? Try so search for lines you have setup at the server here
upload_max_filesize
post_max_size
memory_limit
Last edited by Gruz on 12 May 2016, 15:38, edited 1 time in total.
-
baker
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2016, 10:11
Re: Image too big or not enough memory on Server
All My Settings are ok in PHP Information.
All the changes i do in the php.ini accepted from Server.

The Resolution is: 5312*2988
and the size: 3,32 MB
All the changes i do in the php.ini accepted from Server.

The Resolution is: 5312*2988
and the size: 3,32 MB
-
Gruz
- Phoca Enthusiast

- Posts: 61
- Joined: 26 Dec 2008, 19:09
- Location: Ukraine
- Contact:
Re: Image too big or not enough memory on Server
In PhocaGallery control panel options I increased the parameters at the screenshot and managed to upload the image

Did you try those parameters?
Did you try those parameters?
Last edited by Gruz on 12 May 2016, 15:38, edited 1 time in total.
-
baker
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2016, 10:11
Re: Image too big or not enough memory on Server
I did the Settings you do,
but it´s still not working in frontend and in backend.
in Frontend without error, in backend with the error message Image file too big or not enough Memory on Server.
You can check the PHP Information on link below.
www.ostwestgespann.de/phpinfo.php
but it´s still not working in frontend and in backend.
in Frontend without error, in backend with the error message Image file too big or not enough Memory on Server.
You can check the PHP Information on link below.
www.ostwestgespann.de/phpinfo.php
-
Gruz
- Phoca Enthusiast

- Posts: 61
- Joined: 26 Dec 2008, 19:09
- Location: Ukraine
- Contact:
Re: Image too big or not enough memory on Server
What gives the errors? PHP itself or Joomla? If joomla, does Phoca give the error? Is it possible to upload the image via a regular joomla mediamanager?
Can you akeebabackup yourwebsite, extract it at your localhost and try there? To be sure it's a server problem, not a Joomla/Phoca problem.
Can you akeebabackup yourwebsite, extract it at your localhost and try there? To be sure it's a server problem, not a Joomla/Phoca problem.
Last edited by Gruz on 12 May 2016, 15:38, edited 1 time in total.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Image too big or not enough memory on Server
Hi, there can be more errors with images like this:
1) Upload - in Phoca Gallery you can set each size you need, but mostly this is limited by server, like Gruz wrote, php settings can limit it - upload size, max post size, etc.
2) Thumbnail processing - thumbnails are made by your server, exactly by GD library which is a part of PHP. Mostly such large files cannot be transformed to thumbnails because of memory on the server. Mostly server does not have enough memory (time, cpu) to produce thumbnail from such large file. But if the server does not have enough memory to create thumbnails, then the one of the way is to prepare thumbnails on your PC or upload small original images to server. If such large images should be on the server, you can e.g. upload smaller images, create thumbnails and then to overwrite the original images with the large. But the question is, if it does make sense to use such large images on website. Another situation is when you give the images for download, so you can ZIP them and add them for download in some of the download component - but use directly such large image on the server, this is really something what makes the server "not happy"
But as written above, if server does not have enough memory to produce thumbnails, you cannot change it per php script (include Joomla! extensions like Phoca Gallery is)
this must be solved on the server 
Jan
It is about limits but no one is set in Phoca Gallery.These Pictures have a Resolution from 5376 x 2988
1) Upload - in Phoca Gallery you can set each size you need, but mostly this is limited by server, like Gruz wrote, php settings can limit it - upload size, max post size, etc.
2) Thumbnail processing - thumbnails are made by your server, exactly by GD library which is a part of PHP. Mostly such large files cannot be transformed to thumbnails because of memory on the server. Mostly server does not have enough memory (time, cpu) to produce thumbnail from such large file. But if the server does not have enough memory to create thumbnails, then the one of the way is to prepare thumbnails on your PC or upload small original images to server. If such large images should be on the server, you can e.g. upload smaller images, create thumbnails and then to overwrite the original images with the large. But the question is, if it does make sense to use such large images on website. Another situation is when you give the images for download, so you can ZIP them and add them for download in some of the download component - but use directly such large image on the server, this is really something what makes the server "not happy"
But as written above, if server does not have enough memory to produce thumbnails, you cannot change it per php script (include Joomla! extensions like Phoca Gallery is)
Jan
If you find Phoca extensions useful, please support the project
-
baker
- Phoca Newbie

- Posts: 9
- Joined: 03 May 2016, 10:11
Re: Image too big or not enough memory on Server
I Uploaded the files successfully over FTP.
I Uploaded the files successfully over Media from Joomla.
The Error comes up when i try to add Pictures to Phoca Gallery.
Then select the Picture and say save ( see on second Picture ) after that i received the error on Screen one.


I Uploaded the files successfully over Media from Joomla.
The Error comes up when i try to add Pictures to Phoca Gallery.
Then select the Picture and say save ( see on second Picture ) after that i received the error on Screen one.


-
Gruz
- Phoca Enthusiast

- Posts: 61
- Joined: 26 Dec 2008, 19:09
- Location: Ukraine
- Contact:
Re: Image too big or not enough memory on Server
Can you please login to backend using English and repeat the screenshots.
I've just noticed Jan's answer. If you can upload the photo via FTP but Phoca fails to generate thumbnails (when adding a photo e.g.), then server memory is not enough or there is a cpu limit not to overload server. Follow Jan reccomendation - upload a smaller image ,generate thumnails, and upload the original image over the smaller one.
I've just noticed Jan's answer. If you can upload the photo via FTP but Phoca fails to generate thumbnails (when adding a photo e.g.), then server memory is not enough or there is a cpu limit not to overload server. Follow Jan reccomendation - upload a smaller image ,generate thumnails, and upload the original image over the smaller one.
Last edited by Gruz on 12 May 2016, 15:38, edited 2 times in total.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Image too big or not enough memory on Server
Hi, on the screenshot, there is error message, which say, you have disabled the thumbnail creation function - you can add images to system, but thumbnails will be not created, as this is disabled in options.
You can enable it back in Options (thumbnails creation)
But maybe then you get memory errors again - because as written above. Server is mostly not ready to transform such large images to thumbnails, moslty the original images used on websites has much smaller resolution.
Because of different limits (memory, cpu, traffic), in internet, images with smaller resolution are used
Jan
You can enable it back in Options (thumbnails creation)
But maybe then you get memory errors again - because as written above. Server is mostly not ready to transform such large images to thumbnails, moslty the original images used on websites has much smaller resolution.
Because of different limits (memory, cpu, traffic), in internet, images with smaller resolution are used
Jan
If you find Phoca extensions useful, please support the project