Site logo

Archived topic

Error messages with php 8.0

13 replies · Started by Jenny Dupuy on November 23, 2022

Viewing posts 1–14 of 14

Hi,

I created a clone of a site in local production (under laragon) to test its operation with php 8.0.

I have the following messages displayed in the theme customizer:

 Warning:  Attempt to read property "post_status" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2233
  Warning:  Attempt to read property "post_status" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2237
  Warning:  Attempt to read property "post_status" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2243
  Warning:  Attempt to read property "post_status" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2247
  Warning:  Attempt to read property "ID" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2251
  Warning:  Attempt to read property "post_status" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2255
  Warning:  Attempt to read property "ID" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2260
  Warning:  Attempt to read property "ID" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2264
  Warning:  Attempt to read property "ID" on null in C:\monlaragon\www\realia\wp-admin\includes\template. on line 2269

I had these messages also on the frontend but when I disable Simple Links, they are no longer displayed either on the frontend or in the php error log file. On the other hand, when I access the customizer, they are displayed there and in the php error log file.

With another theme such as Twenty Twenty Three, no more error messages.

Thank you for your help in solving this problem.

The configuration :
WP 6.1.1, GeneratePress 3.2.4, GP Premium 2.2.1
and
BackWPup (v.4.0.0) de Inpsyde GmbH
Font Awesome (v.4.3.1) de Font Awesome
Redirection (v.5.3.5) de John Godley
SecuPress Free — WordPress Security (v.2.2.3) de SecuPress
SEOPress (v.6.1.2) de The SEO Guys at SEOPress
Simple Links (v.4.7.4) de Mat Lipe (desactivated)
Super RSS Reader (v.4.8.1) de Aakash Chakravarthy
WP-Optimize - Clean, Compress, Cache (v.3.2.9) de David Anderson, Ruhani Rabin, Team Updraft
WP MapIt (v.2.7.1) de Chandni Patel

Apache 2.4.47 + MySQL 5.7.33

Hi there,

what happens if you disable ALL plugins ? Do you still see the errors ?

With all plugins desactivated, the same messages are displayed in the customizer.

Is there a child theme being used ?

No, no child theme used, just additional css.

If you go to Appearance > Menus, and create and assign new menus to your site. Then revisit the customizer ?

I created a new menu and assigned it to the main location, then went to the customizer, but the messages are still there.

I did several tests with menus containing :
- the home page + the articles page
- simple pages
- both together

Tomorrow I'll try to move the site to a new environment because I'm testing locally under Laragon.

Thanks for help.

OK let me know.

Hi,

I cloned the site in another test environment at my host (o2switch) and activated php 8.0 with the same settings as locally (laragon).
Errors occur when I access the customizer and they are the same on local and on o2switch.
The error messages are also displayed in front with the constant
define( 'WP_DEBUG_DISPLAY', true );
in the wp-config.php.

Other tracks to explore?
Thanks.

Could i get a login to the test site ?

See below the connection informations

Thanks

I went into Appearance > Menus. There was a bad link in the menu ( last item ) - i

1. deleted the bad link
2. published the menu changes.
3. removed the menu from the Primary Nav location.
4. Checked the Admin and Customizer and there were no more errors visible.
5. editted the menu again and set the Menu to the Primary Nav location.

It seems to be ok now ? Can you confirm ?

Yes, I confirm.

You are perfect!

Thanks a lot. I have searched a lot for the origin of these messages!

I must admit, those errors can be tough to find answers too :)

Glad to be of help!

This archived topic is closed to new replies.