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
- After updating sql queries for sc_shop_product_description,
- 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.
(Left: local machine, Right: server machine)
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. ...