Http.error et php8.0

@kiboost tu va me détester, la V4.2 est belle avec PHP 8.0 :slight_smile:

Image :

Log :

0097|[Fri Jan 15 00:23:29.838823 2021] [php:error] [pid 4558] [client 192.168.1.140:64241] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0098|[Fri Jan 15 00:23:29.846068 2021] [php:error] [pid 4516] [client 192.168.1.140:64242] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0099|[Fri Jan 15 00:23:29.852626 2021] [php:error] [pid 4517] [client 192.168.1.140:64243] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0100|[Fri Jan 15 00:23:29.860862 2021] [php:error] [pid 4513] [client 192.168.1.140:64244] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0101|[Fri Jan 15 00:23:29.867356 2021] [php:error] [pid 4514] [client 192.168.1.140:64245] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0102|[Fri Jan 15 00:23:29.874878 2021] [php:error] [pid 4515] [client 192.168.1.140:64246] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0103|[Fri Jan 15 00:23:29.881739 2021] [php:error] [pid 4558] [client 192.168.1.140:64247] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0104|[Fri Jan 15 00:23:29.895538 2021] [php:error] [pid 4516] [client 192.168.1.140:64248] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0105|[Fri Jan 15 00:23:29.903966 2021] [php:error] [pid 4517] [client 192.168.1.140:64249] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0106|[Fri Jan 15 00:23:29.917195 2021] [php:error] [pid 4513] [client 192.168.1.140:64250] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0107|[Fri Jan 15 00:23:29.926000 2021] [php:error] [pid 4514] [client 192.168.1.140:64251] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0108|[Fri Jan 15 00:23:29.932783 2021] [php:error] [pid 4515] [client 192.168.1.140:64252] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0109|[Fri Jan 15 00:23:29.949518 2021] [php:error] [pid 4558] [client 192.168.1.140:64253] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0110|[Fri Jan 15 00:23:29.957974 2021] [php:error] [pid 4516] [client 192.168.1.140:64254] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0111|[Fri Jan 15 00:23:29.964548 2021] [php:error] [pid 4517] [client 192.168.1.140:64255] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0112|[Fri Jan 15 00:23:29.973179 2021] [php:error] [pid 4513] [client 192.168.1.140:64256] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0113|[Fri Jan 15 00:23:29.981780 2021] [php:error] [pid 4514] [client 192.168.1.140:64257] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0114|[Fri Jan 15 00:23:29.989921 2021] [php:error] [pid 4515] [client 192.168.1.140:64258] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0115|[Fri Jan 15 00:23:29.997694 2021] [php:error] [pid 4558] [client 192.168.1.140:64259] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0116|[Fri Jan 15 00:23:30.006570 2021] [php:error] [pid 4516] [client 192.168.1.140:64260] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0117|[Fri Jan 15 00:23:30.007965 2021] [php:error] [pid 4517] [client 192.168.1.140:64261] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0118|[Fri Jan 15 00:23:30.013682 2021] [php:error] [pid 4513] [client 192.168.1.140:64262] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0119|[Fri Jan 15 00:23:30.022496 2021] [php:error] [pid 4514] [client 192.168.1.140:64263] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0120|[Fri Jan 15 00:23:30.031066 2021] [php:error] [pid 4515] [client 192.168.1.140:64264] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0121|[Fri Jan 15 00:23:30.040580 2021] [php:error] [pid 4558] [client 192.168.1.140:64265] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0122|[Fri Jan 15 00:23:30.048037 2021] [php:error] [pid 4516] [client 192.168.1.140:64266] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0123|[Fri Jan 15 00:23:30.055654 2021] [php:error] [pid 4517] [client 192.168.1.140:64267] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0124|[Fri Jan 15 00:23:30.062273 2021] [php:error] [pid 4513] [client 192.168.1.140:64268] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0125|[Fri Jan 15 00:23:30.069237 2021] [php:error] [pid 4514] [client 192.168.1.140:64269] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0126|[Fri Jan 15 00:23:30.076382 2021] [php:error] [pid 4515] [client 192.168.1.140:64270] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0127|[Fri Jan 15 00:23:30.085429 2021] [php:error] [pid 4558] [client 192.168.1.140:64271] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0128|[Fri Jan 15 00:23:30.094487 2021] [php:error] [pid 4516] [client 192.168.1.140:64272] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0129|[Fri Jan 15 00:23:30.103018 2021] [php:error] [pid 4517] [client 192.168.1.140:64273] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0130|[Fri Jan 15 00:23:30.110876 2021] [php:error] [pid 4513] [client 192.168.1.140:64274] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0131|[Fri Jan 15 00:23:30.122230 2021] [php:error] [pid 4514] [client 192.168.1.140:64275] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0132|[Fri Jan 15 00:23:30.129059 2021] [php:error] [pid 4515] [client 192.168.1.140:64276] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0133|[Fri Jan 15 00:23:30.137101 2021] [php:error] [pid 4558] [client 192.168.1.140:64277] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0134|[Fri Jan 15 00:23:30.144273 2021] [php:error] [pid 4516] [client 192.168.1.140:64278] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0135|[Fri Jan 15 00:23:30.173353 2021] [php:error] [pid 4517] [client 192.168.1.140:64279] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0136|[Fri Jan 15 00:23:30.183119 2021] [php:error] [pid 4513] [client 192.168.1.140:64280] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0137|[Fri Jan 15 00:23:30.192995 2021] [php:error] [pid 4514] [client 192.168.1.140:64281] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0138|[Fri Jan 15 00:23:30.199897 2021] [php:error] [pid 4515] [client 192.168.1.140:64282] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0139|[Fri Jan 15 00:23:30.208355 2021] [php:error] [pid 4558] [client 192.168.1.140:64283] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0140|[Fri Jan 15 00:23:30.216124 2021] [php:error] [pid 4516] [client 192.168.1.140:64284] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0141|[Fri Jan 15 00:23:30.225778 2021] [php:error] [pid 4517] [client 192.168.1.140:64285] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0142|[Fri Jan 15 00:23:30.233204 2021] [php:error] [pid 4513] [client 192.168.1.140:64286] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0143|[Fri Jan 15 00:23:30.241228 2021] [php:error] [pid 4514] [client 192.168.1.140:64287] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0144|[Fri Jan 15 00:23:30.248081 2021] [php:error] [pid 4515] [client 192.168.1.140:64288] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0145|[Fri Jan 15 00:23:30.267130 2021] [php:error] [pid 4516] [client 192.168.1.140:64290] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274, referer: http://192.168.1.201/index.php?v=d&p=log
0146|[Fri Jan 15 00:23:30.268779 2021] [php:error] [pid 4558] [client 192.168.1.140:64289] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/html/core/php/utils.inc.php on line 274
0147|[Fri Jan 15 00:23:42.240947 2021] [mpm_prefork:notice] [pid 4512] AH00169: caught SIGTERM, shutting down

