WordPress is a content management system that most businesses use for creating their websites. In today's article, we will discuss how to resolve the problem of creating a new post in WordPress.

WordPress is frequently updated, and sometimes these updates fix many critical security vulnerabilities. Occasionally, some updates contain errors in the code and cause problems. In the recent update to 6.7, there was a serious issue with creating new posts and pages. Furthermore, previously published posts and pages could not be edited.

The problem lies in the minification of CSS and JavaScript files that WordPress performs to load faster. This issue can be temporarily fixed until the WordPress team resolves it, using a simple code snippet that I will publish below.

Before I proceed with the solution, I would like to mention that readers who have created backups can restore to the previous WordPress version and avoid any problems, thus not needing to proceed with the code integration process described below.

For readers who have not created backups, I recommend using the UpdraftPlus plugin, which is free and can create backups either manually or automatically by configuring it. It is also very easy to use.

The problem of creating a new post in WordPress

As mentioned earlier, the problem is found in the creation or editing of posts and pages. Let's look at some screenshots of how the posts page and the post creation page appear before the solution.

In the photo below, you can see that there are some published and unpublished posts.

Post Creation Page

As you can observe, nothing has changed in the appearance of this specific page, which is the posts page.

Post Editing Page

On the post editing page, you will notice a problem with the loading of CSS and JavaScript, which is why not all the necessary elements are displayed for you to add the content you want. Let's see how to resolve the problem.

How to resolve the problem of creating a new post in WordPress

To resolve the problem, you will need to have access to the server and, specifically, to the WordPress files, particularly the "wp-config.php" file.

Once you locate the "wp-config.php" file, open it and paste the code you see below.

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', false );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

By inserting this code, you will notice that the post editing page returns to normal, and you can create new posts and edit all your published posts.

This function activates code debugging, and along with debugging, it also activates the development versions of CSS and JavaScript.

With this code, you will be able to temporarily resolve the problem that has arisen with the loading of CSS and JavaScript files. When the new update that fixes the problem is released, you should remove this specific code.

As I mentioned earlier, readers who have created backups do not need to insert this code; you can restore to the previous WordPress version and avoid all this hassle.

For readers who do not wish to undertake this process themselves, you can contact me for a quote to resolve the problem that has occurred in WordPress version 6.7, so that you can edit your posts and pages independently.

I wish you successful posts on your blog!

Εγγραφείτε στο newsletter μας!

Εγγραφείτε στο newsletter μας!

Εγγραφείτε στη λίστα αλληλογραφίας μας για να λαμβάνετε τα τελευταία νέα και ενημερώσεις από την ομάδα μας.

You have Successfully Subscribed!