Home › Forums › Backend Issues (wp-admin) › Upload file button not working
Hi
we have a problem with upload file button in our custom field
it suddenly not working
we tried to deactivate all the plugins and nothing changes
i believe there is something wrong with the js
but we didn’t do anything in the site
in my console there is an error in input.min.js
is there other way to fix this?
we really need to fix this soon i hope you will help us
Hi @yumi03
Would you mind sharing a copy of the error reported in full in your next post?
Have you also been able to rule out conflicts with your current theme by checking whether the same is reproduced when running one of the stock WP themes?
This is what i saw in the console
JQMIGRATE: Migrate is installed, version 1.4.1
post-new.php?post_type=stock_meetings:212 Uncaught ReferenceError: acf is not defined
at post-new.php?post_type=stock_meetings:212
at post-new.php?post_type=stock_meetings:224
post-new.php?post_type=stock_meetings:2593 Uncaught ReferenceError: acf is not defined
at post-new.php?post_type=stock_meetings:2593
load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,thickbox,jquery-ui-position,wp-pointer,pos…:663 Uncaught ReferenceError: Backbone is not defined
at load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,thickbox,jquery-ui-position,wp-pointer,pos…:663
at load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,thickbox,jquery-ui-position,wp-pointer,pos…:663
load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,thickbox,jquery-ui-position,wp-pointer,pos…:705 Uncaught TypeError: QTags is not a constructor
at quicktags (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,thickbox,jquery-ui-position,wp-pointer,pos…:705)
at post-new.php?post_type=stock_meetings:2681
at post-new.php?post_type=stock_meetings:2688
input.min.js?ver=4.4.11:1 Uncaught TypeError: Cannot read property ‘post_id’ of null
at HTMLDocument.<anonymous> (input.min.js?ver=4.4.11:1)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
input.min.js?ver=4.4.11:1 Uncaught TypeError: Cannot read property ‘date_picker’ of null
at Object.init (input.min.js?ver=4.4.11:1)
at HTMLDivElement.<anonymous> (input.min.js?ver=4.4.11:1)
at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2)
at HTMLDocument.<anonymous> (input.min.js?ver=4.4.11:1)
at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
at Object.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
at Object.a.event.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:9)
at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
input.min.js?ver=4.4.11:1 Uncaught TypeError: Cannot read property ‘file’ of null
at Object.popup (input.min.js?ver=4.4.11:1)
at HTMLAnchorElement.<anonymous> (input.min.js?ver=4.4.11:1)
at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:3)
is this enough?
Hi,
Same problem here, can you make the reply public to allow us solve this problem?
Uncaught TypeError: Cannot read property ‘id’ of undefined —-> load-scripts.php
Thanks in advance!
Hello,
Problem solved, it was due to a conflict with All in one schemaorg rich snippets PLUGIN
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc
— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.