Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation error with PHP 8.2 #7817

Open
milindmore22 opened this issue Jun 11, 2024 · 1 comment
Open

Deprecation error with PHP 8.2 #7817

milindmore22 opened this issue Jun 11, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@milindmore22
Copy link
Collaborator

Bug Description

A user reported an error with PHP 8.2 version.

PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/www/wp-includes/formatting.php on line 4494

The error occurs when you choose a static page as home page and disable AMP on the home page, the error appears on the settings page when you disable support for all templates

Expected Behaviour

The AMP version should be compatible with PHP 8.2

Screenshots

Screen Shot 2024-06-11 at 5 47 36 PM

Also note the over espcaing of the message.

PHP Version

8.2

Plugin Version

2.5.3

AMP plugin template mode

Transitional

WordPress Version

6.5.4

Site Health

No response

Gutenberg Version

No response

OS(s) Affected

No response

Browser(s) Affected

No response

Device(s) Affected

No response

Acceptance Criteria

No response

Implementation Brief

No response

QA Testing Instructions

No response

Demo

No response

Changelog Entry

No response

@milindmore22 milindmore22 added the Bug Something isn't working label Jun 11, 2024
@pexlechris

This comment was marked as off-topic.

@westonruter westonruter added this to the v2.5.5 milestone Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants