🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Incorrect Datetime Bug Fix icon
Peut-être abandonné Tested up to 3.2.1 #22 in mysql

Incorrect Datetime Bug Fix

This plugin was create to work around a problem caused by certain configurations in MySQL that lead to several odd symptoms including but not limited to:

Installations actives40+10+ niveaux
Téléchargements · 30D95▲ +46.2% vs prev. 30d
Évaluation5/52 avis
Score de santé31/100En danger
Téléchargements de tous les temps3.9KSince Aug 2011
Support résolu—Aucun fil de discussion récent
A besoin deWP —Php tout
Téléchargements · 7j26▼ -3,7% Semaine sur semaine
Notre verdict

Envisager une alternative

Incorrect Datetime Bug Fix shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites, is rated 5/5 and was last updated 14 years ago, and scores 31/100 on our health check.

  • Petite base d'utilisateurs (40+ installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 13 ans
  • Only tested up to WordPress 3.2 (latest is 7.1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

246Aug 31Oct 14Nov 28
Hier3
Moyenne quotidienne (1 ans)2
Jour de pointe92 Octobre 2026
12 Derniers mois553

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Incorrect Datetime Bug Fix stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
mysql >100 2,506 Meilleurs plugins MySQL →
no_zero_date #7 7 Best no_zero_date plugins →
no_zero_in_date #3 3 Best no_zero_in_date plugins →
sql >100 2,790 Best sql plugins →
sql_mode #8 8 Best sql_mode plugins →

Adoption de version

Part de sites actifs par version.

  • 1.1100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 2 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Incorrect Datetime Bug Fix

À partir du Lisez-moi officiel · v1.1

Description

This plugin was create to work around a problem caused by certain configurations in MySQL that lead to several odd symptoms including but not limited to:

  • Loss of ability to create new posts
  • Loss of ability to update posts
  • Errors regarding invalid timestamps
  • Admin interface reverts to lowest permissions ex:‘Publish’ button says ‘Submit Draft’.

In addition, this problem is often accompanied by an error like the following:

WordPress database error: [Incorrect datetime value: '0000-00-00 00:00:00' for column 'post_date_gmt' at row 1]
INSERT INTO 'mg_posts' ('post_author','post_date','post_date_gmt','post_content','post_content_filtered','post_title',
'post_excerpt','post_status','post_type','comment_status','ping_status','post_password','post_name','to_ping','pinged',
'post_modified','post_modified_gmt','post_parent','menu_order','guid') VALUES (’1′,’2011-08-23 03:32:43′,
’0000-00-00 00:00:00′,”,”,’Auto Draft’,”,’auto-draft’,'post’,'closed’,'open’,”,”,”,”,’2011-08-23 03:32:43′,’0000-00-00 00:00:00′,’0′,’0′,”)

The inability to pass zero dates breaks the ability to actually create a new post, but it also seems to have the odd secondary effect of confusing the heck out of nonces (noces are a security feature), probably because they too rely on timestamps.

This plugin strips out the sql_modes listed below from @@SESSION, thereby eliminating the problem while only effecting database sessions WordPress starts and not the whole database.

Explanation and history of the problem

The cause of this problem stems from an old (soon to be deprecated) odd behavior/feature of MySQL which WordPress came to depend on. My understanding is that it stems from problems in MySQL with regard to using the MySQL NOW() function in some contexts – so as a workaround it was decided that if a date of all zeros was entered on a column that was set as NOT NULL, then that date would not be rejected, but instead would be converted to the current date – to mimic NOW().

Subsequently this method was marginalized as generally a bad idea – and now values exist for a setting called sql_mode, which turn this behavior off and force errors when a null value is passed to a NOT NULL field. In many cases when there is an actual DBA in charge of the database, they will assign these values to the production database to force what outside of MySQL would be normal SQL behavior.

There are 3 sql_modes which will trigger the error by disabling the ability to enter zero dates.

  • NO_ZERO_DATE
  • NO_ZERO_IN_DATE
  • TRADITIONAL

It’s worth mentioning that the ALLOW_INVALID_DATES mode does NOT solve the problem, even though by the name of it, it would seem that it might.

The solution

This plugin solves the problem with minimal effect to the database environment. All this plugin does it check to see if the sql_modes in question are set, and if they are, it removes them.

Importantly, this plugin changes @@SESSION.sql_mode and not @@GLOBAL.sql_mode. By changing sql_mode via the session, it only takes effect on each specific connections WordPress makes with the database rather than changing it for the entire database permanently – as such this will have no effect whatsoever on any applications that might happen to be using the same database.

Other manifestations, alternative solutions.

WARNING: Whenever applicable, consult your DBA before making any changes to production databases.

This problem may (I have no idea) in fact be more common during installation. The errors are different, and although I have seen them, I do not have them handy at this time. In any case, if the sql_modes are set during installation – the process will fail from the start – because of this, it is my presumption that anyone encountering the errors as described above – has probably recently migrated to a new database, or perhaps recently acquired an enthusiastic new DBA who has made some changes.

This plugin DOES NOT FIX this problem for those encountering during installation – thats impossible because WordPress ignores all plugins during installation – so there is no way to hack around it via plugin and fix it before installation occurs.

If you are encountering this problem during installation you will need to find an alternative way to remove the modes. If this is a production environment this may require the cooperation of a DBA who may not like the idea. If met with resistance, I suggest the asking for the modes to be temporarily removed for installation, and then set back after its dont – at which point this plugin will handle the problem from then on.

If your encountering this locally, or on a environment whose database you have access to modify, you will want to make as few changes as possible, so go to whatever interface you use (command line, phpMyAdmin, whatever) and run this line of SQL:

SELECT @@GLOBAL.sql_mode;

This will show you all the sql modes currently defined. Copy all them them but if you have NO_ZERO_DATE, NO_ZERO_IN_DATE, or TRADITIONAL remove them. Then update sql_mode with the remaining modes as such:

SET @@GLOBAL.sql_mode = "STRICT_TRANS_TABLES,STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO";

Please don’t simply use the sql_mode definition I have shown above, this is only an example – be sure to use the modes from your database configuration. Remember to keep everything together NO SPACES ALLOWED in the definition.

Finally, if your just working locally and don’t care about these sql_modes, you can just clear them all.

SET @@GLOBAL.sql_mode = "";

This will do the trick but is absolutely not recommended as a fix for production sites that might share environments.

Irrelevant Note: I struggled with naming this plugin, and settled on the terminology seen in the error message.

Installation

  1. Téléchargez plugin-name.php dans le répertoire /wp-content/plugins/
  2. Activez le plugin via le menu « Plugins » dans WordPress

Will this fix sql_mode during installation?

No, plugins are not loaded during installation. For alternative solutions see
“Other manifestations, alternative solutions” on the plugin home page

Will this effect other applications that might run on the same database, and depend on these sql_mode settings?

No, it uses @@SESSION.sql_mode to change the settings for each WordPress session individually.

How do I undo what this plugin does?

Just turn off the plugin – because it uses @@SESSION, the changes wont persist.

If you’ve made other modifications explained in this plugin’s documentation, you will have to run similar SQL commands to apply the old settings.

Journal de modifications

New version eliminates wpdb::prepare() PHP warnings.

1.0

  • Initial plugin release

1.1

  • Bug fix: Corrected the way the plugin used wpdb::prepare().

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Incorrect Datetime Bug Fix alternatives

All mysql plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Sauvegarde de la base de données pour WordPress Sauvegarde de la base de données pour WordPress Sauvegarde de base de données pour WordPress est votre solution de sauvegarde de base de données unique pour WordPress. Par moteur WP 60K+ ★★★★★★★★★★ 4.5 (66) il y a 7 mois 61
2 Index WP MySQL For Speed Index WP MySQL For Speed Speed up your WordPress site by adding high-performance keys (database indexes) to your… par OllieJones 50K+ ★★★★★★★★★★ 4.8 (99) Il y a 2 mois 88
3 WP phpMyAdmin WP phpMyAdmin [✅ 𝐒𝐄𝐂𝐔𝐑𝐄 𝐏𝐋𝐔𝐆𝐈𝐍𝐵𝓎 𝒫𝓊𝓋𝑜𝓍 ] phpMyAdmin - Navigateur et gestionnaire de bases de données (pour MySQL & MariaDB) par le logiciel Puvox 40K+ ★★★★★★★★★★ 4.6 (58) il y a 1 mois 85
4 Gestionnaire de bases de données – Administrateur WP Gestionnaire de bases de données – Administrateur WP Gérez la base de données à partir de votre tableau de bord WordPress à l'aide de Adminer. par Pexle Chris 20K+ ★★★★★★★★★★ 5 (29) il y a 8 mois 62
5 WP-ServerInfo WP-ServerInfo Display your host's PHP, MYSQL, memcached & Redis information on your WordPress dashboard. de Lester Chan 10K+ ★★★★★★★★★★ 4.8 (17) il y a 4 mois 69
6 SQL Executioner SQL Executioner Execute arbitrary SQL queries against your WordPress database from the Admin. by Justin Watt 2K+ ★★★★★★★★★★ 4.6 (11) Il ya 10 ans 38
7 UsageDD UsageDD UsageDD allows administrators to monitor the resource usage of their WordPress installation. by Dion 1K+ ★★★★★★★★★★ 4.8 (19) il y a 1 heure 81
8 SQL Chart Builder SQL Chart Builder Turn your SQL queries into beautiful dynamic charts with a visual SQL builder, live… by Elvin Haci 500+ ★★★★★★★★★★ 3.9 (22) Il y a 2 mois 67
9 Gestionnaire de table simple Gestionnaire de table simple Permet de visualiser et de modifier des enregistrements de table et de les exporter vers des fichiers CSV grâce à un minimum de… par ryo0inou 300+ ★★★★★★★★★★ 4.8 (4) Il y a 2 mois 71
10 MySQL version display MySQL version display Shows the MySQL version in the admin footer. Can be used together with the "Server IP &… par apasionados 300+ ★★★★★★★★★★ Aucun avis il y a 10 mois 41

FAQ

Incorrect Datetime Bug Fix: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Incorrect Datetime Bug Fix free?

Yes. Incorrect Datetime Bug Fix is free to download and use from the official WordPress.org plugin directory.

Is Incorrect Datetime Bug Fix safe to use in 2026?

Incorrect Datetime Bug Fix shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites, is rated 5/5 and was last updated 14 years ago, and scores 31/100 on our health check.

How many websites use Incorrect Datetime Bug Fix?

Incorrect Datetime Bug Fix is active on 40+ WordPress websites and has been downloaded 3,902 times since it launched in August 2011. It was downloaded 95 times in the last 30 days.

Does Incorrect Datetime Bug Fix work with WordPress 7.1?

Incorrect Datetime Bug Fix is officially tested up to WordPress 3.2.1, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Incorrect Datetime Bug Fix last updated?

The latest version, 1.1, was released on January 7, 2013 (14 years ago).

Who makes Incorrect Datetime Bug Fix?

Incorrect Datetime Bug Fix is developed and maintained by Eddie Moya.

What are the best alternatives to Incorrect Datetime Bug Fix?

The most popular alternatives to Incorrect Datetime Bug Fix are Database Backup for WordPre… (60K+ installs), Index WP MySQL For Speed (50K+ installs) and WP phpMyAdmin (40K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir