Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Small error on fresh install or update Topic is solved

Questions related to using nuBuilder Forte.
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Small error on fresh install or update

Unread post by gerese »

Hi,
An error appears during a new installation or update (on Wampserver)
error on install.gif
eroare update29.09.2022.jpg
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Small error on fresh install or update

Unread post by kev1n »

Does the file core/languages/Dutch.sql exist?
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Small error on fresh install or update

Unread post by gerese »

Hi,
Yes, the file core/languages/Dutch.sql exist.

In the log file of the WAMP server I found this:

Code: Select all

[30-Sep-2022 17:49:00 UTC] PHP Warning:  file_get_contents(C:\wamp64\www\sisf2\core/languages/ Dutch.sql): failed to open stream: No such file or directory in C:\wamp64\www\sisf2\core\nusystemupdatelibs.php on line 478
[30-Sep-2022 17:49:00 UTC] PHP Stack trace:
[30-Sep-2022 17:49:00 UTC] PHP   1. {main}() C:\wamp64\www\sisf2\index.php:0
[30-Sep-2022 17:49:00 UTC] PHP   2. nuImportNewDB() C:\wamp64\www\sisf2\index.php:18
[30-Sep-2022 17:49:00 UTC] PHP   3. nuImportLanguageFiles() C:\wamp64\www\sisf2\core\nusetuplibs.php:35
[30-Sep-2022 17:49:00 UTC] PHP   4. file_get_contents() C:\wamp64\www\sisf2\core\nusystemupdatelibs.php:478
[30-Sep-2022 17:49:00 UTC] PHP Notice:  Undefined index: nuProcedureEval in C:\wamp64\www\sisf2\core\nusystemupdatelibs.php on line 81
[30-Sep-2022 17:49:00 UTC] PHP Stack trace:
[30-Sep-2022 17:49:00 UTC] PHP   1. {main}() C:\wamp64\www\sisf2\index.php:0
[30-Sep-2022 17:49:00 UTC] PHP   2. nuImportNewDB() C:\wamp64\www\sisf2\index.php:18
[30-Sep-2022 17:49:00 UTC] PHP   3. nuImportLanguageFiles() C:\wamp64\www\sisf2\core\nusetuplibs.php:35
[30-Sep-2022 17:49:00 UTC] PHP   4. nuInstallException() C:\wamp64\www\sisf2\core\nusystemupdatelibs.php:482
[30-Sep-2022 17:49:00 UTC] PHP Notice:  Undefined index: nuSystemEval in C:\wamp64\www\sisf2\core\nusystemupdatelibs.php on line 82
[30-Sep-2022 17:49:00 UTC] PHP Stack trace:
[30-Sep-2022 17:49:00 UTC] PHP   1. {main}() C:\wamp64\www\sisf2\index.php:0
[30-Sep-2022 17:49:00 UTC] PHP   2. nuImportNewDB() C:\wamp64\www\sisf2\index.php:18
[30-Sep-2022 17:49:00 UTC] PHP   3. nuImportLanguageFiles() C:\wamp64\www\sisf2\core\nusetuplibs.php:35
[30-Sep-2022 17:49:00 UTC] PHP   4. nuInstallException() C:\wamp64\www\sisf2\core\nusystemupdatelibs.php:482
[30-Sep-2022 17:49:00 UTC] PHP Notice:  Undefined index: nuProcedureEval in C:\wamp64\www\sisf2\core\nusystemupdatelibs.php on line 81
[30-Sep-2022 17:49:00 UTC] PHP Stack trace:
[30-Sep-2022 17:49:00 UTC] PHP   1. {main}() C:\wamp64\www\sisf2\index.php:0
[30-Sep-2022 17:49:00 UTC] PHP   2. nuImportNewDB() C:\wamp64\www\sisf2\index.php:18
[30-Sep-2022 17:49:00 UTC] PHP   3. nuImportLanguageFiles() C:\wamp64\www\sisf2\core\nusetuplibs.php:35
[30-Sep-2022 17:49:00 UTC] PHP   4. nuInstallException() C:\wamp64\www\sisf2\core\nusystemupdatelibs.php:488
[30-Sep-2022 17:49:00 UTC] PHP Notice:  Undefined index: nuSystemEval in C:\wamp64\www\sisf2\core\nusystemupdatelibs.php on line 82
[30-Sep-2022 17:49:00 UTC] PHP Stack trace:
[30-Sep-2022 17:49:00 UTC] PHP   1. {main}() C:\wamp64\www\sisf2\index.php:0
[30-Sep-2022 17:49:00 UTC] PHP   2. nuImportNewDB() C:\wamp64\www\sisf2\index.php:18
[30-Sep-2022 17:49:00 UTC] PHP   3. nuImportLanguageFiles() C:\wamp64\www\sisf2\core\nusetuplibs.php:35
[30-Sep-2022 17:49:00 UTC] PHP   4. nuInstallException() C:\wamp64\www\sisf2\core\nusystemupdatelibs.php:488


I think the error occurs because the path that appears in the first line is not correct:
instead of

Code: Select all

C:\wamp64\www\sisf2\core/languages/ Dutch.sql
nuBuilder should generate the path something like this

Code: Select all

C:\wamp64\www\sisf2\core\languages\Dutch.sql
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Small error on fresh install or update

Unread post by kev1n »

Could you try the updated nusystemupdatelibs.php?
nusystemupdatelibs.zip
You do not have the required permissions to view the files attached to this post.
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Small error on fresh install or update

Unread post by gerese »

Hi, I tried your file: nusystemupdatelibs.php,
there seems to be a space in front of the Dutch.sql file name.
eroare update02.10.2022.jpg
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Small error on fresh install or update

Unread post by kev1n »

I don't understand where this space comes from. Is it perhaps already in the database?

What does the query

Code: Select all

SELECT `set_languages_included` FROM `zzzzsys_setup`;
return ?
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Small error on fresh install or update

Unread post by gerese »

Code: Select all

["Afrikaans","Arabic","Armenian","Catalan","Chinese","Czech","Danish", "Dutch","French","German","Greek","Hindi","Italian","Malay","Polish","Portuguese","Romanian","Russian","Spanish","Tamil","Vietnamese"]
eroare update03.10.2022.jpg
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Small error on fresh install or update

Unread post by kev1n »

That's strange - I don't see any space in nusystemupdatelibs.php, function nuImportLanguageFiles() after languages:

Code: Select all

$file = __DIR__ . DIRECTORY_SEPARATOR . 'languages'. DIRECTORY_SEPARATOR . $l[$i]. '.sql';
Maybe try changing the line to:

Code: Select all

$file = __DIR__ . DIRECTORY_SEPARATOR . trim('languages'. DIRECTORY_SEPARATOR . $l[$i]. '.sql');
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Small error on fresh install or update

Unread post by gerese »

I edit last post ...
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Small error on fresh install or update

Unread post by kev1n »

gerese wrote: Mon Oct 03, 2022 4:57 pm I edit last post ...
Well spotted, try removing that space
Post Reply