Page 1 of 2

Can't add or change image products

Posted: 04 Apr 2024, 12:17
by ScaleBXL
Hello,

I have a problem since yesterday, I can't change or add image product!

Same problem in categories

And if I create a new product I can't add image. I can upload but not select image in phocacartproducts and phocacartcategories directories

Any idea?

Re: Can't add or change image products

Posted: 04 Apr 2024, 12:27
by Jan
Hi, you shoul try to find what changed on your server. Try to enable Devtools in your browser (e.g. in Chrome) and check Javascript console, if there is no Javascript error which prevents from adding images to system. :idea:

Jan

Re: Can't add or change image products

Posted: 04 Apr 2024, 12:39
by ScaleBXL

Re: Can't add or change image products

Posted: 04 Apr 2024, 12:41
by Jan
Did you install or change something which can somehow relate to the modals?

Re: Can't add or change image products

Posted: 04 Apr 2024, 12:43
by ScaleBXL
nothing

Re: Can't add or change image products

Posted: 05 Apr 2024, 10:48
by ScaleBXL
Problem resolved !!!

Strangely the problem occurs when I put my administration in French. I put it in english and the problem is solved! There is maybe a problem with translations of Phoca cart admin.

If this helps anyone.

Re: Can't add or change image products

Posted: 06 Apr 2024, 23:45
by Benno
Hi,
Strangely the problem occurs when I put my administration in French. I put it in english and the problem is solved! There is maybe a problem with translations of Phoca cart admin.
Where did you download this French translation of Phoca Cart? I can't find one to recreate the problem...

Kind regards,
Benno

Re: Can't add or change image products

Posted: 07 Apr 2024, 11:36
by ScaleBXL
Ok it's a problem of compatibility, the Fr pack is not yet for J4

https://www.phoca.cz/download/99-phoca- ... e_vignette

Re: Can't add or change image products

Posted: 07 Apr 2024, 13:24
by Benno
Hi,
yes, I can confirm this error. With the activated French translation of Phoca Cart, no thumbnails can be created due to a JS error. There seems to be a closing curly bracket missing in the index.php. This problem does not exist if the English language is activated. I would therefore not use this translation until this problem is fixed.
Image

Kind regards,
Benno

Re: Can't add or change image products

Posted: 07 Apr 2024, 20:51
by lpatrick
What you can do is replace all the

Code: Select all

'
by a

Code: Select all

'
(single straight quote) in the language file.

I tested this in 5 beta.

I assume the there had been a bug in the past where a string wasn't correctly escaped and to solve that, the translation team replaced all ' by that code but this is now having a negative effect.

That said, I only tested that function, not the complete Phoca Cart so there could arise problems in other places. And as i said, I use Phoca Cart 5.

Good luck!
------------
Ce que tu peut essayer c'est de replacer tous les

Code: Select all

'
par un

Code: Select all

'
(quote droit simple) dans le fichier de traduction.

Je l'ai testé dans la version 5 beta.

J'assume qu'il y avait un bogue dans le passé ou un texte n'était pas correctement échappé y pour solutionner cela, ils avait replacés tous les quotes par se code mais cela semble donner cet effet négatif.

Ceci dis, je l'ai seulement testé dans cette partie là de Phoca Cart et dans la version 5. Il se peut qu'il y a d'autres problèmes dans d'autres parties de Phoca Cart.

Bonne chance (mes excuses, le français n'est pas ma langue maternelle; je viens du nord :wink: )