[Corrigé 3.1.7] Impossible de modifier quoi que ce soit

Vous avez trouvé un bug dans l'application (dernière version stable ou bêta): Décrivez le ici afin que la correction soit intégrée a la prochaine version.
tbeccu
Gsup LEVEL 1
Messages : 12
Enregistré le : ven. 12 févr. 2016 16:30

Bonjour désolé du temps de réponse.
Je ne peux activer le mode debug, car lorsque j'appuie sur un bouton pour valider un formulaire ou un changement, je n'ai qu'une page blanche.

Je pense que le problème vient de Wamp car j'ai installé GestSup sur un NAS Synology et tout fonctionne normalement.
Je regarderai plus en détail le pourquoi avec Wamp .
Merci
GestSup 3.1.6 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.15
Avatar du membre
Flox
Administrateur du site
Messages : 9345
Enregistré le : jeu. 21 juin 2012 19:00

regarder les logs PHP depuis votre serveur et copier les erreurs ici
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.11 | https://doc.gestsup.fr/
tbeccu
Gsup LEVEL 1
Messages : 12
Enregistré le : ven. 12 févr. 2016 16:30

Voici les logs d'aujourd'hui.
[24-Feb-2016 15:57:14 Europe/Paris] PHP Notice: Undefined index: mail_auto_user_modify in C:\wamp\www\gestsup\admin\parameters.php on line 454

[24-Feb-2016 15:57:14 Europe/Paris] PHP Stack trace:

