Fixed.
Thanks to some feedback on reddit (see this thread and this one), I learned that the issue was that the mootools.js script was being loaded far too late.
I solved it (rather inelegantly, I’m sure) by adding this line to themes/rt_gantry_wp/index.php, around line 30 or so (before the if
blocks):
$gantry->addScript('/wp-content/plugins/gantry/js/mootools.js');
It’s no longer throwing either of those errors. The menu still doesn’t work, but that’s, apparently, a different problem.
The code’s a rat’s nest, but this solved the issue, and will hopefully point anyone who has this problem in the future toward a more elegant solution.
Related Posts:
- Implementing Isomorphic JavaScript (React JS) in WordPress?
- WordPress 5.5 – ReferenceError: commonL10n is not defined error
- WordPress Errors? Update Failed! data.min.js
- TypeError: window.tinyMCE.execInstanceCommand is not a function
- Widgets and Post/Page edit/new blank, console errors only, no server errors
- Uncaught TypeError: jQuery(…).slider is not a function
- find out reason of “Updating failed” in Post-editor
- ‘ajaxurl’ is undefined — wp-includes/js/wp-lists.js
- Deferring Script wp-i18n causes a console error ‘wp is not defined’ – Gravityforms
- Uncaught TypeError: Cannot read property ‘add’ of undefined bp-plupload.min.js
- Error handling for wpdb error – displaying an error message to the user
- JavaScript errors
- Error – Uncaught TypeError: e.dispatchEvent is not a function
- How to add a class to a given element?
- How to make a word underline in Markdown
- Creating multiline strings in JavaScript
- Babel 6 regeneratorRuntime is not defined
- What is JSONP, and why was it created?
- React – uncaught TypeError: Cannot read property ‘setState’ of undefined
- How to read an external local JSON file in JavaScript?
- SyntaxError: Unexpected token o in JSON at position 1
- Remove duplicate values from JS array
- Add swipe left/right to web page, but use default swipe up/down
- Check if checkbox is checked with jQuery
- What does “res.render” do, and what does the html file look like?
- How to Create simple drag and Drop in angularjs
- stop all instances of node.js server
- Working with $scope.$emit and $scope.$on
- Using Node.js require vs. ES6 import/export
- How can jQuery deferred be used?
- Uncaught TypeError : cannot read property ‘replace’ of undefined In Grid
- Disable/enable an input with jQuery?
- How do I change an HTML selected option using JavaScript?
- How to refresh a Page using react-route Link
- ChangeDate – Date Picker Bootstrap
- Is there a sleep function in JavaScript?
- Convert Array to Object
- How to set the id attribute of a HTML element dynamically with angularjs (1.x)?
- Using $setValidity inside a Controller
- Combination of async function + await + setTimeout
- How to go from one page to another page using javascript?
- How to update array value javascript?
- Javascript setInterval not working
- Javascript Regular Expression Remove Spaces
- image.onload event and browser cache
- Simulate Keypress With jQuery
- react router v^4.0.0 Uncaught TypeError: Cannot read property ‘location’ of undefined
- What’s the fastest way to square a number in JavaScript?
- JavaScript: Create and save file
- Adding options to a
- How to use scientific notation in js?
- String.Format not work in TypeScript
- Why am i receiving this jsfiddle error, document.write can be a form of eval
- jquery beforeunload when closing (not leaving) the page?
- Array Mapping in AngularJs
- How do I pass the this context to a function?
- HTML5 rich-text inside textarea
- Angular 4 setTimeout() with variable delay and wait
- JSON.parse unexpected token s
- What do these three dots in React do?
- Change an image with onclick()
- javascript return true or return false when and how to use it?
- Uncaught SyntaxError: Unexpected token with JSON.parse
- Why is this simple AngularJS ng-show not working?
- How to open a Bootstrap modal window using jQuery?
- window.location.replace() not working to redirect browser
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- How to destroy a JavaScript object?
- How can I convert an image into Base64 string using JavaScript?
- Is there a way to create interfaces in ES6 / Node 4?
- wp_enqueue_script : how to change loading order of scripts?
- How to load translation in JavaScript?
- Is there a core Sortable component in Gutenberg?
- wp_register_script multiple identifiers?
- require.js to load javascript
- Is there an equivalent of the PHP function sanitize_key in Gutenberg?
- Add custom form to theme
- Setting HTML properties in a Gutenberg plugin using WordPress settings
- Is it mandatory to enqueue any kind of Javsacript?
- customize_preview_init: listening for any changes from Customizer preview area
- Adding a Javascript slideshow to the home page
- Screen Resolution Detect
- How to add customizer control via javascript ( wp.customizer.control.add )
- Is it possible to pass js variable to template file
- Automatically Add Defer or ASYNC to all JS files (no matter where they are located)
- How to generate the COOKIEHASH from JavaScript
- Gutenberg select excerpt, use generated excerpt or use more block excerpt
- Unable To Call Javascript With Enqueue
- Getting a variable inside foreach from PHP to JS after localization
- How to integrate a JS fiddle?
- Problem after upgrade to 3.6.1
- Hovercards and other hover over image functions don’t work anymore!
- Load JavaScript on specific page with @wordpress compiler
- java console error about touch navigation
- When adding google tag script in website, functionality not working
- How to improve WP-Rest atrocious response time?
- How should I identify the inline javascript that is the dependent of a wp_enqueue_script?
- How to verify that a field has a value before adding a term to a taxonomy
- WP REST API – “rest_user_cannot_view” ONLY on specific users
- How to add a new attribute to core wp block editor without npm?