Site logo

[Resolved] Error messages with php 8.0

Home Forums Support [Resolved] Error messages with php 8.0

Home Forums Support Error messages with php 8.0

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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 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

    #2429393
    David
    Staff
    Customer Support

    Hi there,

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

    #2429439
    Jenny Dupuy

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

    #2429456
    David
    Staff
    Customer Support

    Is there a child theme being used ?

    #2429487
    Jenny Dupuy

    No, no child theme used, just additional css.

    #2429524
    David
    Staff
    Customer Support

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

    #2429779
    Jenny 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 together

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

    Thanks for help.

    #2430565
    David
    Staff
    Customer Support

    OK let me know.

    #2430741
    Jenny 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.

    #2430757
    David
    Staff
    Customer Support

    Could i get a login to the test site ?

    #2430831
    Jenny Dupuy

    See below the connection informations

    Thanks

    #2430864
    David
    Staff
    Customer Support

    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 ?

    #2430901
    Jenny Dupuy

    Yes, I confirm.

    You are perfect!

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

    #2430902
    David
    Staff
    Customer Support

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

    Glad to be of help!

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.