I tried to install nuBuilder (nuBuilder Forte 4.5
DB Version: V.4.5-2022.10.28.00
Files Version: V.4.5-2022.11.07.01
(V.MajorVersion-CurrentDate.BuildNumber)
with PHP8 and getting the following errors instead of the main form:
*****************************
Uncaught Error.
Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 316
Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 317
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 653
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 622
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 622
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 622
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 622
*******************
Tried with PHP7 and it works fine.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
PHP8 causes errors on loading the main form
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: PHP8 causes errors on loading the main form
I attempted to fix those issues. Unpack the attack file and overwrite the existing one in the /core folder.
Let me know if you encounter other issues.
[File removed: Fixed are on Github]
Let me know if you encounter other issues.
[File removed: Fixed are on Github]
Re: PHP8 causes errors on loading the main form
It has solved some errors. Maybe it was my mistake, I didn't show the full error text due to character number limit. Now it shows (also too big):
********************
Uncaught Error.
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1392
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: PHP8 causes errors on loading the main form
I removed the lines that are not relevant.
[File removed: Fixed are on Github]
[File removed: Fixed are on Github]
Re: PHP8 causes errors on loading the main form
When I enter the main screen I stll get
*****************************
Uncaught Error.
Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 252
Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 253
*********************
Also, when I manage to reload and get thru, I still get (adds nuform.php to errors):
**********************************
Warning: Attempt to read property "sph_php" on bool in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1392
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nuform.php on line 1145
*******************************
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: PHP8 causes errors on loading the main form
Further fixes:
You do not have the required permissions to view the files attached to this post.
Re: PHP8 causes errors on loading the main form
Thanx, but errors still appear.
*********
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
{"id":"nuuserhome","form_code":"nuuserhome","form_description":"\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d","form_type":"launch","browse_title_multiline":"0","browse_autoresize_columns":null,"mobile_view":null,"table":"","primary_key":"","redirect_form_id":"nuuserhome","redirect_other_form_id":"","order":false,"where":"WHERE 0","from":"FROM zzzzsys_setup","javascript":"$('#run_vlnt').removeClass('nuButton').css({'background-color':'red';'color':'white'});\n\nfunction openNuObject() {\n\n $('#nuMessageDiv').remove();\n nuPopup('nuobject', '-1', window.nuFORM.getCurrent().form_id);\n\n}\n\nif (nuSERVERRESPONSE.objects.length === 0 && window.global_access) {\n\n var headings = '
*********************
*********
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
{"id":"nuuserhome","form_code":"nuuserhome","form_description":"\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d","form_type":"launch","browse_title_multiline":"0","browse_autoresize_columns":null,"mobile_view":null,"table":"","primary_key":"","redirect_form_id":"nuuserhome","redirect_other_form_id":"","order":false,"where":"WHERE 0","from":"FROM zzzzsys_setup","javascript":"$('#run_vlnt').removeClass('nuButton').css({'background-color':'red';'color':'white'});\n\nfunction openNuObject() {\n\n $('#nuMessageDiv').remove();\n nuPopup('nuobject', '-1', window.nuFORM.getCurrent().form_id);\n\n}\n\nif (nuSERVERRESPONSE.objects.length === 0 && window.global_access) {\n\n var headings = '
*********************
Re: PHP8 causes errors on loading the main form
Deprecated: addslashes(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 277
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396
Warning: Undefined variable $r in C:\Server\data\htdocs\nuBuilder4\core\nucommon.php on line 1396