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

Error creating fields

Development and Programming

harsing's avatar
harsing
57 posts
one month ago
harsing's avatar harsing

Hi,

I get PHP errors when working with fields. Everything seems to work fine except creating and editing fields. I successfully added three fields but when I try to edit them or add more fields I get this error:

TypeError Caught
in_array(): Argument #2 ($haystack) must be of type array, string given
ee/ExpressionEngine/Controller/Fields/Fields.php:837

Stack Trace: Please include when reporting this error
#0 ee/ExpressionEngine/Controller/Fields/Fields.php(837): in_array(NULL, '')
#1 ee/ExpressionEngine/Controller/Fields/Fields.php(313): 
     ExpressionEngine\Controller\Fields\Fields->form(Object(ExpressionEngine\Model\Channel\ChannelField))
#2 [internal function]: ExpressionEngine\Controller\Fields\Fields->create()
#3 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
#4 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController(Array)
#5 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#6 public_html/aca_ee.php(139): require_once('...')
#6 public_html/aca_ee.php(139): require_once('...')

The web server looks like this:

System

FreeBSD 13.1-RELEASE-p3 GENERIC amd64

Apache

Apache/2.4.54 (FreeBSD) mpm-itk/2.4.7-04 PHP/8.1.13

PHP

Version 8.1.13

MySQL

MySQL 10.3.36-MariaDB

EE

Version 7.2.3


Has anyone seen this behavior before?

Best regards,

Matts

       
Real Deals's avatar
Real Deals
8 posts
one month ago
Real Deals's avatar Real Deals

How many fields do you have?

Only thing I’ve encountered is hitting the limit of available PHP vars.

Which you should be able to increase via .htacess or an Apache directive.

       

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.