When you enter invalid parameters to language(whether add or edit) and add a new "No Picture" image you get a crash, but "No Picture" image saves anyway.
When adding an invalid parameter to language proper error should be shown and not an exception. Also, it shouldn't save "No Picture" image if form is invalid.
Steps to reproduce the behavior:
Screenshots

Hello @JevgenijVisockij ,
Can you specify which PS version you are using ?
Thanks!
Hello @JevgenijVisockij ,
Can you specify which PS version you are using ?
Thanks!
Oh sorry forgot it. Updated the bug report.
Thanks !
I managed to reproduce the bug :

After encountering the bug, no-image image still shows :

So I will add this to the debug roadmap.
Thanks!
@florine2623 @hibatallahAouadni Is it a regression compared to 1.7.7.x ?
Hello @marionf
No, it's a not regression cause I reproduced it with PS1.7.6.7, PS1.7.6.9 and PS1.7.7.0.
But, this issue is only occured while creating a new language with name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Edit Your primary language
I didn't reproduce it while editing my default language or any other language, see the attached screenshot below:

I just had an error message Cannot add language with invalid data even with debug mode enabled.
Thanks!
Hello @marionf
No, it's a not regression cause I reproduced it with PS1.7.6.7, PS1.7.6.9 and PS1.7.7.0.
But, this issue is only occured while creating a new language with name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaEdit Your primary language
I didn't reproduce it while editing my default language or any other language, see the attached screenshot below:
I just had an error message
Cannot add language with invalid dataeven with debug mode enabled.Thanks!
I am able to reproduce this fully on fresh PS1.7.6.9. I wonder what could we do diffrently.
Product without image(but uses default "No picture" image.

Attempting to save primary Language. Changed name to aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa and added different "No picture" image.

Result from save(Debug mode is off by default).

Same product with, "No picture" image changed successfully despite form crashing.

Hello @JevgenijVisockij
Could you please confirm if this PR #21878 could fix this issue or no?
Thanks!
ok thx :slightly_smiling_face:
Hey!
Yes it would.
EDIT: This was supposed to be before
ok thx slightly_smiling_face
But I deleted it since I wanted to modify it slightly, but wasn't fast enough.