When I click on the Create Folder button in a File Section it does nothing. I tried this is Chrome and Firefox. Firebug gives me this error:

Error: Drupal.settings.oa_files is undefined $scope.init/$scope.addFolder@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/apps/oa_files/js/oa_files_treeview.js?njkcd9:381:13 .controller/$scope.submit@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/apps/oa_files/js/oa_files_treeview.js?njkcd9:550:11 gb.prototype.functionCall/<@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/oa_angular/js/1.3.7/angular.min.js?njkcd9:198:422 Cc[c]</<.compile/</</f@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/oa_angular/js/1.3.7/angular.min.js?njkcd9:227:394 Pe/this.$get</l.prototype.$eval@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/oa_angular/js/1.3.7/angular.min.js?njkcd9:126:80 Pe/this.$get</l.prototype.$apply@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/oa_angular/js/1.3.7/angular.min.js?njkcd9:126:305 Cc[c]</<.compile/</<@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/oa_angular/js/1.3.7/angular.min.js?njkcd9:227:444 f.event.dispatch@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/jquery_update/replace/jquery/1.7/jquery.min.js?v=1.7.1:3:4299 f.event.add/i@http://tag05056/_Sites/Intranet/profiles/openatrium/modules/contrib/jquery_update/replace/jquery/1.7/jquery.min.js?v=1.7.1:3:311
e/<()angular...?njkcd9 (line 103)
He/this.$get</<()angular...?njkcd9 (line 76)
Pe/this.$get</l.prototype.$apply()angular...?njkcd9 (line 126)
Cc[c]</<.compile/</<()angular...?njkcd9 (line 227)
f.event.dispatch()jquery....v=1.7.1 (line 3)
f.event.add/i()jquery....v=1.7.1 (line 3)
	

...&&c.apply(a,arguments)}}()}}]}function sa(b,a){if("__defineGetter__"===b||"__def...

angular...?njkcd9 (line 103)
CommentFileSizeAuthor
#4 oa_files-js-token-error_2423723-4.patch877 bytesmpotter
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FreeXenon’s picture

Issue summary: View changes
mpotter’s picture

Status: Active » Postponed (maintainer needs more info)

You are going to need to specify the exact steps you used to reproduce that on a fresh OA2 install. I cannot reproduce it at all, but there are so many possible configurations of the oa_files widget that we need to know exactly how you are using it.

mpotter’s picture

Looking at the code, the only way I can see getting this is if you didn't properly set the Space Menu for the widget, or if your space doesn't have the current section within the space menu. Edit your section page and make sure the Use Menu Link is enabled and it's parent is the Group Menu.

mpotter’s picture

Also, you can try this patch to see if it helps. Won't fix a problem with your Space menu but should at least prevent any JS error.

Argus’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closed due to inactivity.