Organizr: Jquery error when attempting to change Authentication Type.

Created on 10 Apr 2020  Â·  11Comments  Â·  Source: causefx/Organizr

Organizr Version: V 2.0.408
Branch: Develop
WebServer: Nginx/Apache
Operating System: Linux

Organizr_jquery_error
Organizr_jquery_error2


Problem Description:

I am unable to change the Authentication setup for my Organizr install.

When attempting to make changes, the Save button 'bounces' as it normally does, but nothing happens when clicking it.
Checking the Console output, there is this error related to jquery in the background:

Uncaught TypeError: Cannot use 'in' operator to search for 'length' in allow-presentation

This is the jquery function that throws the error:

    function s(a) {
        var b = !!a && "length"in a && a.length
          , c = n.type(a);
        return "function" === c || n.isWindow(a) ? !1 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
    }

Reproduction Steps:


I am attempting to enabled Oraganize DB + Backend authentication with Plex.
Make changes in this section:
Settings > System Settings > Main > Authentication
Click "Save", and nothing happens.


Errors on screen? If so paste here:

jquery-2.2.4.min.js:formatted:213 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in allow-presentation
    at s (jquery-2.2.4.min.js:formatted:213)
    at Function.each (jquery-2.2.4.min.js:formatted:146)
    at String.<anonymous> (functions.js?v=2.0.408:3042)
    at Function.each (jquery-2.2.4.min.js:formatted:148)
    at getSubmitSettingsFormValueObject (functions.js?v=2.0.408:3039)
    at Array.<anonymous> (functions.js?v=2.0.408:3074)
    at Function.each (jquery-2.2.4.min.js:formatted:152)
    at submitSettingsForm (functions.js?v=2.0.408:3071)
    at HTMLButtonElement.onclick (VM164 :1)

Most helpful comment

Good catch!!! I redid the settings save function and it broke a few things - I thought I caught them all - guess not. I will fix.

All 11 comments

Good catch!!! I redid the settings save function and it broke a few things - I thought I caught them all - guess not. I will fix.

Once again, good fucking catch!

fixed in dev.

That was the fastest response and fix I've ever seen! haha
When will that be released in dev update?

how do you have it installed? native or docker?

Native.
Well, a qpkg on QNAP NAS. But I've updated it through the app since it was installed.

goto settings where branch is and click force install branch. then clear your cache.

Sent from my iPhone

On Apr 10, 2020, at 11:14 AM, crunchysoft notifications@github.com wrote:


Native.
Well, a qpkg on QNAP NAS. But I've updated it through the app since it was installed.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

Did that. Will the version change?
I still get the same jquery error as before, even in incognito mode.
Doesn't look like the Force Install Branch update worked for me.

no version change atm...

open up /js/functions.php look at line # 3074

can you paste that here? Also, is your site setup with cloudflare or something similar?

Scratch that. I killed my browser, and restarted it.
Now it works perfectly!

nice!

Thanks again!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CBers picture CBers  Â·  4Comments

jaydee99 picture jaydee99  Â·  6Comments

that1guy picture that1guy  Â·  5Comments

mishac picture mishac  Â·  4Comments

Ryonez picture Ryonez  Â·  6Comments