Please login or register.
Login with username, password and session length
June 20, 2013, 01:15:06 AM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

RS2 Gallery installed, but no component in backend by SRD
[June 15, 2013, 10:48:26 AM]


you must provide a description by kasix
[May 24, 2013, 11:48:59 PM]


Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Bug: My Gallery user can upload more items than allowed in setting  (Read 442 times)

Offline jmerc

  • Newbie
  • *
  • Posts: 4

Hello
 I was faced with a problem,
 Why users can upload photos of the authorized number
 For example:
 The maximum number of photos to upload 3 files, but users can upload their most
 You'll be of help
« Last Edit: June 05, 2012, 09:30:11 PM by mirjam »

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Bug: My Gallery user can upload more items than allowed in setting
« Reply #1 on: June 05, 2012, 09:35:42 PM »
Hi jmerc,

Your question deserves a thread of its own: this is a bug that has been in RSGallery2 since 2007... no kidding. You are the first one to see and report it. Thank you!

This will be fixed in the next version. You can already try that by dowloading the latest Nightly Build com_rsgallery2_j25_Nightly_v3.1.0_SVN1078.zip from this post: http://www.rsgallery2.nl/nightly_builds_rsgallery2_joomla_1.61.72.5/what_will_be_new_next_version_posting_guidelines_download_16673.msg43280.html#msg43280 (or future Nightly Builds with an SVN number higher than 1078).

In that thread you'll find all changes since the 3.1.0 release. I think this particular Nightly Build is good to use on a production site, so go ahead, download and test it.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline jmerc

  • Newbie
  • *
  • Posts: 4

Re: Bug: My Gallery user can upload more items than allowed in setting
« Reply #2 on: June 11, 2012, 10:38:15 AM »
Hi Mirjam,

Thanks for your help
SVN1080 version is quite different.
But there is a problem
I'm sure you have a solution for this problem
1. Limit file size for users, it is important.
For example:
 the maximum file size 600 KB, the larger file, display an error message
2. When a user sends a file with a size of 3 MB, the file is accepted, but if watermark is set , when click on the photo Displayed  Fatal error page ,
 but low volume photo No problem.
3. Number of items that each user can send to galleries,
For example, three items in the gallery

thanks alot

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Bug: My Gallery user can upload more items than allowed in setting
« Reply #3 on: June 11, 2012, 01:04:10 PM »
1. The file size is already limited for uploads:
In the php.ini there is a setting upload_max_filesize. You can check this via Backend > Site > System Information > PHP Information and then find the setting upload_max_filesize. For example, on my server it is set to 2M. This means:
- For Frontend My Galleries an image with a file size of 2049KB is not uploaded (with "Image size is too big for upload" message) and with a file size of 2048KB is uploaded.
- Backend 2049KB image does not upload via Upload button with message "The uploaded file exceeds the upload_max_filesize directive (2M) in php.ini.". A 2048KB image will be uploaded.
- In the Backend via Batch Upload the zipfile is also checked on this size.

So the question is
q-a. What is your upload_max_filesize?

2. For the watermarked image
q-b. What is the exact Fatal Error that you get?
q-c. What is the File Size of the image with which you get an error?

3. Currently RSGallery2 checks in the frontend My Galleries the total number of images a user owns (Backend > Components > RSGallery2 > Control Panel > Configuration > tab: My Galleries > Setting: Max numbers of pictures a user can have). This is not a setting per gallery, it's the number of images combined in all galleries.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline jmerc

  • Newbie
  • *
  • Posts: 4

Re: Bug: My Gallery user can upload more items than allowed in setting
« Reply #4 on: June 11, 2012, 03:06:52 PM »
Hi
a. I want frontend users to upload only 1 Meg, but backend
Users upload as php.ini
b.For the watermarked image  error is:" Fatal error:Allowed memory size of 52428800 bytes exhausted (tried to allocate 10368 bytes) in /home/peace/public_html/artsmile/administrator/components/com_rsgallery2/includes/img.utils.php on line 937"
(http://art.tehranpeacemuseum.org/index.php/2012-06-08-19-26-15/4-dsc06230)
c. File Size of the image : 2.48 MB (2,606,504 bytes)
thanks

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Bug: My Gallery user can upload more items than allowed in setting
« Reply #5 on: June 12, 2012, 01:01:41 PM »
1. You would like a different limit for the filesize of uploaded images in the frontend and backend. I will put this on my feature request list, but no promises if/when this might get done.

2. From what I've read on the web after searching on "Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10368 bytes)" there are only two options to solve this problem:
a - upload smaller images to your server (which is no solution, but a way around)
b - or increase memory limit (memory_limit in php.ini) on your server (for the GD library to create thumbnails)

Based on the error message your memory_limit is set to 52M. On my webhost the limit is set to 128M and I have no problem watermarking 2Mb images.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.
Pages: [1]   Go Up
 

anything