The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP 7 To PHP 8 Issue
Since quite a while I get php 7.3 warnings in Nginx error.log:
Quote:
In my code I cannot find any error. The problem seems to result in a loop of my (simplified) code: PHP Code:
|
#2
|
|||
|
|||
https://www.php.net/manual/de/migrat...compatible.php
Code:
A number of warnings have been converted into Error exceptions: ... Attempting to access unqualified constants which are undefined. Previously, unqualified constant accesses resulted in a warning and were interpreted as strings. Your variables are cruelly named. Which of them can get the value 'assets'? |
Благодарность от: | ||
BulliM |
#3
|
||||
|
||||
Quote:
Quote:
PHP Code:
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 [DATE]1635476154[/DATE] at [TIME]1635476154[/TIME] --------------- SOLVED I've solved that. Error was in template. This code... Code:
<vb:if condition="$val.assets >0">...</vb:if> I solved that by doing... Code:
{vb:set assets, {vb:var val.assets}} <vb:if condition="$assets >0">...</vb:if> |
#4
|
||||
|
||||
You could use $val['assets'] directly in your if condition.
|
#5
|
||||
|
||||
I tried yesterday, but this doesn't work.
|
#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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|