Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: ErrorException: Notice: Undefined index: custom_fields

Status Resolved
Add-on / Version Publisher 3.1.1
Severity
EE Version 5.3.0

Bruce Sabalaskey

Jan 08, 2020

Not sure if this is related to the misassignment of category to category group (another ticket of mine), but when I view an uncached page that shows various articles for a particular category (segment 1 = topics), I get this error output. The page does display something. The page for this error was: https://dev.lifesitenews.com/topics/stem-cells
Note that the topics pages use category group ID 2. Note also that only the first attempt will display the errors as I cache the page in Redis so EE does not need to render said page until the cache expires. You can choose any topics page by using the main menu News and then the top 4 entries lead to the topics pages.

Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

Severity: E_WARNING
Notice
Undefined index: custom_fields
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 477

Severity: E_NOTICE
Warning
Invalid argument supplied for foreach()
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 478

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

Severity: E_WARNING
=====

Here is a Sentry.io exception report:

ErrorException
Notice: Undefined index: custom_fields
… /lifesitenews/www/system/user/addons/publisher/legacy/libraries/Publisher_channel_categories.php in Publisher_channel_categories::categories at line 477
                    $chunk
                );
                // PUBLISHER ADDITION
                $chunk = $this->update_paths($chunk, $path, $cat_vars, $cat_vars['category_id']);
                $customFields = json_decode($val['custom_fields']);
                foreach ($customFields as $fieldName => $fieldValue) {
                    if (isset($val[$fieldName])) {
                        $val[$fieldName] = $fieldValue;
                    }
                }
/home2/lifesitenews/www/system/user/addons/publisher/ext.publisher.php in Publisher_ext::channel_module_categories_start at line 1081
/home2/lifesitenews/www/system/ee/legacy/libraries/Extensions.php in EE_Extensions::call_class at line 222
/home2/lifesitenews/www/system/ee/legacy/libraries/Extensions.php in EE_Extensions::call at line 117
/home2/lifesitenews/www/system/ee/EllisLab/Addons/channel/mod.channel.php in Channel::categories at line 3087
/home2/lifesitenews/www/system/ee/legacy/libraries/Template.php in EE_Template::process_tags at line 1847
/home2/lifesitenews/www/system/ee/legacy/libraries/Template.php in EE_Template::tags at line 1482
/home2/lifesitenews/www/system/ee/legacy/libraries/Template.php in EE_Template::parse at line 578
/home2/lifesitenews/www/system/ee/legacy/libraries/Template.php in EE_Template::fetch_and_parse at line 234
/home2/lifesitenews/www/system/ee/legacy/libraries/Template.php in EE_Template::run_template_engine at line 165
/home2/lifesitenews/www/system/ee/legacy/libraries/Core.php in EE_Core::generate_page at line 661
/home2/lifesitenews/www/system/ee/legacy/controllers/ee.php in EE::index at line 63
[internal] in call_user_func_array
/home2/lifesitenews/www/system/ee/EllisLab/ExpressionEngine/Core/Core.php in EllisLab\ExpressionEngine\Core\Core::runController at line 241
/home2/lifesitenews/www/system/ee/EllisLab/ExpressionEngine/Core/Core.php in EllisLab\ExpressionEngine\Core\Core::run at line 110
/home2/lifesitenews/www/system/ee/EllisLab/ExpressionEngine/Boot/boot.php in require_once at line 151
/index.php at line 173
#1

BoldMinded (Brian)

I already fixed that last week. I’ll send you a new build soon.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Bruce Sabalaskey

Good news. Yes, that build fixed the error messages.

#4

BoldMinded (Brian)

Good, 1 issue down, another to go :D

Login to reply