marking this as major because not everyone has access to drush and not every module using tabledrag.js (including drupal core modules) degrade gracefully.

[running drupal HEAD 3ac0d1] chrome dev tools, resources, indicating line 17 misc/tabledrag.js returning:

'Uncaught TypeError: Object [object Object] has no method "once"'

not such a big deal when it affects forms that degrade gracefully, but for example, when running update.php in chrome, update does not run.

if Drupal.behaviors.tabledrag is setting a drupal variable only once, what happens in case that variable doesn't exist when called?

tabledrag.js, line 18:
// Create the new tableDrag instance. Save in the Drupal variable
// to allow other scripts access to the object.

Comments

jaypark’s picture

notes:

0. recently merged sites with another dev; used his db as the initial db and merged his git branches corresponding to his db.
1. .gitignore includes sites/default; don't know js or how drupal works with it but if there's a dependency on a js file inside sites/default/files/ that could be the issue. was told if we have a dependency on anything inside files/ we're developing wrong.
2. databases values are feature exported where available. if there are system settings (such as retrieved with variable_get) on which tabledrag.js depends, this could also be the issue source.

there has got to be a better way to keep dev site dbs synchronized between dev sites, staging and production...

tim.plunkett’s picture

Version: 7.x-dev » 8.x-dev
Priority: Major » Normal
Issue tags: +Needs backport to D7, +Needs steps to reproduce

Can you confirm that this is also broken in D8?
Can you give specific steps to reproduce on a clean install?

jasdev.moun’s picture

Hey Jaypark, can you state the problem little clearly 'cause I have wasted half an hour just to decode what you're saying and still don't have any clue.

NegativeK’s picture

Status: Active » Closed (cannot reproduce)

I'm unable to replicate JS errors regarding misc/tabledrag.js with the information provided.

Please reopen with steps to reproduce if the issue persists.

NegativeK’s picture

Issue summary: View changes

reworded for clarity