Cordialement
Thibaut

Depuis 7.4 déjà, suffit de remplacer $monArray{'tutu'} par $monArray['tutu']

Je savais pas qu’on pouvais utiliser {} en php lol. Ça doit pas être grand chose je regarde tout à l’heure. Sans café c’est moi qui bug …

Apres sur des trucs comme ça faut pas hésiter à faire un pr.

PR fait :wink:

Merci c’est mergé :wink:

@Thibaut_T
tu peux voir s’il y en a d’autres maintenant que celui-là est passé ?

1 « J'aime »

Yes, j vais faire des tours de jeedom avec, je vous dirai comme avec php 7.4

Cdt
Thibaut

2 « J'aime »

J’en ai d’autre :slight_smile: :

Cdt
Thibaut

Et encore une (Log Update) :

[START UPDATE]
****Update from 4.2.0 (2021-01-15 11:53:23)****
Parameters : {"preUpdate":"0","backup::before":"1","plugins":"1","core":"1","force":"0","update::reapply":""}
Send begin of update eventPHP Fatal error:  Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /var/www/html/core/class/DB.class.php:113
Stack trace:
#0 /var/www/html/core/class/DB.class.php(113): method_exists()
#1 /var/www/html/core/class/scenario.class.php(223): DB::Prepare()
#2 /var/www/html/core/class/scenario.class.php(283): scenario::byTrigger()
#3 /var/www/html/core/class/jeedom.class.php(881): scenario::check()
#4 /var/www/html/install/update.php(52): jeedom::event()
#5 {main}
thrown in /var/www/html/core/class/DB.class.php on line 113

Ps : je peux même plus update le core :slight_smile:

Cdt
Thibaut

J’ai fait un PR @kiboost

Là je pense qu’il faut impliquer @Loic

1 « J'aime »

Merci, mergé

1 « J'aime »

@Loic ?

if ($_fetch_param == PDO::FETCH_CLASS) {
			if (is_array($res) && count($res) > 0) {
				foreach ($res as &$obj) {
					if (method_exists($obj,'decrypt')) {
						$obj->decrypt();
						if (method_exists($obj, 'setChanged')) {
							$obj->setChanged(false);
						}
					}
				}
			} else {
				if ((is_string($res) || is_object($res)) && method_exists($res,'decrypt')) {
					$res->decrypt();
					if (method_exists($res, 'setChanged')) {
						$res->setChanged(false);
					}
				}
			}
		}

J’ai ajouté le object/string dans le check
if ((is_string($res) || is_object($res)) && method_exists($res,‹ decrypt ›)) {

Je confirme que la méthode existe plus sur php8.0 :

Edit :
La doc existe peux être pas encore :slight_smile:

Car j’ai pas encore trouver de mention PHP8.0

Cdt
Thibaut

Pourtant ici ils en parlent : PHP 8.0: What's New and Changed • PHP.Watch

Bonjour,
Pour l’instant nous ne commençons pas le support de php 8 désolé. Ca commencera quand il sera disponible dans une debian stable

Ok :slight_smile:

Hello,

Je donnais de l’aide vu que je l’avais vu passer dans le demande de BETATest, La c’est un clonne de ma prod pour vous aidée a trouver tout les bug bloquant :slight_smile:

Ps : je peux arrêter et continuer quand vous voudrez faire une stable :slight_smile:

Cdt
Thibaut

C’est gentil pas de soucis la dessus mais on a pas les ressources nous derriere pour gerer php 8 pour le moment