[24-Feb-2016 15:57:14 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[24-Feb-2016 15:57:14 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[24-Feb-2016 15:57:14 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[24-Feb-2016 15:57:14 Europe/Paris] PHP Notice: Undefined index: mail_auto_tech_modify in C:\wamp\www\gestsup\admin\parameters.php on line 459

[24-Feb-2016 15:57:14 Europe/Paris] PHP Stack trace:

[24-Feb-2016 15:57:14 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[24-Feb-2016 15:57:14 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[24-Feb-2016 15:57:14 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[24-Feb-2016 15:57:14 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 572

[24-Feb-2016 15:57:14 Europe/Paris] PHP Stack trace:

[24-Feb-2016 15:57:14 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[24-Feb-2016 15:57:14 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[24-Feb-2016 15:57:14 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[24-Feb-2016 15:57:14 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 573

[24-Feb-2016 15:57:14 Europe/Paris] PHP Stack trace:

[24-Feb-2016 15:57:14 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[24-Feb-2016 15:57:14 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[24-Feb-2016 15:57:14 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[24-Feb-2016 15:57:16 Europe/Paris] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Champ 'mail_auto_tech_modify' inconnu dans field list' in C:\wamp\www\gestsup\admin\parameters.php:157
Stack trace:
#0 C:\wamp\www\gestsup\admin\parameters.php(157): PDO->exec('UPDATE tparamet...')
#1 C:\wamp\www\gestsup\admin.php(26): include('C:\\wamp\\www\\ges...')
#2 C:\wamp\www\gestsup\index.php(465): include('C:\\wamp\\www\\ges...')
#3 {main}
thrown in C:\wamp\www\gestsup\admin\parameters.php on line 157
Merci d'avance :)
GestSup 3.1.6 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.15
Avatar du membre
Flox
Administrateur du site
Messages : 9345
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

il semble que votre base de données soit corrompue,

essayer de passer ces requetes:

au passage de la version 3.1.3 a 3.1.4

Code : Tout sélectionner

ALTER TABLE `tparameters` ADD `mail_auto_user_modify` INT(1) NOT NULL DEFAULT '0' AFTER `mail_auto`;
au passage de la version 3.1.4 a 3.1.5

Code : Tout sélectionner

ALTER TABLE `tparameters` ADD `mail_smtp_class` VARCHAR(15) NOT NULL DEFAULT 'isSMTP()' AFTER `mail_smtp`;
si elle ne fonctionne pas merci de nous donner le message d'erreur.

si cela fonctionne je vous invite a vérifier la bonne exécution des requêtes présente dans le dossier /_SQL/ que vous avez passés.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.11 | https://doc.gestsup.fr/
tbeccu
Gsup LEVEL 1
Messages : 12
Enregistré le : ven. 12 févr. 2016 16:30

Je suis désolé, je suis en sorte novice dans le traitement de base de données. Quand vous dîtes de "passer" les requêtes c'est directement dans la base de données ? Ou dans le code php ?
Merci encore.

EDIT : J'ai rajouté les lignes de codes que vous m'aviez données dans la table SQL "tparameters".
Voici le php_error.log :
[26-Feb-2016 08:50:36 Europe/Paris] PHP Notice: Undefined index: mail_auto_user_modify in C:\wamp\www\gestsup\admin\parameters.php on line 454

[26-Feb-2016 08:50:36 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:36 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:36 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:36 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:36 Europe/Paris] PHP Notice: Undefined index: mail_auto_tech_modify in C:\wamp\www\gestsup\admin\parameters.php on line 459

[26-Feb-2016 08:50:36 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:36 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:36 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:36 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:36 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 572

[26-Feb-2016 08:50:36 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:36 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:36 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:36 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:36 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 573

[26-Feb-2016 08:50:36 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:36 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:36 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:36 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:39 Europe/Paris] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Champ 'mail_auto_tech_modify' inconnu dans field list' in C:\wamp\www\gestsup\admin\parameters.php:157
Stack trace:
#0 C:\wamp\www\gestsup\admin\parameters.php(157): PDO->exec('UPDATE tparamet...')
#1 C:\wamp\www\gestsup\admin.php(26): include('C:\\wamp\\www\\ges...')
#2 C:\wamp\www\gestsup\index.php(465): include('C:\\wamp\\www\\ges...')
#3 {main}
thrown in C:\wamp\www\gestsup\admin\parameters.php on line 157

[26-Feb-2016 08:50:53 Europe/Paris] PHP Notice: Undefined index: mail_auto_user_modify in C:\wamp\www\gestsup\admin\parameters.php on line 454

[26-Feb-2016 08:50:53 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:53 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:53 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:53 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:53 Europe/Paris] PHP Notice: Undefined index: mail_auto_tech_modify in C:\wamp\www\gestsup\admin\parameters.php on line 459

[26-Feb-2016 08:50:53 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:53 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:53 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:53 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:53 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 572

[26-Feb-2016 08:50:53 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:53 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:53 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:53 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:50:53 Europe/Paris] PHP Notice: Undefined index: mail_smtp_class in C:\wamp\www\gestsup\admin\parameters.php on line 573

[26-Feb-2016 08:50:53 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:50:53 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:50:53 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:50:53 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:52:05 Europe/Paris] PHP Warning: ftp_get(): Failed to establish connection. in C:\wamp\www\gestsup\admin\update.php on line 163

[26-Feb-2016 08:52:05 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:52:05 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:52:05 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:52:05 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:52:05 Europe/Paris] PHP 4. ftp_get() C:\wamp\www\gestsup\admin\update.php:163

[26-Feb-2016 08:52:05 Europe/Paris] PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\gestsup\admin\update.php on line 163

[26-Feb-2016 08:52:05 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:52:05 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:52:05 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:52:05 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:58:25 Europe/Paris] PHP Notice: Undefined index: mail_auto_tech_modify in C:\wamp\www\gestsup\admin\parameters.php on line 459

[26-Feb-2016 08:58:25 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:58:25 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:58:25 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:58:25 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26

[26-Feb-2016 08:58:27 Europe/Paris] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Champ 'mail_auto_tech_modify' inconnu dans field list' in C:\wamp\www\gestsup\admin\parameters.php:157
Stack trace:
#0 C:\wamp\www\gestsup\admin\parameters.php(157): PDO->exec('UPDATE tparamet...')
#1 C:\wamp\www\gestsup\admin.php(26): include('C:\\wamp\\www\\ges...')
#2 C:\wamp\www\gestsup\index.php(465): include('C:\\wamp\\www\\ges...')
#3 {main}
thrown in C:\wamp\www\gestsup\admin\parameters.php on line 157

[26-Feb-2016 08:58:29 Europe/Paris] PHP Notice: Undefined index: mail_auto_tech_modify in C:\wamp\www\gestsup\admin\parameters.php on line 459

[26-Feb-2016 08:58:29 Europe/Paris] PHP Stack trace:

[26-Feb-2016 08:58:29 Europe/Paris] PHP 1. {main}() C:\wamp\www\gestsup\index.php:0

[26-Feb-2016 08:58:29 Europe/Paris] PHP 2. include() C:\wamp\www\gestsup\index.php:465

[26-Feb-2016 08:58:29 Europe/Paris] PHP 3. include() C:\wamp\www\gestsup\admin.php:26
EDIT 2: J'ai rajouté aussi la requête "mail_auto_user_modify" après "mail_auto_tech_modify" en suivant votre exemple.
Voici le message d'erreur que j'obtiens
[26-Feb-2016 10:33:36 Europe/Paris] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'notify' at row 1' in C:\wamp\www\gestsup\admin\parameters.php:157
Stack trace:
#0 C:\wamp\www\gestsup\admin\parameters.php(157): PDO->exec('UPDATE tparamet...')
#1 C:\wamp\www\gestsup\admin.php(26): include('C:\\wamp\\www\\ges...')
#2 C:\wamp\www\gestsup\index.php(465): include('C:\\wamp\\www\\ges...')
#3 {main}
thrown in C:\wamp\www\gestsup\admin\parameters.php on line 157
GestSup 3.1.6 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.15
C LE GOFF
Gsup LEVEL 1
Messages : 22
Enregistré le : jeu. 17 déc. 2015 08:21

Bonsoir,

nous avons en effet le même problème, et nous avons aussi beaucoup de chance car Flox a pris en charge notre problème. (Cf - http://gestsup.fr/forum/viewtopic.php?f=1&t=2911#p5750)

je vous tiens informé dès que j'ai du nouveau.

Ken@vo
Serveur W2012 R2 - GestSup 3.1.7 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.16 - WampServer 64Bits 3.0.0
Avatar du membre
Flox
Administrateur du site
Messages : 9345
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

nous pensons avoir isolé votre soucis liée a une version récente de Mysql, pouvez vous essayer de modifier le fichier index.php:

Ajouter:
//switch SQL MODE to allow empty values
$db->exec('SET sql_mode = ""');
après
//connexion script with database parameters
require "connect.php";

Merci de nous dire si la solution a bien fonctionner pour votre cas, nous publierons alors une mise a jour si c'est le cas.

cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.59 | MariaDB: 11.5.2 | PHP: 8.3.11 | https://doc.gestsup.fr/
C LE GOFF
Gsup LEVEL 1
Messages : 22
Enregistré le : jeu. 17 déc. 2015 08:21

Bonsoir,

Flox nous a sauvé: http://gestsup.fr/forum/viewtopic.php?f=1&t=2926#p5804

il suffit de modifier le fichier index.php comme décrit dans le lien ci-dessus.

Ken@vo
Serveur W2012 R2 - GestSup 3.1.7 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.16 - WampServer 64Bits 3.0.0
tbeccu
Gsup LEVEL 1
Messages : 12
Enregistré le : ven. 12 févr. 2016 16:30

Merci Flox !!!

Félicitations !
GestSup 3.1.6 - Apache 2.4.17 - Mysql 5.7.9 - PHP 5.6.15
didoudek
Gsup LEVEL 0
Messages : 1
Enregistré le : mer. 16 mars 2016 21:42

Bonjour
je possède également le meme probleme, je peux créer des tickets modifier etc mais dans la partie administration parametres je ne peux rien modifier des que je clique sur Valider une page blanche apparaît et plus rien ! si je rafraichis la page elle réapparait normalement mais les options que j'ai cochées avant d'avoir validé ne sont pas enregistrées.
Merci par avance pour votre aide
Wampserver 3.0 32bits sous windows et version gestsup 3.1.7
Répondre