- This topic has 13 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
November 23, 2022 at 7:24 am #2429086
Jenny Dupuy
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 2269I 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 PatelApache 2.4.47 + MySQL 5.7.33
November 23, 2022 at 8:14 am #2429393David
StaffCustomer SupportHi there,
what happens if you disable ALL plugins ? Do you still see the errors ?
November 23, 2022 at 8:30 am #2429439Jenny Dupuy
With all plugins desactivated, the same messages are displayed in the customizer.
November 23, 2022 at 8:39 am #2429456David
StaffCustomer SupportIs there a child theme being used ?
November 23, 2022 at 8:57 am #2429487Jenny Dupuy
No, no child theme used, just additional css.
November 23, 2022 at 9:18 am #2429524David
StaffCustomer SupportIf you go to Appearance > Menus, and create and assign new menus to your site. Then revisit the customizer ?
November 23, 2022 at 11:16 am #2429779Jenny Dupuy
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 togetherTomorrow I’ll try to move the site to a new environment because I’m testing locally under Laragon.
Thanks for help.
November 24, 2022 at 2:00 am #2430565David
StaffCustomer SupportOK let me know.
November 24, 2022 at 3:32 am #2430741Jenny Dupuy
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.November 24, 2022 at 3:45 am #2430757David
StaffCustomer SupportCould i get a login to the test site ?
November 24, 2022 at 4:31 am #2430831Jenny Dupuy
See below the connection informations
Thanks
November 24, 2022 at 4:54 am #2430864David
StaffCustomer SupportI 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 ?
November 24, 2022 at 5:14 am #2430901Jenny Dupuy
Yes, I confirm.
You are perfect!
Thanks a lot. I have searched a lot for the origin of these messages!
November 24, 2022 at 5:16 am #2430902David
StaffCustomer SupportI must admit, those errors can be tough to find answers too 🙂
Glad to be of help!
-
AuthorPosts
- You must be logged in to reply to this topic.