Skip to content

Channel Form errors in PHP 8.1 #2842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mcfarlandonline opened this issue Feb 11, 2023 · 2 comments · Fixed by #3083
Closed

Channel Form errors in PHP 8.1 #2842

mcfarlandonline opened this issue Feb 11, 2023 · 2 comments · Fixed by #3083

Comments

@mcfarlandonline
Copy link
Contributor

EE Version 6.4.5
PHP 8.1

  • MSM * Site

I have a front-end channel form showing this list of errors now that I've bumped them into PHP 8.1:

Deprecated
strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
ee/ExpressionEngine/Addons/channel/libraries/channel_form/Channel_form_lib.php, line 767

Severity: E_DEPRECATED
Deprecated
strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
ee/ExpressionEngine/Addons/channel/libraries/channel_form/Channel_form_lib.php, line 770

Severity: E_DEPRECATED
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/ExpressionEngine/Boot/boot.common.php, line 477

Severity: E_WARNING

Any insight on what needs tweaking here?

@intoeetive
Copy link
Contributor

@mcfarlandonline what are the field (fieldtypes) that you are including into this form?

@mcfarlandonline
Copy link
Contributor Author

mcfarlandonline commented Feb 14, 2023

@intoeetive,

  • rich text editor
  • text input
  • select dropdown
  • email address
  • file
  • radio buttons
  • number input
  • checkboxes

I'm also displaying logged-in members' avatars using the {exp:member:custom_profile_data} tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants