Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Possible bug

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 month ago #285733 by timstohr
Possible bug was created by timstohr
Hi Kyle,

Just tried uploading 90 pictures to an album but it uploaded maybe 35and then it blocked... Is that a bug?

Furthermore, I have tried to set the maximum picture size to 10.000 (in plugin and 0 in field override) but when I try to upload pictures, it still says that it cannot upload the picture because it is bigger than 1 MB...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago - 8 years 1 month ago #285740 by krileon
Replied by krileon on topic Possible bug
More than likely the last photo uploaded was too large to processes and caused an error. Check your server error logs for any fatal errors around the time of upload or try re-uploading that photo it crashed at to see if it crashes again. Note for images to process they must unpack to raw data. Uploading a 10mb photo on a budget host for example will not, ever, work because they don't give you enough memory to handle that amount of raw image data (GD2 is awful on memory; consider using Imagick).

Did you adjust the maximum height/width or the actual file size parameter? You need to adjust "Maximum File Size" under Photos > Validation for the gallery to allow larger than 1mb photos.

Edit: Tested the maximum file size parameter and is working fine. Note a galleries parameters are cached between page loads. This is how it secures it self. It caches to a session id. You need to refresh the gallery cache after changing parameters and that's done by simply just viewing the gallery again (refreshing the upload page for example will see no parameter change).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 month ago #285741 by timstohr
Replied by timstohr on topic Possible bug
_The photo uploaded afterwards perfectly fine when I did an EDIT. I have 8 GB RAM so it should be sufficient (and with it never going above 30% usage)

_Yes I have used the right parameters for uploading as you described. I have cleared one cache but I think it must have been one of my other cache places that has saved it. I will try logging out and clearing all my caches.

_ I will have a look at Imagick. Had a look at it half a year ago but didnt see much difference.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 month ago #285755 by krileon
Replied by krileon on topic Possible bug

_The photo uploaded afterwards perfectly fine when I did an EDIT. I have 8 GB RAM so it should be sufficient (and with it never going above 30% usage)

What exactly happened when it stopped uploading? Did the upload progress bar just keep swirling? Any errors in browser console (press F12)? Any errors in server error log? Are you able to reproduce this issue reliably? It's 1 HTTP call per upload and they're uploaded 1 by 1 so it's very unlikely it overloaded the server. My guess is an error occurring during upload of one of the photos.

_Yes I have used the right parameters for uploading as you described. I have cleared one cache but I think it must have been one of my other cache places that has saved it. I will try logging out and clearing all my caches.

You should only need to re-visit the gallery after parameter changes, but you can also logout to clear the cache.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 month ago #285771 by timstohr
Replied by timstohr on topic Possible bug
Error bar just kept swirling and not uploading. Unfortunately, I could not repeat the error (I will try again tomorrow as it may have to do with the names of the pictures I uploaded) and have not thought about error reporting before that.

I have though encountered another random error:

It uploaded dozens of pictures, then faulted some (that were taken with the same camera, same location, incremented numbers as names, same size or smaller) and passed others before and after it faulted some.

The pictures have the same format as well.
Attachments:

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 1 month ago #285790 by timstohr
Replied by timstohr on topic Possible bug
Havent been able to repeat potential bug number 1. It was definitely there though.

Bug 2 has not been able to be repeated either yet. I have uploaded 60 pictures into an album without any problems at all. I will stress test it more during the next days as I have a good 500 photos to upload.

Found another potential bug (I have started using all functions of it heavily as I am bringing my websites up to date with it.) I have opened another post.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum