Issue Bug Closed

#108939PHP Warning: Undefined array key "label" in ColorElement.php line 148

Nikita Hovratov 02/11/26, 08:47 updated 03/31/26, 08:11

Description

page ts config:

colorPalettes {
    colors {
        black.value = #000000
        gray.value = #1e1e1e
        white.value = #ffffff
        green.value = #33cc99
        yellow.value = #ffcc00
        red.value = #cc6666
        blue.value = #507887
    }
}

Reviews 2

History 911

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-02-11T22:09:14+00:00" > 02/11/26, 22:09 </span>

    Are you on this yourself or have some more details?

  2. Nikita Hovratov commented <span data-processor="relativetime" data-value="2026-02-13T22:50:36+00:00" > 02/13/26, 22:50 </span>

    Garvin Hicking wrote in #note-2:
    > Are you on this yourself or have some more details?

    No, I’m not on it right now. I think it’s pretty clear, what the error is. If label is not set, it falls back to the value of the color. A simple “??” should fix it.

  3. Garvin Hicking commented <span data-processor="relativetime" data-value="2026-02-14T08:26:38+00:00" > 02/14/26, 08:26 </span>

    Yeah I do see whats likely the problem but I wanted to know how to easily reproduce it to verify the fix works and has no follow up problems.

  4. Garvin Hicking commented <span data-processor="relativetime" data-value="2026-02-14T08:28:04+00:00" > 02/14/26, 08:28 </span>

    I guess you have some contentblock config or TCA? Type=color without label? Maybe we should trow an exception because labels are needed for accesdibility…

  5. Nikita Hovratov commented <span data-processor="relativetime" data-value="2026-02-14T09:13:22+00:00" > 02/14/26, 09:13 </span>

    Garvin Hicking wrote in #note-5:
    > I guess you have some contentblock config or TCA? Type=color without label? Maybe we should trow an exception because labels are needed for accesdibility…

    It’s not TCA Garvin, it’s the colorPalette feature: https://docs.typo3.org/permalink/t3tsref:pagecolorpalettes
    It was fine not having a label, now the warning appears in our system after the last update to 13.4.25

  6. Gerrit Code Review pushed patch set 1 for main to change 92844 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2026-02-14T09:25:35+00:00" > 02/14/26, 09:25 </span>

  7. Nikita Hovratov commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-02-14T14:40:09+00:00" > 02/14/26, 14:40 </span>

    Applied in changeset commit:14a41cadd69e2599080cc645b9035d0149d9db17.