Jump to content

TinyMCE not loading only on Backoffice Product Pages


PPSA

Recommended Posts

Hi everyone

I am really stumped

My site got hacked and some ransomware was installed that demanded x amount of USD to be paid to get my site back

Anyways I decided to keep the DB but replace the files for a clean install of 1.6.1.23 and I did the usual manual copy of the img files, modules I use, pdf and mail templates and the config file.

So the store is running perfectly and there is no hassles at all at this moment except for the loading of the TinyMCE in the product pages where all I see is the HTML of the short and long descriptions

I have already checked in CMS and HomeSlider that TinyMCE works there and there is no problems with it loading.

What I have done so far is copy the entire store again except for the config, mail, pdf, install, modules into the root and replace any altered or corrupt files

I have also added Vekia's Extended tinyMCE editor code found below and that also did not resolve the issue

https://www.prestashop.com/forums/topic/318425-tutorial-tinymce-rich-text-editor-extended-version/

The only module I can imagine would be causing this issue is Attribute Wizard Pro but I have already replaced all its overrides with the original files

I have these errors in Google Chrome Console but I do not know how to diagnose what is the cause of the issue based on what it is giving errors about

Unfortunately this goes beyond my capabilities in fault finding

This is the errors it is throwing on the Google Chrome Console

jquery.autocomplete.js:758 Uncaught ReferenceError: jQuery is not defined
    at jquery.autocomplete.js:758
(anonymous) @ jquery.autocomplete.js:758
products.js:1028 Uncaught TypeError: $(...).autocomplete is not a function
    at Object.bindAvailableForOrder (products.js:1028)
    at onReady (products.js:1183)
    at ProductTabsManager.onLoad (products.js:87)
    at ProductTabsManager.init (products.js:53)
    at HTMLDocument.<anonymous> (products.js:1888)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at Function.ready (jquery-1.11.0.min.js:2)
    at HTMLDocument.K (jquery-1.11.0.min.js:2)
bindAvailableForOrder @ products.js:1028
onReady @ products.js:1183
ProductTabsManager.onLoad @ products.js:87
ProductTabsManager.init @ products.js:53
(anonymous) @ products.js:1888
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
ready @ jquery-1.11.0.min.js:2
K @ jquery-1.11.0.min.js:2
index.php?controller=AdminProducts&id_product=40&updateproduct&token=4d674e289f80bdc81a6e35d1b139da8d:1 [DOM] Found 4 elements with non-unique id #product_form_submit_btn: (More info: https://goo.gl/9p2vKq) <button id="product_form_submit_btn" type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"></button>
en-default-small_default.jpg:1 GET https://www.performanceproducts.co.za/img/p/en-default-small_default.jpg 404
Image (async)
buildFragment @ jquery-1.11.0.min.js:3
domManip @ jquery-1.11.0.min.js:3
append @ jquery-1.11.0.min.js:3
(anonymous) @ jquery-1.11.0.min.js:3
n.access @ jquery-1.11.0.min.js:3
html @ jquery-1.11.0.min.js:3
success @ products.js:127
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
x @ jquery-1.11.0.min.js:4
b @ jquery-1.11.0.min.js:4
XMLHttpRequest.send (async)
send @ jquery-1.11.0.min.js:4
ajax @ jquery-1.11.0.min.js:4
ProductTabsManager.display @ products.js:117
ProductTabsManager.displayBulk @ products.js:166
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ index.php?controller=AdminProducts&id_product=40&updateproduct&token=4d674e289f80bdc81a6e35d1b139da8d:1105
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
load (async)
add @ jquery-1.11.0.min.js:3
e.event.add @ jquery-migrate-1.2.1.min.js:2
(anonymous) @ jquery-1.11.0.min.js:3
each @ jquery-1.11.0.min.js:2
each @ jquery-1.11.0.min.js:2
on @ jquery-1.11.0.min.js:3
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
products.js:794 Uncaught TypeError: $(...).autocomplete is not a function
    at Object.initAccessoriesAutocomplete (products.js:794)
    at HTMLDivElement.onReady (products.js:913)
    at HTMLDivElement.dispatch (jquery-1.11.0.min.js:3)
    at HTMLDivElement.r.handle (jquery-1.11.0.min.js:3)
    at Object.trigger (jquery-1.11.0.min.js:3)
    at Object.e.event.trigger (jquery-migrate-1.2.1.min.js:2)
    at HTMLDivElement.<anonymous> (jquery-1.11.0.min.js:3)
    at Function.each (jquery-1.11.0.min.js:2)
    at e.fn.init.each (jquery-1.11.0.min.js:2)
    at e.fn.init.trigger (jquery-1.11.0.min.js:3)
initAccessoriesAutocomplete @ products.js:794
onReady @ products.js:913
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
trigger @ jquery-1.11.0.min.js:3
e.event.trigger @ jquery-migrate-1.2.1.min.js:2
(anonymous) @ jquery-1.11.0.min.js:3
each @ jquery-1.11.0.min.js:2
each @ jquery-1.11.0.min.js:2
trigger @ jquery-1.11.0.min.js:3
success @ products.js:137
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
x @ jquery-1.11.0.min.js:4
b @ jquery-1.11.0.min.js:4
XMLHttpRequest.send (async)
send @ jquery-1.11.0.min.js:4
ajax @ jquery-1.11.0.min.js:4
ProductTabsManager.display @ products.js:117
ProductTabsManager.displayBulk @ products.js:166
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ products.js:208
setTimeout (async)
ProductTabsManager.displayBulk @ products.js:205
(anonymous) @ index.php?controller=AdminProducts&id_product=40&updateproduct&token=4d674e289f80bdc81a6e35d1b139da8d:1105
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
load (async)
add @ jquery-1.11.0.min.js:3
e.event.add @ jquery-migrate-1.2.1.min.js:2
(anonymous) @ jquery-1.11.0.min.js:3
each @ jquery-1.11.0.min.js:2
each @ jquery-1.11.0.min.js:2
on @ jquery-1.11.0.min.js:3
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6

 

Screenshot_1.png

Edited by PPSA (see edit history)
Link to comment
Share on other sites

With a bit of investigating it was found that the module we had newly installed to address the hacking caused this issue with TinyMCE

If you have Active Design's Antivirus Pro v1.1.2  installed on PS 1.6.1.23 then its either not compatible or has a bug in it

Studying the load of the files the AntiVirus Pro calls a js function before loading jquery-1.11.0.min.js which causes the error and everything to break

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...