Skip to content

E_DEPRECATED: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated #22029

@kkmuffme

Description

@kkmuffme
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

To Reproduce

Step-by-step reproduction instructions

/wp-admin/admin.php?page=wpseo_page_settings
when saving get to page /wp-admin/admin.php?page=wpseo_page_settings_saved&settings-updated=true

Expected results

no error

Actual results

E_DEPRECATED: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated
in \wp-admin\admin-header.php on line 36

It seems you didn't set a title for the page when registering it

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.

Technical info

Used versions

  • PHP version: 8.3
  • WordPress version: 6.6
  • Yoast SEO version: 24.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions