Can't add or change image products

Phoca Cart - complex e-commerce extension
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Can't add or change image products

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't add or change image products

Post 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
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: Can't add or change image products

Post by ScaleBXL »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't add or change image products

Post by Jan »

Did you install or change something which can somehow relate to the modals?
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: Can't add or change image products

Post by ScaleBXL »

nothing
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: Can't add or change image products

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Can't add or change image products

Post 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
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: Can't add or change image products

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Can't add or change image products

Post 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
lpatrick
Phoca Enthusiast
Phoca Enthusiast
Posts: 94
Joined: 13 Feb 2024, 17:00

Re: Can't add or change image products

Post 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: )
Post Reply