Problem/Motivation

I get this error on a Drupal 10.2 site with PHP version 8.2 when clicking on preview button

Steps to reproduce

1. Used Drupal 10.2 with PHP version 8.2
2. Create a node of any content type and fill the fields
3. Click on Preview
4. It will lead to Page not found
5. The error log will show the above error.

Proposed resolution

1. Update code to be compatible with PHP 8.2

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

binnythomas created an issue. See original summary.

sheetal-wish’s picture

@binnythomas can you please mention steps to reproduce the error?

samitk’s picture

Status: Active » Postponed (maintainer needs more info)

Hi @binnythomas,

Can you please share the steps to reproduce it?

Thanks
Samit K.

samitk’s picture

binnythomas’s picture

Issue summary: View changes
binnythomas’s picture

Added the steps.

sheetal-wish’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Hi @binnythomas,

I followed steps you have mentioned but I am not getting any issue.
On clicking preview it's redirected to preview page.

I have tried on Drupal 10.2, PHP 8.2

binnythomas’s picture

Can you try with the publication date module configured in the node?

sheetal-wish’s picture

@binnythomas,

I have tried with publication date module configured in the node, still no errors.

binnythomas’s picture

Switching back to PHP 8.1 and the preview button works as intended. Thanks to all who looked into it.

binnythomas’s picture

Just an update - the PHP 8.2 version should be one of the later releases to see this error.