Resolving Javascript errors likely related to Gantry framework

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.