s-cart / s-cart

Free Laravel e-commerce for business: shopping cart, cms content, and more...

Home Page:https://s-cart.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ckeditor is not shown and javascript error occurs

humble92 opened this issue · comments

Describe the bug
Uncaught Syntax javascript error in product edit page.
Ckeditor is not shown and javascript error occurs instead.

To Reproduce

  1. After updating sql queries for sc_shop_product_description,
  2. go to product edit page

(*) The same DB & source was working good with new install following php artisan sc:recover in some machine (my local computer), but the same procedure was not working in a server machine. Is this environmental issue? It is still very weird.

Screenshots
image

(Left: local machine, Right: server machine)

image

image

Desktop (please complete the following information):

  • OS: Win 10
  • Browser : chrome
  • Version :
    commit 087099d (HEAD -> master, tag: v6.0.5, origin/master, origin/HEAD)
    Merge: 48d4933 c7dd3fc
    Date: Fri Apr 9 23:07:49 2021 +0700

Hope this info is helpful.

It's hard to say exactly what the problem is. Do you check the description content, have escape data, like single quotes ' ?

Correction. I was confused last night. Local is not working as well.

So, after new installation, CKEdit is working.

The backfile can not be uploaded now because is still broken after bulk update. I am still wondering why it happened.

FYI: This are a few rows of this table:

INSERT INTO `sc_shop_product_description` (`product_id`, `lang`, `name`, `keyword`, `description`, `content`) VALUES
(1, 'en', 'AUCHENTOSHAN - AMERICAN OAK', '', '', '<p>Volume: 750 mL</p>'),
(2, 'en', 'ELYSIAN - LOSER PALE ALE', '', '', '<p>Volume: 650 mL</p>'),
(3, 'en', 'Cass', '', '', '<p>Volume: 330 mL<br>Alcohol: 4.5 %</p>'),
(4, 'en', 'VINHO VERDE - VINCENTE FARIA  ANIMUS', '', '', '<p>Volume: 750 mL<br>Alcohol: 10.5 %</p>'),
(5, 'en', 'jagermeister', '', '', '<p>Volume: 1.14 L<br>Alcohol: 35 %</p>'),
(6, 'en', 'jagermeister', '', '', '<p>Volume: 100 mL</p>'),
(7, 'en', 'ORGAIN ORGANIC PROTEIN 12 x330ml', '', '', '<p>Volume: 1 mL</p>'),
(8, 'en', '1707 reserve red - stellenbosch hills stellenbosch 2008', '', '', '<p>Volume: 750 mL</p>'),
(9, 'en', 'BODACIOUS - SMOOTH RED CAN', '', '', '<p>Volume: 250 mL<br>Alcohol: 11 %</p>'),
(10, 'en', 'Absolut', '', '', '<p>Volume: 750 mL<br>Alcohol: 40 %</p>'),
.... etc. ...

When adding an item, CKEditor is working.

image

But, after being added, it is not working:

image

image

The source is brand new, so it is very weird. How can the operation depend on DB contents? I am not sure my updating query is actual reason.