[wp-trac] [WordPress Trac] #48273: ReferenceError: jQuery is not defined

WordPress Trac noreply at wordpress.org
Fri Oct 18 11:37:23 UTC 2019


#48273: ReferenceError: jQuery is not defined
-------------------------------+------------------------------
 Reporter:  bhartvigsen        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Script Loader      |     Version:
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by happy-pillz):

 Hi, I think I have the same issue.

 Whenever I try to access 'all page' or 'all posts' menus, I get a broken
 layout. here are screenshots:
 https://wetransfer.com/downloads/8a75b728e251f77600acefe6a411a44f20191017211156/331ebb

 When I check the console, I get tens of 'jQuery is not defined' errors.

 When I try to edit a post I get the error '' The editor has encountered an
 unexpected error''

 I deactivated all plugins through health-check plugin, used nineteen
 theme, reinstalled the last wordpress three times, and still got the
 error.

 when I check site/wp-includes/js/jquery/jquery.js, I have a lot of code in
 the page, starting with:
 /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license |
 WordPress 2019-05-16 */
 !function(a,b){"object"==typeof module&&"object"==typeof
 module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw
 new Error("jQuery requires a window with a document");return
 b(a)}:b(a)}("undefined"!=typeof window?window:this .......


 FI, I manage another wordpress site that does not have this issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48273#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list