Support Forum

Uncaught TypeError

BS Brad Siegfried
Brad Siegfried
Member

I found a couple of Uncaught TypeError messages in the Chrome console log as I was troubleshooting an apparent conflict between Simple:Press and Simple Share Buttons Plus (https://simplesharebuttons.com/plus/).  The messages may or may not be related to that conflict.  Here are the messages:

Uncaught TypeError: undefined is not a function
sp-plugin-scripts-desktop-header.js?ver=5:135 (anonymous function)

Uncaught TypeError: Cannot set property ‘thanked’ of undefined
mysite.mydomain.us/:1038

The “undefined is not a function” message is displayed when viewing the forum root (mysite.mydomain.us/forum/) or anything under it. The “Cannot set property ‘thanked’ of undefined” message is displayed when viewing any individual forum topic.

Also, when viewing any individual forum or forum topic, the Simple Share Buttons Plus widget in the sidebar appears empty.  The widget correctly displays social sharing buttons at the forum root and at all other locations outside the forum.

I tried disabling the Simple Share Buttons Plus plugin but the console messages above still occur.

Can you suggest how I can best proceed in troubleshooting this apparent conflict between Simple:Press and Simple Share Buttons Plus?

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

what does that plugin do?

start by clearing the combined js cache on forum – toolbox – housekeeping..  you can also try disabling it on forum – options – global settings…

MP Mr Papa
Mr Papa
Member

as to being blank, my guess its not looking at the wp page properly…  it probably thinks its a static page and not dynamic…  but only a guess…  perhaps its not looking at the canonical url.. but not sure since I dont know what it does…

MP Mr Papa
Mr Papa
Member

one more… and if it does work, it will likely report the same url for all forum pages…

which is why we have our own sharing plugin…  it properly gets the dynamic url…

BS Brad Siegfried
Brad Siegfried
Member

Mr Papa said
what does that plugin do?

start by clearing the combined js cache on forum – toolbox – housekeeping..  you can also try disabling it on forum – options – global settings…

Thank you!  You nailed it on the first shot.

I was able to resolve the issue by unchecking the options – global settings – enable combining and caching of forum script (JS) files checkbox.

YS Yellow Swordfish
Yellow Swordfish
Member

Shame to lose the cache (although minimal impact) bit good to hear it is resolved.