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.
Small error on fresh install or update Topic is solved
-
- 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
Hi,
An error appears during a new installation or update (on Wampserver)
An error appears during a new installation or update (on Wampserver)
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
-
- 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
Hi,
Yes, the file core/languages/Dutch.sql exist.
In the log file of the WAMP server I found this:
I think the error occurs because the path that appears in the first line is not correct:
instead of
nuBuilder should generate the path something like this
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
Code: Select all
C:\wamp64\www\sisf2\core\languages\Dutch.sql
nuBuilderForte .... BIG Like !!!
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Small error on fresh install or update
Could you try the updated nusystemupdatelibs.php?
You do not have the required permissions to view the files attached to this post.
-
- 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
Hi, I tried your file: nusystemupdatelibs.php,
there seems to be a space in front of the Dutch.sql file name.
there seems to be a space in front of the Dutch.sql file name.
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Small error on fresh install or update
I don't understand where this space comes from. Is it perhaps already in the database?
What does the query
return ?
What does the query
Code: Select all
SELECT `set_languages_included` FROM `zzzzsys_setup`;
-
- 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
Code: Select all
["Afrikaans","Arabic","Armenian","Catalan","Chinese","Czech","Danish", "Dutch","French","German","Greek","Hindi","Italian","Malay","Polish","Portuguese","Romanian","Russian","Spanish","Tamil","Vietnamese"]
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Small error on fresh install or update
That's strange - I don't see any space in nusystemupdatelibs.php, function nuImportLanguageFiles() after languages:
Maybe try changing the line to:
Code: Select all
$file = __DIR__ . DIRECTORY_SEPARATOR . 'languages'. DIRECTORY_SEPARATOR . $l[$i]. '.sql';
Code: Select all
$file = __DIR__ . DIRECTORY_SEPARATOR . trim('languages'. DIRECTORY_SEPARATOR . $l[$i]. '.sql');