![]() |
fhumanes 2/24/2024 |
Hello, In this article I explained the importance of using PHP 8.1: https://fhumanes.com/blog/cambio-del-portal-a-php-8-1/ And also, the problems I had. The main problem is: $valor = $values[id]; // fIt worked at PHP 7.4 and not in PHP 8.1 I think it's the problem you have. Greetings, |
![]() |
aadham author 2/24/2024 |
Hi Fernando, As you can see in the line of code I've included that I'm using single quotes (".$values['order_det_id']);), but I still get the error message. |
![]() |
fhumanes 2/25/2024 |
Hi, |
![]() |
aadham author 2/25/2024 |
Hi Fernando I understand what you're saying about the single quotes, but as you can see in the line of code, that has already been fixed across the entire code of all events in the page , yet the error isn't going away. |
C
|
cristi 2/26/2024 |
@fernando: it worked in php 7 but I am pretty sure that you had warnings like: Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP). @aadham: double check your code - the error may be in that line but it could had been originated from other piece of code.... Undefined constant means one of three things:
In older php version you had only warnings, in php 8 it's full stop and thrown error. |
![]() |
Admin 2/27/2024 |
My guess is that the error is coming from the different line of code. As Fernando rightfully mentions, this error is most likely coming from the missing quote. |