I got error (notice) message:

Notice: Undefined offset: 1 in get_category() (line 577 of /panels/plugins/display_renderers/panels_renderer_editor.class.php)

screenshot

Comments

AexChecker created an issue. See original summary.

aexchecker’s picture

Status: Active » Needs review
StatusFileSize
new941 bytes

Fixed

aexchecker’s picture

StatusFileSize
new941 bytes

The last submitted patch, 2: Undefined_offset__1_in_get_category___.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 3: 2613756.undefined_offset_1_in_get_category.patch, failed testing.

aexchecker’s picture

aexchecker’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
aexchecker’s picture

Status: Needs work » Needs review
StatusFileSize
new830 bytes
aexchecker’s picture

Status: Needs review » Needs work
aexchecker’s picture

Status: Needs work » Needs review
StatusFileSize
new802 bytes
vitalym’s picture

Version: 7.x-3.5 » 7.x-3.x-dev
StatusFileSize
new796 bytes

Was able to reproduce it occasionally after update to the latest Panels version (7.x-3.7).

Notice: Undefined offset: 1 in panels_renderer_editor->get_category() (line 617 of panels/plugins/display_renderers/panels_renderer_editor.class.php).

So rerolled the patch and used reset instead of array_shift to get the first element from the array.

josuerodrigu3z’s picture

I'm having this issue using Panels 7.x-3.9 and running on PHP 7.2.19.

joelpittet’s picture

Assigned: aexchecker » Unassigned
Status: Needs review » Fixed
Issue tags: -Notice: Undefined offset

Thanks @VitalyM and @AexChecker, I've committed a rerolled version of this to the dev branch.

  • joelpittet committed 1f52c6a on 7.x-3.x authored by AexChecker
    Issue #2613756 by AexChecker, VitalyM, JosueRodrigu3z: Undefined offset...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.