Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.45
Component:
Files App
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2015 at 17:00 UTC
Updated:
3 Nov 2015 at 17:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rschaeffler commentedComment #2
rschaeffler commentedComment #3
mpotter commentedGo to the Admin/Find Content page and edit one of the files you uploaded and check to see if the Space and Section fields got filled in correctly.
Also, are you using the menu-based or taxonomy-based folder structure? If using menu-based when you edit the file page, check the menu settings to be sure it has a parent item. Also edit the Section and be sure the section page is in the Group Menu. If using taxonomy-based, check the file page to be sure the taxonomy term got set to the parent term.
Also, be sure you are not using the "Back" button in your browser to look at the page. Try refreshing the page. The AngularJS App that displays the folders won't refresh when you use the Back button.
If you still have trouble, you'll need to post an exact step-by-step procedure for reproducing it. And also mention if this is a clean install of 2.32 or if you upgraded an older version.
Comment #4
rschaeffler commented"Also edit the Section and be sure the section page is in the Group Menu."
That was it, the menu was set to the parent space not group.
Thank you very much for your help.
Comment #5
mpotter commentedCurious if this was in a new install of 2.32 or was the Section created in a previous version? New sections *should* be added correctly to the automatically in the latest version.
Comment #6
rschaeffler commentedYes it was a clean install of 2.32, but on the server there are several older versions.
Comment #7
pgancarski commentedI have the same issue.
I managed to figure out that in my case it is a problem with a space blueprint.
- I created a blueprint of space with file section inside
- I created a new space using blueprint
- File section in the new space has Menu options/Provide a menu link = OFF
Comment #8
klmarshall commentedI am experiencing very similar behavior as rschaeffler's initial post.
Despite this, the site is recognizing that the files were added and they appear in "Recent Documents".
Also, the folders and files show up without refreshing as the ajax calls appear to be working, just not after the page is reloaded or returned to after navigating away.
The files are properly listed in Find Content as being in the section and space to which they were added.
However, the section itself is reporting "No files to show."
I'm not using a blueprint in this space like pgancarski (was going to make the space the blueprint once I had thoroughly tested its features).
Any thoughts on what else could cause this behavior?
Kevin M.
Comment #9
mpotter commentedSee #4. Edit your SECTION page and make sure the Menu Link is set to . There is a bug that when a section is created via the Site Map, the parent is set to the Main Menu instead of the Group Menu.
Comment #10
rschaeffler commentedThe added folder and file functionality is very helpful, but I would like to know how to prevent the OG menu from automatically adding the sub-folders items as menu items under the main menu. Now I have to go to Amin>structure>menu>og menu and manually edit the newly create folders by un-checking "Enabled". This is easy for me do, but if I were to hand the site over to an editor they would find the adding folders and files function difficult to manage (along with making sure the menu item for the folder is set to group).
If there are any plans to smooth out the add folders/files module please keep me up to date, thank you.
Comment #11
mpotter commentedSo you know that you can use a taxonomy-based Folder scheme instead of the default OG Menu-based scheme, right? If you look at the widget options you can change it from Menu mode into Taxonomy mode. Then you have folders based on taxonomy terms and it won't mess with your OG Menu.
I'm not sure how else to make adding files/folders easier since there are big buttons on the page for "Add Files" and "Add Folder". And the gear menu for each folder has "Add Folder" for creating subfolders. Your users shouldn't need to mess with the menu settings at all (except for the bug mentioned in #9).
If you just set the Section itself to be "Disabled" in the menu, then none of the subfolders will show up. So I guess I'm still a bit confused on how you are using this menu and how you'd expect to manage these things.
(And just to re-interate: The fact the items are added under the Main Menu instead of the OG Menu is a bug and will be fixed in the next release)
Comment #12
rschaeffler commentedThanks Mike I will look into using a taxonomy-based Folder scheme if that will save the step of having to set the OG menus to group each time.
I setting up a larger site which is primarily a file reserve which will heavily rely on the files and folders component, that will be handed off to a client. That is why the less steps they have to take to add folders and files the better.
You had mentioned in the last webinar that there will be an Open Atrium tutorial series, I'm using OSTraining now to study Drupal and apply that to Open Atrium, and would gladly sign up for a paid training site for Open Atrium as well.
Comment #13
hefox commentedI knew I fixed this bug a few months ago. #2424785: Group context not set on wizards, group menu not set, but it was missing one line
in the top of oa_core.module
I'm not sure exactly what happened -- whether I never committed the include of this file or it somehow got overwritten/lost at some stage.
Comment #14
joevagyok commented@hefox , is this fixing the same issue with blueprint spaces as well? Comment #7
I'm having the same situation like #7
Thanks
Comment #15
joevagyok commentedMy case is similar, but a different issue I think, because in 2.33 to create through sitemap it works, but not when you make space blueprint with file section.
Comment #16
Argus commentedWorking with 7.x-2.41 looks there are still issues here. For one the Document Page edit page doesn't display the Vocabulary widget by default, making it impossible to attach a term to the page. With this changed, when the terms are added the folders appear but the files aren't displayed in the folders. This does happen when the Files & Folders widget is set to "Section: None". So somehow the "Section-awareness" doesn't seem to work.
Comment #17
pgancarski commentedI noticed that the openatrium website is acctually broken.
See the Documentation menu
http://docs.openatrium.com/documentation/how-add-menus
Argus, is that what you mean when you say that folders appear but files don't?
It looks to me like the documents are being shown as folders.
Comment #18
Argus commentedI had files added to a folder, but they wouldn't show up, the file count remained zero, but I cannot reproduce that, so it might not be an issue after all.
Comment #19
pgancarski commentedThis might be a different bug:
https://www.drupal.org/node/2484677
Try adding them with the plus button in the top (breadcrumbs) menu.
This was a problem in the previous versions, and I believe it was fixed in 2.41
Comment #20
dpoletto commented@Argus wrote:
Yep, this - at first sight - is still happening on OA 2.43 but, once the page is reloaded (going away and returning or just by reloading it through the web browser), the counter fixes automatically - from (0) to (n) - the number "n" of files that actually belong to the folder.
Comment #21
hefox commentedI fixed the file count issue, if anyone wants to manually test it, check out http://cgit.drupalcode.org/oa_files/commit/?id=7eb096903e465070ab647a537...
Comment #22
dpoletto commentedThat commit worked for me, thank you @hefox.
Comment #23
msizec commentedIve had the same issue than #1
Now I use the taxonomy-based folder structure and its working like a charm.
But there's still a problem using the native method
Comment #24
dpoletto commentedJust an update: still happening on OA 2.45 (upgraded from OA 2.43), as @mpotter wrote in #9:
That bug is still present.
Once on the Files Section the Menu Options is enabled by checking "Provide a menu link" you will discover that Parent is not set (if the Files Section was created through the Site Map, as noted): once Parent is set to Group Menu then files and folders previously created will appear BUT folders created with files placed into them *before* fixing the Parent parameter will be displayed as separate nodes: as document nodes on root (for Folders) and as files on root (for Files even if they were initially nested into one or more Folders). Folders and Files created *after* the manual fix are represented correctly.
Edit: fixed text formatting that hid the word Group Menu rendering the statement "...once Parent is set to "" then..." wrong; now it's correct.
Comment #25
dpoletto commentedComment #26
learnbydrop commentedHi,
I'm facing the same file issue.
- file is uploading and displaying at first time.
- after refresh, the uploaded files are not displaying...
Comment #27
mpotter commentedI cannot reproduce that bug anymore. Can you try creating a new Space and then a new Section to reproduce this? Check to be sure your Space is not set to the Main Menu. Also, in your Structure -> Content Type -> Space, edit the Menu options and make sure in the "OG Menu Single" fieldset that the "Content of this type may be placed in a group menu. Must also be a group content type" is UNSET and the "Groups of this type may have a group menu. Must also be a group type" is SET.
soorepalli: You need to read this whole thread and check your Space and Section menus before reporting a bug.
If somebody reproduces a problem on a fresh install of 2.45 then you need to post the exact steps to reproduce it. If you are upgrading an older site then it's likely your space and/or section nodes are not set to the correct menu. Upgrading Atrium can't fix that for you. You need to test by creating a new top-level space, and then a section within that space to ensure you are not getting bad menu values from old pre-upgrade content.
Comment #28
dpoletto commentedMike, can you clarify the part about the *fresh* install of OA 2.45?
I checked on a *upgraded* OA 2.45 (from 2.43) which showed the issue and, on admin/structure/types/manage/oa-space (those on the Menu settings of the OA Space Edit page), both settings:
appear to be set like you asked to verify (so no difference between OA 2.43 and OA 2.45 upgraded/fresh installed).
Note: Available menus setting shows that only Main menu is enabled and Default parent item is set to .
Am I missing something or basically, up to now (at least up to next OA 2.50), we need to manually fix the correct menu as per #9 for existing Spaces because, as you said, upgrade will not fix that part?
As I understood with the upcoming OA 2.50 the issue shall be fixed for *new* created spaces *only* (if OA is upgraded from a previous version no matter if a manual fix as per #9 was executed) or it shall be fixed for *all new* created spaces (if OA is a fresh install)...or it is yet fixed on fresh install of OA 2.45 too? Sorry for confusion but I need to be sure to have understood the sequence of events.
Comment #29
mpotter commentedBy "fresh install" I meant: Install a new Atrium 2.45 site on Pantheon and if you can reproduce the problem, post the exact steps.
There is no way to automatically fix any existing spaces that might have incorrect parents. In 2.50, any new space and section created in the sitemap should have the correct menu and parent set. However, if you create a subspace or section within a previously existing space that is messed up, then the subspace and section could also be messed up.
Comment #30
dpoletto commentedThanks Mike, now it's clear for me. Thanks again.
Comment #31
learnbydrop commentedThanks mike, With fresh installation of 2.45 the files section is working fine.
Comment #32
mpotter commented