[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [vi] [zh] Espace de traduction

Home > English documentation > What is SPIP? > Upgrades and version history > SPIP 2.1: My articles have all disappeared!

SPIP 2.1: My articles have all disappeared!

September 2010 — updated on : January 2011

All the versions of this article:

If you installed SPIP in its 2.1 version, a bug [1] introduced 10 months ago [2] made all your articles “disappear” on your website. No panic, only their display is being broken, a simple upgrade to SPIP 2.1.2 will solve the issue.

The bug appears in the file ecrire/public/quete.php

In this file, at the line 82, you just need to replace the value 10000 by 365*2:

                     : (time()+(3600*24*10000))) ;
                     : (time()+(3600*24*365*2))) ;

All usual upgrade methods are possible:

— editing the file ecrire/public/quete.php on your site (cf. former code)

— using spip_loader.php to download and install SPIP 2.1.2

— downloading SPIP 2.1.2 and upgrade the whole site by FTP.

— downloading the patch: http://trac.rezo.net/trac/spip/changeset/16014

— pulling from SVN by svn up ecrire/public/quete.php if your website is on SVN with 2.1 branch

— using the unix command: This command, executed as root, allows you to fix the problem globally for all instances of SPIP on your server:

(This command displays files fixed).

Then EMPTY THE CACHE of your website, and you’ll be good to go again.

With our deepest apologies for this (great) mistake!


[1 This bug is happening on 32 bits machines, a date too far in the future is set back to January 1901.

Show the template of this page Site powered by SPIP | Translation area | Private area