Support » Fixing WordPress » Warning: Attempt to read property “post_status” on null in

  • Resolved locoleader

    (@locoleader)


    hello, when I go to the appearance>customize menu, I get the warnings I wrote below at the top of the preview screen. With the troubleshooting tool(with Health Check & Troubleshooting plugin) to check the source of the problem
    -I disabled plugins
    -I installed a different theme
    but there was no change.
    Also, I don’t know what other effects this situation has. I only see this error in the customize menu. I haven’t noticed it yet, though, if it has an effect other than that. What do you think is the problem?

    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208
    
    Warning: Attempt to read property "post_status" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221
    
    Warning: Attempt to read property "ID" on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter locoleader

    (@locoleader)

    I did as you wrote, but unfortunately the problem persists.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Ok, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter locoleader

    (@locoleader)

    sorry, no change. The problem persists. There must be a reason and a solution.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Hm, and you definitely still see that error under the Twenty Twenty-One theme?

    If so, what version of PHP are you running?

    Thread Starter locoleader

    (@locoleader)

    I have Twenty Twenty-One theme enabled and now the following errors appear on the appearance>customize screen. I disabled all plugins but the result did not change.

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2190

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2194

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2200

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2204

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2208

    Warning: Attempt to read property “post_status” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2212

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2217

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2221

    Warning: Attempt to read property “ID” on null in /home2/ariathxm/public_html/wp-admin/includes/template.php on line 2226

    Thread Starter locoleader

    (@locoleader)

    I discovered the source of the problem and fixed it. There were demo pages of the theme in the menus that I did not use. I deleted these pages because I didn’t use them, and that’s why they appeared in red in the menus. I removed the menus that I did not use and the deleted pages that appeared red in the menus from the menus and the problem was solved. I’m sorry for making you busy. Thanks for be interested.

    Hi locoleader

    I had exactly the same PHP errors

    I deleted the invalid page entry from one of menus and all those error lines went a way

    It took many hours of research to find a solution

    So glad I found your post

    Thank you very much

    Snapper

    • This reply was modified 4 months, 1 week ago by Snapper65.
    Thread Starter locoleader

    (@locoleader)

    I’m glad your problem is solved

    Hi @locoleader, thank you for posting your solution. It also resolved my issues right now.

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