In the thread titled ‘Latest Update - Broken House Ads’, Vaping_Community reports critical site issues after upgrading to version 3.3.0.beta4-dev, including broken login, blank topics, and non-functional menus, linked to house ads. Console errors reveal a JavaScript crash in house-ad.js due to undefined category_idsVaping_Community. Temporarily removing house ads restored functionality Vaping_Community. techAPJ submitted a fix via PR #214 in the discourse-adplugin repo but couldn’t reproduce the bug locally, requesting repro steps. Vaping_Community provided ad HTML and CSS examples, noting 6 ads were active between posts. techAPJ confirmed the fix is merged and asked for verification after updating the plugin. The issue is tagged as a bug related to advertising and is now marked as fixed.
Since I upgraded our site, I have had a list of problems
Login button on mobile doesn’t work
Topics are blank
Users experiencing problems all over including not being able to read messages
Main menu not working (no simple access to admin)
Errors
Job exception: undefined method `id’ for nil:NilClass 4:52 am
Failed to warm up pretty text: JavaScript was terminated (either by timeout or explicitly) /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/mini_racer-0.9.0/lib/mini_racer.rb:242:in `call_unsafe’ /var 4:55 am
Job exception: undefined method `id’ for nil 5:11 am
house-ad.js:104 Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'category_ids')
at house-ad.js:104:1
at Array.filter (<anonymous>)
at house-ad.js:102:1
at Array.forEach (<anonymous>)
at e.didInsertElement (house-ad.js:96:1)
at e.r [as didInsertElement] (index.js:361:1)
at e._trigger (core_view.js:55:1)
at e.r (index.js:361:1)
at e._trigger (ember-events.js:145:1)
at e.r (index.js:361:1)
at ze.didCreate (index.js:2102:1)
at jt.commit (runtime.js:3965:1)
at Mt.commit (runtime.js:4062:1)
at Nt (runtime.js:4082:1)
at gr._renderRoots (index.js:4916:1)
at gr._renderRootsTransaction (index.js:4960:1)
at gr._renderRoot (index.js:4905:1)
at gr._appendDefinition (index.js:4830:1)
at gr.appendOutletView (index.js:4820:1)
at invoke (backburner.js.js:282:1)
at h.flush (backburner.js.js:197:1)
at p.flush (backburner.js.js:358:1)
at B._end (backburner.js.js:798:1)
at B._boundAutorunEnd (backburner.js.js:523:1)
Thanks for the details, but still unable to repro this issue on my dev setup. Anyways, can you try updating the plugin source code and see if everything looks good to you? The PR merged above should fix the issues you were seeing.