Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.19
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2014 at 10:43 UTC
Updated:
29 Sep 2015 at 13:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Argus commentedTry reverting all features: https://drupal.org/node/582680
If the problem still exists after that please provide more info: which content type? Is this a virgin OA installation? If not, What changes did you make?
Comment #2
Niklas.G commentedComment #3
Niklas.G commentedThanks Argus for helping out
I use pantheon and they dont support drush 6.x (only 5.x) so the revert command dont seem to work.
Itś a virgin OA install with x numbers of upgrades from version 2.x. Dont know when comments stop working but it must have been after upgrading to 2.16, 2.17 or 2.18.
Any more ideas how to fix this?
Comment #4
Argus commentedManually revert through the UI?
Comment #5
mpotter commentedThe command:
drush fra
should work fine in Drush 5 (using 5.8 here). Being able to revert features is a key part of upgrading open atrium, so you'll definitely want to learn how to do this, either via Drush or via the Features UI.
Comment #6
jkingsnorth commentedSolutions have been offered and we haven't heard back so I'm marking this as fixed. Please reopen the issue if you require further support. Thanks.
Comment #7
socialnicheguru commentedI couldn't find comment settings on the section page.
I had to comment out the following:
Comment #9
adiaaira commentedi just wanted to share what worked for me as an additional option to anyone else that may be having this problem.
i solved it by changing 'FALSE' to 'TRUE' on line 1037 in oa_core.module (/profiles/openatrium/modules/contrib/oa_core/oa_core.module)
Before:
After:
i attempted "drush fra" first (with no success), not sure if that had an impact on this working.
i only came across "$form['comment_settings']['#access'] = FALSE;" because i was looking for where to make the changes SocialNicheGuru suggested, and had to search my whole folder for "hide_comment_settings"
i hope this is helpful.
Comment #10
socialnicheguru commentedThe fix in #9 worked for me.
There is a fix but no patch.
Comment #11
jkingsnorth commentedThe solution in #9 might 'fix' this but the approach isn't very logical: You would have a function called 'oa_core_hide_comment_settings' that shows the comment settings. Comment #7 is a more logical solution, but it is still a hack.
You would be better off writing your own module/code to show the desired comment settings form on the node types you want to show it on.
Comment #12
socialnicheguru commented@John, how do I write a function to override an override?
So if I write my_module_form_oa_group_node_form_alter to address the comments issue how does it override function oa_core_form_oa_group_node_form_alter?
Do I have to manipulate the weights of each?
Comment #13
hosais commentedI made a simple test. A clean new installation of oa2 will have this error. I suppose that oa2 needs to solve the problem, and I think it is a bug.
@SocialNicheGuru Yes. Weights of each module would need to take care of.
This module will do: https://www.drupal.org/project/modules_weight
Or use hook_module_implements_alter()
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
hosais
Comment #14
hosais commentedComment #15
freakanika commentedThis issue seems similar to this one: https://www.drupal.org/node/2345265 perhaps they should be combined?
Comment #16
Argus commentedIndeed, closed #2345265: Adding a comments content pane yields an ajax error as a duplicate.
Comment #17
adamtyoung commentedI am having this problem with a new content type that I am trying to add to the section context. The view does not seem to be panelizing properly.
Comment #18
waliur commentedI too am having the same issue as the original poster of this thread. However I am hosting with Acquia Cloud and have a local DevDesktop environment and get the same issue with both when trying to add/enable comment functionality to a "Space" or to a "Discussion" within a space. I have tried using a fresh installation of both "7.x-2.26" & "7.x-2.30-rc3"
I tried the suggested fix in #9 but no luck.
See attached screenshot
Comment #19
waliur commentedSteps to quickly & easily reproduce the issue:
Comment #20
hefox commentedPlease see the link for what statuses mean -- needs review/needs works need a patch generally.
Comment #21
Argus commentedCurrently OA doesn't support Drupal comments. So this is a feature request, right?
Comment #22
hefox commentedAye, not sure why I clicked support. Thanks
Comment #23
mpotter commentedJust to clarify for people: The "fix" in #9 does not work.
Sites need to decide why they need comments. In Open Atrium we use Discussion Posts & Replies rather than comments. They are more secure and less subject to spam. In 2.30 you can add a "related discussion" to any node, including spaces, sections, etc. This allows comment-like functionality for spaces.
Enabling the Drupal comments will require custom code to override the hooks in OA that hide the comments. You also need to enable comments on the content-types themselves. This setting will need to be saved to a Feature Override to prevent it from getting reset everytime you revert features during an Atrium upgrade.
The specific error issue with clicking on the Comments tab in the Panelizer add-content + menu is that it will error if you don't have comments enabled and Panopoly widget previews are enabled. Panopoly is trying to render the Drupal Comment Reply form, but in ctools if the content-type->comment setting doesn't have comments allowed it generates an error and tries to redirect back to the node page. Basically, the comment form wasn't really designed to be "previewed" like this. This is a panelizer/ctools/comments issue and not something to be fixed in OA2. Once you have comments enabled on a content type then you should be able to use the Comments widget.
Do turn off Panopoly previews, go to admin/panopoly/settings/panopoly_magic and set the "Enable previews when adding panes" to Disabled.
Comment #25
pjohn commented@mpotter, can you elaborate on which hooks in OA can be overridden to show core comments? Where are they located?
Comment #26
mpotter commentedPlease do not reply to really old issues like this which are closed. Core comment support was added to v2.4x of Open Atrium, so this issue is no longer relevant.