Annonce

  •  » Installation
  •  » Problème Fatal error: Class 'DateTime' / Piwigo 2.6

#16 2014-04-23 00:09:36

Francky
Invité

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

bonjour

je viens d'installer la version 2.6, j'ai pourtant une version PHP en 5.3.3 mais j'ai le même problème

faut il que je redescende a la 2.5 ?

#17 2014-05-02 17:55:36

bpiwigo
Invité

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

Hello.  Please pardon my English.  My French is very poor.

I thought this might be of some assistance.  I upgraded Piwigo and immediately had a similar problem -- the Admin page returned only a blank page and the "Class 'DateTime'" error -- until I figured out my mistake.

My Piwigo setup had been running fine with PHP 5.3.  In order to get VirtualMin (WebMin) to install properly I recently downgraded to PHP 5.1 on my Centos 5.10 VPS.

I know Piwigo requires PHP 5.2 or higher.  (However I did notice that everything including the Admin page seemed to load fine on PHP 5.1, until I made this new Piwigo upgrade.)

So I then installed the "PHP53u" modules based on recommendations like those at serverfault.com/questions/111458/upgrade-centos-5-tot-php-5-2-or-5-3-recommended-way

The "yum replace" technique is very helpful.

But no matter what I did, the Admin page still wouldn't load and still returned that Class DateTime error.  I was able to literally comment out that section with /* */ in the functions.inc.php file, and then the Admin page WOULD load.  But obviously that was a bad, temporary solution.

Finally I realized that it didn't matter what version of PHP I had installed -- Piwigo still thought I was at PHP 5.1.  I noticed this by monitoring "admin.php?action=phpinfo", a page that WOULD always load properly.

So the simple SOLUTION for me was that I had to restart Apache!  (For me, "service httpd restart".)  Then the php-cgi picks up the newly installed PHP 5.3u, and everything was fine.  The new Piwigo Admin page loads normally.

It was a very "newbie" mistake on my part, but I thought perhaps others would have a similar problem.

Bon chance.

#18 2014-05-02 18:11:05

flop25
Équipe Piwigo
2006-07-06
6544

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

This problem has been discussed may times and here is the French forum. An English one is available use the flags on the top right of any page

Hors ligne

#19 2014-06-20 00:26:18

ssebb
Invité

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

Bonjour,

J'ai également ce problème avec DateTime et Free.
J'ai mis le code proposé par Blaudez.

Il n'y a pas moyen de le modifier pour que les dates des photos s'affichent correctement?
Perso je ne m'y connait pas du tout en PHP...

Merci

#20 2014-06-20 00:28:53

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

Bonsoir

ce n'est qu'un fix pour que "ça passe", pas une raison de rester chez Free, maintenant qu'on a officiellement annoncé PHP 5.2 obligatoire on va utiliser d'autres fonctionnalités de la version

Hors ligne

#21 2014-07-12 15:39:59

triton
Membre
2005-05-25
51

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

j'ai le même problème...comme je viens de passer chez orange, je suis mal parti ! quel hébergeur gratuit me conseillez-vous ?
merci

Hors ligne

#22 2014-07-21 13:25:18

mistic100
Ex Equipe Piwigo
Lyon
2008-09-27
3561

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

Honnêtement, aucun.
Vous n'aurez jamais un service sérieux avec un hébergement gratuit.

Sur ovh.com, pour 29€ par an pour aurez un vrai service, je trouve vraiment pas ça cher payé.
Pour un peu plus cher, piwigo.com héberge votre Piwigo et s'occupe de toute la partie technique (pas une solution si vous avez autre chose que Piwigo)

Hors ligne

#23 2014-07-21 14:15:08

triton
Membre
2005-05-25
51

Re: Problème Fatal error: Class 'DateTime' / Piwigo 2.6

c'est vrai que l'investissement est quand même modique. merci pour la réponse.

Hors ligne

  •  » Installation
  •  » Problème Fatal error: Class 'DateTime' / Piwigo 2.6

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact