Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
teraßyte Posted August 23 Posted August 23 I was editing blog I added to a club and received this error: Whoops\Exception\ErrorException thrown with message "Undefined array key "club_node_public"" Stacktrace: #6 Whoops\Exception\ErrorException in \system\Content\ClubContainer.php:147 #5 Whoops\Run:handleError in \system\Content\ClubContainer.php:147 #4 IPS\blog\_Blog:saveClubForm in \applications\core\modules\front\clubs\view.php:1583 #3 IPS\core\modules\front\clubs\_view:nodeForm in \system\Dispatcher\Controller.php:107 #2 IPS\Dispatcher\_Controller:execute in \applications\core\modules\front\clubs\view.php:129 #1 IPS\core\modules\front\clubs\_view:execute in \init.php:940 #0 IPS\_Dispatcher:run in \init.php:940 The problem is in the trait /system/Content/ClubContainer.php on line 147: \IPS\Db::i()->update( 'core_clubs_node_map', array( 'name' => $values['club_node_name'], 'public' => $values['club_node_public'] ? $values['club_node_public'] : 0), array( 'club_id=? AND node_class=? AND node_id=?', $club->id, $nodeClass, $this->_id ) ); Specially the issue is this code: $values['club_node_public'] ? $values['club_node_public'] : 0 so I replaced it with: $values['club_node_public'] ?? 0 SeNioR-, BertT and Afrodude 3
Jim M Posted August 23 Posted August 23 Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
teraßyte Posted August 23 Author Posted August 23 I forgot to mention in my post above that it was an Open Club.
Recommended Posts