1

Discussione: PHP 7.2

Hello Ale !
Mon hébergeur Legtux m'informe que le serveur va passer sous php 7.2 le 19 février. Et que si je veux tester avant cette date le fonctionnement de mes sites, il suffit d'ajouter :7272 à l'url de mes sites. Comme pour Chronica : http://katryne.legtux.org:7272

Sur mon hébergement 1&1, j'ai voulu tester  php 7.2 pour mon cms de généalogie TNG la semaine dernière. L'auteur de TNG m'a donné quelques solutions et demandé de poster où je trouvais des messages d'erreur. Ce que j'ai fait.

J'ai pu tout corriger toute seule. C'est assez aisé, en général, la solution est dans le message d'erreur. Et j'ai posté chaque message sur le forum de TNG. Veux tu que je fasse de même pour adHoc ?

2

Re: PHP 7.2

Merci... jusqu'à ce moment je ne dispose pas d'un hébergement sous PHP 7.2

3

Re: PHP 7.2

Page accueil

Warning: Use of undefined constant ‘HTTP_ACCEPT_ENCODING’ - assumed '‘HTTP_ACCEPT_ENCODING’' (this will throw an Error in a future version of PHP) in /include/hpage.inc on line 9

Warning: Use of undefined constant ‘gzip’ - assumed '‘gzip’' (this will throw an Error in a future version of PHP) in /include/hpage.inc on line 9

Faire les corrections demandées supprime les messages d'erreur.

Edit : J'ai testé partout, mais je n'ai pas eu d'autres message d'erreur. Si j'en trouve, je poste ici.

4

Re: PHP 7.2

Per vostra informazione, ho provato anche io php-7.2.2 ed ho gli stessi errori, per contro con la versione php-7.0.3
tutto funziona nessun errore.

Pour votre information, en local, aussi moi je essayé php-7.2.2 et j'ai les mêmes erreurs, contrairement sur la
version php-7.0.3 tout fonctionne sans erreur.

5

Re: PHP 7.2

Vous pouvez commenter la ligne 9 du fichier /include/hpage.inc. Je l'avais déjà fait pour la prochaine version.

Vous pouvez continuer en postant ici les résultats de vos tests sous PHP 7.2


Puoi commentare la linea 9 del file /include/hpage.inc. Io l'avevo già fatto nei file della prossima versione.
Continua pure a postare su questo thread i risultati dei test con PHP 7.2

6 Ultima modifica di Wald23 (14/02/2018 20:04:48)

Re: PHP 7.2

Ho testato ulteriormente il mio sito in locale utilizzando il servere uwamp vers. 3.02 in quanto la 3.1 non mi funziona
La versione Php utilizzata è la 7.2.2

La cosa strana è che facendo l'accesso sia come admin che come utente tutto funziona bene.
Come visitatore ho le seguenti anomalie :
Menu Laterale
Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in C:\EasyPHP\Server\UwAmp_3.0.2\UwAmp\www\arcadinoe\modules\pages\inc\pages_menu.inc on line 30

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in C:\EasyPHP\Server\UwAmp_3.0.2\UwAmp\www\arcadinoe\modules\pages\inc\pages_menu.inc on line 40

Pagina centrale
Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in C:\EasyPHP\Server\UwAmp_3.0.2\UwAmp\www\arcadinoe\modules\boxes\lateral.inc on line 9

Per ciò che riguarda la linea 9 del file /include/hpage.inc ho header('Content-Script-Type: text/javascript');
Spero questo sia utile

Pour les amis français excusez si je n'ai fait la traduction. roll

7

Re: PHP 7.2

Interessante...

Faccio un controllo e correggo.

Grazie 1000 Wald

8

Re: PHP 7.2

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/pages/index.php on line 30

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/pages.inc on line 27

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/pages.inc on line 37

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/pages.inc on line 59

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/pages.inc on line 144

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/pages.inc on line 198

Mon fichier pages.inc est forké. Sans doute pas les bonnes lignes.

Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/Katryne/www/modules/pages/search/search.inc on line 20

9

Re: PHP 7.2

J'ai trouvé ce lien : http://php.net/manual/fr/migration72.deprecated.php
Ce doit pouvoir aider ceux qui savent.
Mais moi... mmm voyons ... heu , ça demande réflexion ...

10

Re: PHP 7.2

Pour le module Contact


Warning: Use of undefined constant USER_LEVEL - assumed 'USER_LEVEL' (this will throw an Error in a future version of PHP) in /var/www/legtux.org/users/blackland/www/modules/contact/mail_form.inc on line 120

11

Re: PHP 7.2

Rassurez vous, c'est bien simple à corriger big_smile.
L'adHoc va marcher même sous le PHP 7.2 wink

12

Re: PHP 7.2

Même moi, j'ai réussi à corriger, c'est dire combien c'est facile. En fait, la solution est donnée dans le message d'erreur.

C'est pas comme chez PunBB : sur le site officiel, il a été décidé que php7.2 n'était pas une version officielle, donc ils ne publient aucun correctif http://punbb.informer.com/forums/topic/ … th-php-72/ . Heureusement les amis Russes sont nettement plus réactifs et coopératifs. Et voilà leurs correctifs : https://punbb.info/t-904.html