Skip to content
Menu
Quedank: Simplify
  • Home
  • Recent Posts
  • Computer Science
    • Servers and Hosting
    • Programming and Coding
    • Web
  • Digital Marketing
  • Multimedia
Quedank: Simplify
November 15, 2022November 15, 2022

How To Fix “Warning: Creating default object from empty value in…” In WordPress

-Advertisement-

If you’ve encountered this error message in your WordPress site, it is most likely that you can’t create a new post. You can’t create a new page or even upload media. That is because there is an issue with the website’s database.

This error can look similar to this “Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 748“. The warning points to a specific line of code in a core file. It is recommended that you don’t edit any of these files. Rather, you should try to follow these troubleshooting steps to fix this warning.

1.) Deactivate all plugins on by one to see which plugins may be causing the problem.

2.) Update theme or WordPress version of the website.

3.) If the problem still persists, there is an issue with the Auto_Increment of the ID field in one of the tables in the database. You need to go to phpmyadmin and select the database the website uses. Go to the table “wp_posts“

select the “wp_posts” table

Next is click the Structure tab at the top, and on the first row with the name “ID” click Change.

Click the Structure tab and click Change from the ID row.

You will then see a column with the name “A_I” which stands for Auto Increment. Check it if you see it unchecked then click the Save button.

If you see it already checked, uncheck it and hit save, and then check it again and hit save again.

Make sure that the Null column is left unchecked when saving.

Toggle the A_I column and save.

After saving, you may try to make a post again in your WordPress website or upload images. This should fix the problem but you may also need to do the same thing for the “wp_postmeta” table.

-Advertisement-

Search A Topic

Recent Posts

  • Why Use Python Over R. And Why You Might Not Like R At All.
  • How To Fix “Warning: Creating default object from empty value in…” In WordPress
  • Fix WordPress “Warning: Cannot modify header information – headers already sent by…”
  • Solved: Changing the ‘Publish Date’ does not update post order in WordPress
  • How To Trim Or Shorten The Blank Ending Of The Timeline In DaVinci Resolve
  • Easiest way to redirect your visitors from your old WordPress website to your new. By using 301 Redirect plugins
  • How to export WordPress posts WITH their images and then import them to another website
  • Solved: “The server cannot process the image.” Error in WordPress When Uploading An Image
  • Reaching Out To Influencers For Brand Awareness, Plus A Sample Message Template
  • 3-Step Template To Create A Case Study That Closes Your Leads
©2023 Quedank: Simplify | All Rights Reserved | Privacy Policy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT