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

Importing a Channel gave a PHP Notice error

Developer Preview

Hop Studios's avatar
Hop Studios
459 posts
7 years ago
Hop Studios's avatar Hop Studios

Went to import a channel. One of the field names was a duplicate: “text_input” was the field name. Renamed it to “text_input_travis” and clicked “Save Settings” Next screen was this error:

/system/index.php?/cp/channels/sets/doImport&set_path=cset/tmp_1509475918

Notice

Undefined index: text_input

ee/EllisLab/ExpressionEngine/Service/ChannelSet/Set.php, line 334

Severity: E_NOTICE Fatal error: Uncaught Error: Call to a member function getId() on null in /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Service/ChannelSet/Set.php:335 Stack trace: #0 /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Service/ChannelSet/Set.php(249): EllisLab\ExpressionEngine\Service\ChannelSet\Set->assignFieldsToFieldGroups() #1 /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Controller/Channels/Sets.php(154): EllisLab\ExpressionEngine\Service\ChannelSet\Set->save() #2 [internal function]: EllisLab\ExpressionEngine\Controller\Channels\Sets->doImport() #3 /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Core/Core.php(229): call_user_func_array(Array, Array) #4 /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array) #5 /chroot/home/hop in /chroot/home/hopexper/ee4.hopexperiment.com/html/contentzsystem/ee/EllisLab/ExpressionEngine/Service/ChannelSet/Set.php on line 335

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

Could I ask you to share the specific channel set with me? I’d like to ensure I’ve tested it thoroughly.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Any update here Travis? Thanks!

       
Hop Studios's avatar
Hop Studios
459 posts
7 years ago
Hop Studios's avatar Hop Studios

Here’s the zip: https://www.dropbox.com/s/jzud3mere0ti0pb/ChannelSet_hopstudios_phperror.zip?dl=0

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

Thanks for the zip. I’ve got a fix in for the next release.

       

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.