![]() |
|
Thread Tools |
#1
|
||||
|
||||
PHP 7 To PHP 8 Issue
Since quite a while I get php 7.3 warnings in Nginx error.log:
In my code I cannot find any error. The problem seems to result in a loop of my (simplified) code:
Don't really know, what php8 needs to work at this point. Has anyone an idea? No members have liked this post.
|
#2
|
||||
|
||||
https://www.php.net/manual/de/migrat...compatible.php
Deine Variablenbezeichnungen sind grausam nichtssagend (var, variables, variable, y, i). Welche davon kann den Wert 'assets' annehmen? Your variables are cruelly named. Which of them can get the value 'assets'? The following members like this post: BulliM
|
#3
|
||||||||||||
|
||||||||||||
Thanks for that. Will check that.
Originally Posted by shka
Seems not important, because any line like...![]()
...in my code, results in this error. Only if all those (five) lines excluded, my code is running. But probably these lines aren't the problem. At the moment I really don't know, what is going on. --------------- Added 29 Oct 2021 at 02:55 --------------- SOLVED I've solved that. Error was in template. This code...
...results in that error. I solved that by doing...
...what works with PHP8. I have no errors anymore. ![]() No members have liked this post.
|
#4
|
||||
|
||||
You could use $val['assets'] directly in your if condition.
__________________
![]() No members have liked this post.
|
#5
|
||||
|
||||
I tried yesterday, but this doesn't work.
No members have liked this post.
|
#6
|
||||
|
||||
Dann weiß ich auch nicht…
Then shka is right and we need more input. But if it is working it is ok I think
__________________
![]() No members have liked this post.
|
![]() |
Tags |
error, php7, php8, variable |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:29.