Post by rtho782 » Wed Feb 23, 2022 10:23 pm

I made the mistake of trying to install a theme from Opencart.com:

https://www.opencart.com/index.php?rout ... e=0&page=3

I hated it, and tried to switch back. I think I've mostly managed to remove all the junk I had to upload for it.

However, when I try to edit a product, the description box is no longer a rich editor with the ability to change font size, colour, etc and now just a text box.

Previous products have HTML tags in the description, but I can no longer configure new products with a meaningful description.

I've tried re-uploading the /admin/* files from the base opencart install files, but this hasn't fixed it.

Any ideas what I can do?

Newbie

Posts

Joined
Tue Oct 26, 2021 11:29 pm

Post by cyclops12 » Sat Feb 26, 2022 2:00 am

If you have reinstalled all affected files then make sure you clear all your caches and you should be good
Just make sure you look at the files in the download folder of the theme and make sure you remove everything it has installed

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by straightlight » Sat Feb 26, 2022 2:19 am

OC version. Restore backups and database.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by rtho782 » Sat Feb 26, 2022 5:39 am

Still can't fix it.

I get the following error in console:

https://imgur.com/3vNnTCQ.png

Annoyingly, even using notepad++ to search in all the install files, I can't find this reference to that 404'd file.

Looking through a minified jquery is almost impossible as well :(

Newbie

Posts

Joined
Tue Oct 26, 2021 11:29 pm

Post by rtho782 » Sat Feb 26, 2022 6:33 am

Fixed.

If anyone has a similar issue, the hint was that it was trying to load summernote with a load of locales in the filename.

I edited /admin/view/template/catalogue/product_form.twig, and changed the line:

Code: Select all

<textarea name="product_description[{{ language.language_id }}][description]" placeholder="{{ entry_description }}" id="input-description{{ language.language_id }}" data-toggle="summernote" data-lang="{{ language.locale }}" class="form-control">{{
to

Code: Select all

<textarea name="product_description[{{ language.language_id }}][description]" placeholder="{{ entry_description }}" id="input-description{{ language.language_id }}" data-toggle="summernote" data-lang="" class="form-control">{{
It now works.

Newbie

Posts

Joined
Tue Oct 26, 2021 11:29 pm

Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by rtho782 » Sat Feb 26, 2022 9:33 pm

A little while later, after editing a product, no products will now load (error 500) and this is in the apache log:

Code: Select all

[Sat Feb 26 13:27:42.678426 2022] [php7:error] [pid 584612] [client 192.168.2.166:59132] PHP Fatal error:  Uncaught Error: Object of class Language could not be converted to string in /ocstore/storage/cache/template/62/6215680c9d3d428dc80ad19c85d42f2e98151d1c4cf3e3690f0a1d63b86aeea2.php:504\nStack trace:\n#0 /ocstore/storage/vendor/twig/twig/src/Template.php(405): __TwigTemplate_ec51a774bb93bcf20d78b644438a858b50d87b9870eeeec9c0c3898e6fefca05->doDisplay()\n#1 /ocstore/storage/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling()\n#2 /ocstore/storage/vendor/twig/twig/src/Template.php(390): Twig\\Template->display()\n#3 /ocstore/storage/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\\Template->render()\n#4 /ocstore/storage/vendor/twig/twig/src/Environment.php(318): Twig\\TemplateWrapper->render()\n#5 /ocstore/storage/modification/system/library/template/twig.php(39): Twig\\Environment->render()\n#6 /var/www/html/system/library/template.php(51): Template\\Twig->render()\n#7 /ocstore/storage/modification/system/engine/loader.php(125): Template->render()\n#8 /ocstore/storage/modification/catalog/contro in /ocstore/storage/cache/template/62/6215680c9d3d428dc80ad19c85d42f2e98151d1c4cf3e3690f0a1d63b86aeea2.php on line 504, referer: https://www.printyplease.uk/

Newbie

Posts

Joined
Tue Oct 26, 2021 11:29 pm

Post by Majnoon » Sat Feb 26, 2022 9:39 pm

rtho782 wrote:
Sat Feb 26, 2022 9:33 pm
A little while later, after editing a product, no products will now load (error 500) and this is in the apache log:

Code: Select all

[Sat Feb 26 13:27:42.678426 2022] [php7:error] [pid 584612] [client 192.168.2.166:59132] PHP Fatal error:  Uncaught Error: Object of class Language could not be converted to string in /ocstore/storage/cache/template/62/6215680c9d3d428dc80ad19c85d42f2e98151d1c4cf3e3690f0a1d63b86aeea2.php:504\nStack trace:\n#0 /ocstore/storage/vendor/twig/twig/src/Template.php(405): __TwigTemplate_ec51a774bb93bcf20d78b644438a858b50d87b9870eeeec9c0c3898e6fefca05->doDisplay()\n#1 /ocstore/storage/vendor/twig/twig/src/Template.php(378): Twig\\Template->displayWithErrorHandling()\n#2 /ocstore/storage/vendor/twig/twig/src/Template.php(390): Twig\\Template->display()\n#3 /ocstore/storage/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\\Template->render()\n#4 /ocstore/storage/vendor/twig/twig/src/Environment.php(318): Twig\\TemplateWrapper->render()\n#5 /ocstore/storage/modification/system/library/template/twig.php(39): Twig\\Environment->render()\n#6 /var/www/html/system/library/template.php(51): Template\\Twig->render()\n#7 /ocstore/storage/modification/system/engine/loader.php(125): Template->render()\n#8 /ocstore/storage/modification/catalog/contro in /ocstore/storage/cache/template/62/6215680c9d3d428dc80ad19c85d42f2e98151d1c4cf3e3690f0a1d63b86aeea2.php on line 504, referer: https://www.printyplease.uk/
Check this one:
viewtopic.php?t=217654

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm
Who is online

Users browsing this forum: No registered users and 13 guests