Skip to content

[2.1.4]: 2: Undefined array key "code" #8279

@andrew-davie

Description

@andrew-davie

Basic Information

My error log is showing several of this error per-day, apparently when someone tries to register (user is Guest).
Essentially it just says "2: Undefined array key "code"

Steps to reproduce

I do not know how to reproduce. I have some successful registrations, and some of these log events suggesting registration basically works, but some condition causes it to fail sometimes, and trigger a code error. I have tried registering myself and it seemed to go OK. The message seems pretty straightforward, and the point in the code where it literally tries to access the array with the key 'code' is obvious. I just don't know the code well enough to understand why or what's going on.

Expected result

We should not be seeing an error in the log - this appears to be a code bug.
In other words, failed registrations are a different issue to this.

Actual result

As noted, it's intermittent and appears to be related to new registrations.
All that I know is the error log showing the message.

Screenshot 2024-07-02 at 5 51 00 PM Screenshot 2024-07-02 at 5 50 33 PM

Version/Git revision

2.1.4

Database Engine

MySQL

Database Version

5.7.44-percona-sure1-log

PHP Version

8.1

Logs

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions