Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

PHP warnings when accessing "wp shell" #16

@claudiosanches

Description

@claudiosanches

This is the output when I access wp shell:

PHP Warning:  Invalid argument supplied for foreach() in /var/www/woo/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 287
Warning: Invalid argument supplied for foreach() in /var/www/woo/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 287
PHP Warning:  Invalid argument supplied for foreach() in /var/www/woo/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 287
Warning: Invalid argument supplied for foreach() in /var/www/woo/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 287

Maybe we are loading the REST API too late?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue that can be reproduced.priority: lowNice-to-haves and niche cases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions