Page 1 of 2

Small error on fresh install or update

Posted: Thu Sep 29, 2022 7:56 pm
by gerese
Hi,
An error appears during a new installation or update (on Wampserver)
error on install.gif
eroare update29.09.2022.jpg

Re: Small error on fresh install or update

Posted: Fri Sep 30, 2022 3:49 am
by kev1n
Does the file core/languages/Dutch.sql exist?

Re: Small error on fresh install or update

Posted: Fri Sep 30, 2022 8:15 pm
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

Re: Small error on fresh install or update

Posted: Sat Oct 01, 2022 5:17 pm
by kev1n
Could you try the updated nusystemupdatelibs.php?
nusystemupdatelibs.zip

Re: Small error on fresh install or update

Posted: Sun Oct 02, 2022 8:36 pm
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

Re: Small error on fresh install or update

Posted: Mon Oct 03, 2022 5:52 am
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 ?

Re: Small error on fresh install or update

Posted: Mon Oct 03, 2022 4:46 pm
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

Re: Small error on fresh install or update

Posted: Mon Oct 03, 2022 4:56 pm
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');

Re: Small error on fresh install or update

Posted: Mon Oct 03, 2022 4:57 pm
by gerese
I edit last post ...

Re: Small error on fresh install or update

Posted: Mon Oct 03, 2022 4:59 pm
by kev1n
gerese wrote: Mon Oct 03, 2022 4:57 pm I edit last post ...
Well spotted, try removing that space