You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin installer throws ReferenceError: response is not defined
#2154
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi @billz,
I found a JavaScript issue in the RaspAP plugin installer on the current codebase.
When installing a plugin from the WebUI, the browser console reports:
The issue is in:
The current callback contains:
Since this file is loaded as an ES module, strict mode applies and assigning to an undeclared variable throws a
ReferenceError.There is also a second issue in the same branch:
jsonDatais not defined in this callback; it only exists inside the.fail()callback.I tested the following fix successfully on a RaspAP Insiders installation:
After applying these two changes, plugin installation works correctly from the WebUI.
One additional observation during testing:
app.jsis loaded with a cache-busting query parameter, but its ES module import:does not inherit that query parameter. My browser initially continued loading the cached old
plugins.js; temporarily changing the import to:"./ajax/plugins.js?v=20260919-1"forced the corrected module to load.
The primary functional fix is the two-line change in
plugins.js.raspap-plugins-js-fix.patch
Best Regards @Fredd-30
A bientôt ;)
All reactions