This topic is locked
[SOLVED]

PHP8.1 Vs 7.1

10/17/2022 8:52:29 AM
PHPRunner General questions
C
chrisbee author

Hi

My new instance is running PHP 8.1 and phprunner will not work correctly.

Do I need to depreciate to 7.1 or is something else wrong?

Chris

admin 10/17/2022

You need to rebuild your application using the latest version of PHPRunner. Only the latest builds of PHPRunner 10.8 support PHP 8.1.

J
jackwood 10/18/2022

Hi @admin.

I also try upgrade from PHP 7.4 to PHP8.0 and PHP 8.1 (Xampp built in), it shows the error in some pages.

Fatal error: Uncaught Error: Undefined constant "CREATE" in C:\xampp\htdocs\sglv3\include\phpfunctions.php:1303 Stack trace: #0 C:\xampp\htdocs\sglv3\classes\addpage.php(1175): GetDefaultValue('transaction_typ...', 'add', 'products_reques...') #1 C:\xampp\htdocs\sglv3\classes\addpage.php(345): AddPage->prepareDefvalues() #2 C:\xampp\htdocs\sglv3\products_request_add.php(105): AddPage->process() #3 {main} thrown in C:\xampp\htdocs\sglv3\include\phpfunctions.php on line 1303

the page in PHP 7.4 the add page is normally run as usual.

admin 10/18/2022

@jackwood,

Accoridng to what I see in the error message ( GetDefaultValue function ) this error is coming from your code. I guess you are using a default value with some incorrect syntax that works in PHP 7.4 but doesn't work in PHP 8. That is my guess of course.

J
jackwood 10/18/2022

Hi @admin.

Sorry, Yes you Right, I put default values without " " (Text value).
Thank you for the best support.