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!
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!
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!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.