We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel form issue in ExpressionEngine 3.2

How Do I?

CreativelinkUK's avatar
CreativelinkUK
16 posts
9 years ago
CreativelinkUK's avatar CreativelinkUK

Hi there!

We are currently developing a website in ExpressionEngine 3.2 and have unfortunately come across an issue with channel forms.

If we create a channel form, even a form as simple as the first one in the documentation, we get the following error message above any page that the form is on:

Notice
Trying to get property of non-object

ee/EllisLab/Addons/channel/libraries/channel_form/Channel_form_lib.php, line 2209 show details

Severity: E_NOTICE

Notice
Trying to get property of non-object

ee/EllisLab/Addons/channel/libraries/channel_form/Channel_form_lib.php, line 2210 show details

Severity: E_NOTICE

Warning
Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/nhs_heartmanual_revasc_ee/system/ee/legacy/core/Exceptions.php:112)

ee/EllisLab/ExpressionEngine/Boot/boot.common.php, line 463 show details

Severity: E_WARNING

This only seems to happen when logged in as a super admins (I tried logging in as a member in a custom member group and it worked flawlessly). We’ve built a lot of websites in EE 2 but this is our first one in EE 3 so we’re not sure how we can fix this.

Does anyone have any ideas what could be causing this or if it can be fixed? Any help or suggestions would be appreciated and we can supply more info if needed.

Many thanks in advance!

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

There was a bug in 3.2 in this area that was patched for 3.2.1. Updating to that version should fix it for you.

       
CreativelinkUK's avatar
CreativelinkUK
16 posts
9 years ago
CreativelinkUK's avatar CreativelinkUK

Many thanks for your reply!

I’ve updated to 3.2.1 and it has indeed removed this error message. Unfortunately however, channel forms are no longer submitting for any users, regardless of member group. On submission it now shows the following error when attempting to submit:

The form you submitted contained the following errors

    author_id: Invalid Selection
    Status: This field is required.

I was able to add a hidden text field to remove the status error but I’ve been unable to fix the “author_id: Invalid Selection” error.

I’ve tried adding a field setting the author_id as the member_id but this didn’t work.

Also, adding either of the following fields to the form has changed the error to “author_id: This field must contain only positive numbers.”

<input type="hidden" name="author_id" value="{CURRENT_USER}" />
<input type="hidden" name="author_id" value="author_id" />

Does anyone know if there’s a way I can fix this? Our client requires the channel form ability and we want to avoid going back to ExpressionEngine 2 if possible.

Thanks!

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Can I have you take a look at your channel’s settings? In the section for “Channel Form” do you have values for Status and Author?

       
CreativelinkUK's avatar
CreativelinkUK
16 posts
9 years ago
CreativelinkUK's avatar CreativelinkUK
Can I have you take a look at your channel’s settings? In the section for “Channel Form” do you have values for Status and Author?

It looks like changing these settings may have fixed our issue. I wasn’t able to change the Author to anything other than ‘Admin’ but changing the status from ‘– use channel default –’ to ‘Open’ appears to have fixed our channel form as it is now working correctly without error.

Thanks very much for your help, Seth!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.