Uncaught Typeerror Cannot Read Property 'query' of Undefined Chrome Extension
Hi @steviec
Great to hear that you solved it and thank y'all for posting your solution hither for others to notice 🙂
Yes what StevieC said. Users need to take a minimum of an Writer role in order to upload media files otherwise you lot get that non-descriptive error,
Might exist interesting to know that it's to upload files without permissions if yous exercise it through acf_form() in the front end end. However then it will always use the regular upload input type rather than WordPress native.
Just some info for people that might find this topic.
I think information technology actually defaults to the basic uploader if you don't accept permissions. However, the gallery field is the control that does not work.
@tabboy
Yeah that's what I meant by:
However and then information technology will always utilise the regular upload input type rather than WordPress native.
The gallery field needs WordPress core functionality to work then yes that'd probably be a different case 🙂
This fault occurs in Chrome Browser when y'all read a property or call a method on an undefined object . Uncaught TypeError: Cannot read holding of undefined error is probably easiest to understand from the perspective of undefined, since undefined is not considered an object type at all (but its own undefined type instead), and properties tin can only belong to objects within JavaScript. There are a few variations of this fault depending on the belongings you are trying to access. Sometimes instead of undefined it will say null.
Hello all,
I am likewise getting the aforementioned error every bit @tabboy but on line 10260 in acf-input.js. I take an Epitome field inside of a repeater and when I click on 'Add Image', I receive an "Uncaught TypeError: Cannot read 'query' of undefined" for the following:
var Query = wp.media.query( options.library );
I am using WordPress 5.ii.four and ACF Pro Version 5.8.half-dozen.
I would also similar to mention that this is happening on a Charitable campaigns post in the backend. Hither is a reference to that plugin: https://world wide web.wpcharitable.com/extensions/charitable-ambassadors/
To test whether it has something to do with the repeater, I created a new field group with only an Image field to prove on my campaign postal service only that as well didn't piece of work so the repeater is non at fault. For some reason, the media modal is not opening upwardly as it should.
I have tried this on both Chrome and Firefox with no luck.
Any help is much appreciated! Give thanks y'all!
Hi,
I have read all the mail. Accept the same problem, merely inside the editor of pages (where my admin upload posts.. not public)
The error raises upon pressing the "upload image" button. No dialog appears.
Console error is:
acf-input.min.js?ver=5.8.7:3 Uncaught TypeError: Cannot read belongings 'query' of undefined at n.addFrameStates (acf-input.min.js?ver=five.viii.7:three) at n.initialize (acf-input.min.js?ver=5.8.seven:iii) at n.e (acf-input.min.js?ver=5.8.seven:1) at due north.acf.Model (acf-input.min.js?ver=5.8.vii:1) at due north [as constructor] (acf-input.min.js?ver=five.eight.7:1) at new n (acf-input.min.js?ver=v.8.7:one) at Object.acf.newMediaPopup (acf-input.min.js?ver=5.8.7:3) at n.selectAttachment (acf-input.min.js?ver=five.eight.seven:2) at n.onClickAdd (acf-input.min.js?ver=5.viii.7:ii) at northward.<bearding> (acf-input.min.js?ver=5.8.vii:i)
Wordpress ver 5.3.ane
All plugins updated
whatsoever ideas? I'm driving mad.
Thanks!
Hi,
My mistake was happening on a custom mail service type created past a plugin called Charitable that allows for ACF fields on the page. I reached out to them near the JavaScript errors since they weren't occurring on whatsoever other of my custom mail types. They responded saying that information technology's an event related to a bug that happens with their Recurring Donations extension when it is not installed alongside their plugin.
So the solution for me was to install the extension and luckily that fixed everything.
Are you editing WordPress pages or pages from a plugin? If it is from a plugin, I would try contacting them.
Best of luck!
Hi all.
I know this is an old thread now, just what did the trick for me (on WP 5.5.3 and ACF PRO 5.9.3) is only adding this to the template I'grand working on:
wp_enqueue_media();
I did this and now I have a course for uploading an epitome just and so when I try to upload an paradigm I go this error
sorry you are non allowed to upload files.
Hello, I receive exactly the same error: I am using the gallery field in a front form. When clicking on "Add together to Gallery" nothing happens, the Chrome panel throws the post-obit error message (see beneath). Adding the line "wp_enqueue_media();" in the folio template before the ACF form leads to the exact error (displayed in the front end media upload class) mentioned past Karush, i.e. "Lamentable you are non allowed to upload files".
What else can I exercise? I am using the latest ACF Pro 5.11.4 version.
Thanks!
Ralph
"acf-input.min.js?ver=5.xi.4:1 Uncaught TypeError: Cannot read properties of undefined (reading 'query')
at north.addFrameStates (acf-input.min.js?ver=5.11.four:1)
at n.initialize (acf-input.min.js?ver=5.11.iv:1)
at n.e (acf.min.js?ver=5.eleven.iv:ane)
at n.acf.Model (acf.min.js?ver=5.11.iv:1)
at n [as constructor] (acf.min.js?ver=5.11.four:1)
at new due north (acf.min.js?ver=5.11.4:ane)
at Object.acf.newMediaPopup (acf-input.min.js?ver=5.11.four:i)
at n.onClickAdd (acf-pro-input.min.js?ver=5.11.iv:one)
at n.<anonymous> (acf.min.js?ver=5.eleven.4:1)
at HTMLAnchorElement.i (jquery.min.js?ver=3.6.0:2)"
Source: https://support.advancedcustomfields.com/forums/topic/uncaught-typeerror-cannot-read-property-query-of-undefined/page/2/
0 Response to "Uncaught Typeerror Cannot Read Property 'query' of Undefined Chrome Extension"
Post a Comment