Skip to content

Intermittent 500 error in the CP #1433

@stephenmeehanuk

Description

@stephenmeehanuk

Has anyone else come across this? I're seeing an intermittent 500 error in the CP when viewing a collection listing.

The error is Call to a member function handle() on null in CollectionsController.php:114.

The culprit is a malformed URL with a doubled query string:

/cp/collections/products?site=default?site=default

Note the second ? instead of &. Statamic tries to look up a site with the handle default?site=default, gets null, and blows up.

It's only happened a couple of times for one user, so it's not a major issue - but I'm curious how the user would even end up at that URL in the first place.

Is this a known issue in v5? Has anyone else seen it? Would appreciate any pointers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions