Can you share the full code on masterPage.js? If it was working, and you changed nothing at all, and it is no longer working it’s possible that you have added some other code, maybe an import, that is causing an issue with other code which runs after it. It could also explain the error with $w(elementId).hide(), since the site code JS file always runs before the page code.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Urgent. Keep Having to force exit editor/crashing editor with new repeater element and code | 32 | 467 | June 21, 2019 | |
| $w(...).onReady is not a function in Live only, not preview. | 8 | 350 | September 20, 2019 | |
| Code not reliable - any way to 'foolproof'? | 8 | 144 | August 2, 2018 | |
| WixCode crashes | 7 | 288 | July 6, 2020 | |
| Page Ready | 5 | 704 | February 9, 2019 |