When ever I create a section and choose calendar I get the error message.

this is on a brand new install also.

Comments

mpotter’s picture

Status: Active » Postponed (maintainer needs more info)

I am not able to reproduce this on any of my sites, even a fresh install, so not sure what's different with your setup. Can anybody else reproduce this?

hefox’s picture

This message is horrible. It can come from so any element in any form, and sometimes not even a sivible form as views uses executing the exposed form to figure out exposed input, and doesn't always display the form but does display the error messages from the form...

Anyhow I usually poke into form.inc, find the part that outputs that message a dsm to see what element is actually reporting it.

technocrat’s picture

Yeah, I get the error message too when I create a default section. Also, I can't create regular discussion posts when inside a section. The contextual content create links only show "Create Team" and "Create Section Page" even when viewing a section. This is on a fresh install of the 7.x-2.x-beta1. For some reason, when I do create a discussion post I still can't connect it to a "discussion type" section, or any for that matter.

Not sure if it's related but I got this warning while installing OA. Right when i was asked which panopoly apps to install.

Warning: Illegal string offset 'name' in apps_profile_apps_select_form() (line 101 of ~/openatrium/profiles/openatrium/modules/contrib/apps/apps.profile.inc).

technocrat’s picture

StatusFileSize
new75.43 KB

Also, here is a screenshot of the Features which say I have unmet dependencies.

hefox’s picture

Those are example features from contrib modules; oa features are under Open atrium vertical tab and panopoly features are under Panopoly tab

Argus’s picture

I have seen this error on my beta3 installation. Indeed also when adding a calendar display on a sectionpage, with a non-admin user.

Argus’s picture

After removing the calendar (View: Open Atrium Calendar: Calendar) the error is gone. And it doesn't return when I add the calendar again. Maybe it is related to an event on the calendar the user doesn't have access to?

potassiumchloride’s picture

I have this error on my beta3 installation when I add a section page that is a default. I don't get it when I add a calendar or a discussion section.

mpotter’s picture

Version: » 7.x-2.0-beta3
Status: Postponed (maintainer needs more info) » Active

Just had this happen during the Drupal Association webinar today, so at least I have a test case to debug this now. It was working yesterday so not sure why this is intermittent, but I'll try to track it down. In this case it was for anonymous users trying to access a new "Task" section.

I think it's related to something in the Panelizer configuration for the View that is being displayed on the page.

mpotter’s picture

Status: Active » Fixed

OK, think I fixed this in 51ba193. Code wasn't using the correct helper routine to get the current Space context.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hazit’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Status: Closed (fixed) » Active
StatusFileSize
new159.42 KB

Hi again

I'm now getting this when I create a new space. I'm using a (still relatively) fresh instal of OA 7.x-2.x-dev.

mpotter’s picture

Status: Active » Closed (cannot reproduce)

This usually means you have a widget on your Space page that is set up incorrectly and need to revert the Customize Page options. I cannot reproduce this on a fresh install of OA2-dev.

hazit’s picture

Thanks Mike - your advice worked.

________________________________________

Just a note to other newbies who might be getting the following error for their Open Atrium 2.0 Spaces and find themselves here:

'An illegal choice has been detected. Please contact the site administrator'

Try selecting "Customize this page" then deleting any content panes that you are not actively using, or that relate to content types you may have recently created or customised.

If that still does not work - try deleting and re-adding the content panes you are using for that Space using the "Customize this page" option.

This worked for me.

Another option if you are having problems with Spaces is to go to Panolopy/Pages and scroll down to 'Overridden Page Templates'. Find the Space/Section you are having trouble with and select 'Revert' *NOTE you will lose any customisations you have made to that Space page if you do this and will have to re-do them.

If this does not help, or if you are getting the above error with newly created Spaces, double-check that you have not made any customisations to the template that are causing you trouble or that relate to content types you may have recently created or customised (found under Panopoly/Panopoly Pages/Page Library).

hosais’s picture

Version: 7.x-2.x-dev » 7.x-2.0
Status: Closed (cannot reproduce) » Active
StatusFileSize
new23.72 KB
new35.9 KB
new38.73 KB

Hi,

I create 6 spaces. I gave each spaces with one news section. Then I added 4 document posts on three of the 6 sections. I have this error when I create one document post. After saving the post, it shows the error and section selector is red and there is no section that I can choose. I attached the picture for reference. The only thing I did to customize this web so far is change the logo and created an mini panel.

