332 Posts
Kenneth
7 years ago
7
Topic

I experience that sometimes when I try to save a form with an image, the save process somehow dosn't complete. I don't see any completion message, and nothing is stored in the db. 

I've made sure that the file size is below what is allowed in the image field, and I've also made a php.ini increasing the php variables needed to run seblod. 

I've also experienced that while it might not save the first time, I can try once more and it get's the job done. 

Any ideas? Bug? My setup?

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
6
Level 1

Image resizing is a very resource intensive process, you are probably running out of memory or you experience timeout. To see errors you need to enable error reporting in Joomla or check errors in you server php log.

332 Posts
Kenneth
7 years ago
5
Level 2

I check resources on my server, and it's not the issue. Also, after enabling error reporting, there is nothing related to this.

As soon as I pick smaller images, it works fine. But with bigger (Even when they are under the limit I've set in size for the field) the save process is aborted and the form loads with no data in fields (i.e the title i typed in, isn't stored. nothing is stored. just a blank form).

Edit:
It's the same issue talked about here: https://www.seblod.com/community/forums/forms-content-types/image-upload-suddenly-stopped-working

4229 Posts
Kadministrator
6 years ago
4
Level 3

Seblod uses php functions to resize images, if those fail there isn't much we can do. I experienced the same thing recently and only solution was to increase memory limit and script timeout.

332 Posts
Kenneth
6 years ago
3
Level 4

Okay. Thanks for the answer.

What about the new field with image resize function etc, which is in use over at joomla.org? How does that handle it? Better?

4229 Posts
Kadministrator
6 years ago
2
Level 5

Hi,

as far as I know new field does resizing client side, before it is sent to the server, so it should work better. But I have no information when it will be released to public.

332 Posts
Kenneth
6 years ago
1
Level 6

Okay. But this resize process happens once, and then it's stored as a better size? Or each time the image is asked for?

4229 Posts
Kadministrator
6 years ago
0
Level 7

Client side resizes and editing (if any) are done on upload. Then server still needs to do resize to smaller versions, this depends on set option (on upload, always, always if it doesn't exist)

Get a Book for SEBLOD