With that error, in the section page, the posted document is not showed.

hosais

hefox’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
hosais’s picture

Version: 7.x-2.x-dev » 7.x-2.0

Hi,

After few times tests, here is the way to reproduce the error:

1) create a space
2) create a news section in the space
3) create a document post with TWO files attachment.

Then it produce this error always. I tested many times, the most important thing here is TWO files attachment.

Without attachment or just ONE file will not have this error.

after some more tests, the only way to have a document has two files is create the document post with one file attached, saved and then edit and add another ONE file again. It seems only one file can be uploaded each time it saved. Could anyone explain why this happened?

hosais

hosais’s picture

By the way,

My installation is 7.x-2.0 not dev version.

hosais

hefox’s picture

Version: 7.x-2.0 » 7.x-2.x-dev

Please stop changing the version and read about using issues in the issue queue handbook.

The issue likely exists in 2.x-dev; if it didn't this issue could be marked back as fixed since there's no reason to have an open issue for a fixed bug.

mpotter’s picture

Sounds like the Space / Group Audience (og_group_ref) field is being cleared by the multiple attachment upload. This field is hidden in the collapsed "Access" fieldset of most content types. The value of the Space field is used to select the options for the Section reference field. If the Space field is empty, then the Section field will not have any values and you won't be able to save it.

Seems to be an issue with the Ajax of the Media attachment messing up the Space and Section fields and will look into it.

mpotter’s picture

Status: Active » Postponed (maintainer needs more info)

1) create a space
2) create a news section in the space
3) create a document post with TWO files attachment.

OK, I actually cannot reproduce this. Exactly how are you doing #3? I was able to add two files easily:

a) Click the Select button in the attachment area, choose a file, click Upload, click Next, click Save.
b) Click the "Add another" button
c) repeat (a)

I can add as many attachments as I want to a document in this manner. If you are trying to use a multi-upload plugin, then this is a dup of #2122015: Field 'oa_section_ref' will be resetted after Upload via plupload / Media_Multiselect. Otherwise can't you just use "Add another" button to add more attachments? I certainly don't need to save after each one.

mpotter’s picture

And actually, I'm close to closing this issue since this is really unrelated to problem in the original post.

hosais’s picture

Hi mike, I did the steps as you mentioned and I did not try to to use a multi-upload plugin and I use add another button. I installed two web sites, in my computer and remote web site (hostmonster). Both of them have this issue.

I am installing a new dev version now in my computer and I will try to test it ASAP. If it has the same result then I will do the tests in another completely new installation for clarifying status of 2.0 version.

hosais

hosais’s picture

Hi,

After testing dev version, it has the same result. I just install a new dev version. After installation, the only things I did are
1) create space (private space)
2) create news section
3) create document post with 2 MS-word files (select 1 file, next, save, add another button, select 1 file,next, save, publish the post). <- then it has the error message.

hosais

hosais’s picture

Hi,

I install a new version at getpantheon.com.

The result is the same. If you want to check the web site, the administrator is tester and password is 123. the version is oa2 2.0

Web: http://test-itaroko.gotpantheon.com

hosais

Argus’s picture

StatusFileSize
new8.07 KB

I followed the steps to reproduce on your testsite and indeed the error is produced.

No Section is assignable, so the node won't save.

When I remove the attachments, the node is created without a problem. After the node is saved, I can attach files (one or two) without problems.

Argus’s picture

Further testing, I can create a node with a png file attached without problems. And also with two png's.
One png and one docx file won't work. I checked if docx files are allowed, they are.

mpotter’s picture

Status: Postponed (maintainer needs more info) » Active

Reproduced! I was testing with images and it only fails when uploading more than one non-image document (pdf seems to fail as well as docx). Definitely a problem with the Ajax being used in the Media popup conflicting with the OA2 Section selector. Looking into it.

mpotter’s picture

Status: Active » Fixed

Committed this in b917bf3 to oa_core. The issue was fixed in the latest -dev of the reference_option_limit module, so just needed to update the patches #1986532: Support organic groups OG reference widget and #1986526: Support one field changing 2+ fields and update oa_core.make to point to the latest version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

santoshnath07’s picture

Issue summary: View changes

In my case the err occur due to the node was not published.

thnx.