V6 does not have the lib/dedalo directory yet the installation instructions make use of it.
Is there something we can do about it?
lib/dedalo in V6
Hi Julian
Sorry, V6 is a beta and the installation instructions are not updated... but you only need to replace the V5 files with V6 (and copy your config to new config files).
The V6 directory structure is different from the previous structure, I think it's clearer now:
- config <-- the config files, previously in /dedalo/lib/dedalo/config
- core <-- al main components, previously /dedalo/lib/dedalo/
- install <-- same of previous versions
- lib <-- external libs (leaflet, paper, etc)
- publication <-- Public API Rest to connect to diffusion schema (public websites), previously /dedalo/lib/dedalo/publication
- shared <-- some parts used by working system (internal API) and diffusion system (public API), previously in different dirs inside /dedalo/lib/dedalo
- tools <-- specific extension code with specific functionality (as transcription, indexation, etc), previously in /dedalo/lib/dedalo/tools
I hope it helps...
Best
- Edited
One more thing! (very important thing)
If you are updating your V5 installation you will need to do the update of the database!
1 Go to Development menu
2 Find the "update data" block
3 And pass the script
you can read more here:
https://github.com/renderpci/dedalo/issues/51
Best!
- Edited
Thank you so much for your help!
When installing the V6 in-development version, I get the following errors in the web console when accessing Dédalo for the first time:
Uncaught SyntaxError: expected expression, got end of script -- environment.js.php:4:16
Uncaught (in promise) ReferenceError: DEDALO_CORE_URL is not defined -- data_manager.js:25:3
request http://localhost/dedalo/core/common/js/data_manager.js:25
<anonymous> http://localhost/dedalo/core/page/:79
<anonymous> http://localhost/dedalo/core/page/:121
DEDALO_CORE_URL
does indeed exist in the config file.
All paths are pointing to the correct locations and required libraries are present.
- Edited
Please, check your environment file in the browser (http://localhost/dedalo/core/common/js/environment.js.php) and verify if is loaded and parsed correctly and without errors.
You must to view something like this:
"use strict";
const page_globals={
"is_logged": true,
"dedalo_entity": "development",
"dedalo_version": "6.0.0_beta8.1664274788",
"dedalo_application_langs_default": "lg-eng",
"dedalo_application_lang": "lg-eng",
"dedalo_data_lang": "lg-eng",
"dedalo_data_nolan": "lg-nolan",
"dedalo_projects_default_langs": [
{
"label": "Spanish",
"value": "lg-spa"
},
{
"label": "Catalan",
"value": "lg-cat"
},
{
"label": "English",
"value": "lg-eng"
}
],
"dedalo_image_quality_default": "1.5MB",
"dedalo_av_quality_default": "404",
"dedalo_image_thumb_default": "thumb",
"mode": "list",
"tag_id": "",
"user_id": "-1",
"username": "root",
"full_username": "",
"is_global_admin": true,
"is_root": true,
"dedalo_protect_media_files": 0,
"DEDALO_NOTIFICATIONS": 0,
"DEDALO_PUBLICATION_ALERT": 0,
"fallback_image": "/dedalo/core/themes/default/0.jpg",
"locale": "es-ES",
"DEDALO_DATE_ORDER": "dmy",
"component_active": null,
"dedalo_db_name": "dedalo6_development",
"pg_version": "14.5 (Homebrew)",
"php_version": "8.1.10",
"php_memory": "16384M"
};
const DEDALO_CORE_URL="/dedalo/core",DEDALO_ROOT_WEB="/dedalo",DEDALO_TOOLS_URL="/dedalo/tools",SHOW_DEBUG=true,SHOW_DEVELOPER=true,DEVELOPMENT_SERVER=true,DEDALO_SECTION_ID_TEMP="tmp",DD_TIPOS={"DEDALO_SECTION_USERS_TIPO":"dd128","DEDALO_USER_PROFILE_TIPO":"dd1725","DEDALO_USER_NAME_TIPO":"dd132","DEDALO_USER_PASSWORD_TIPO":"dd133","DEDALO_FULL_USER_NAME_TIPO":"dd452","DEDALO_USER_EMAIL_TIPO":"dd134","DEDALO_FILTER_MASTER_TIPO":"dd170","DEDALO_USER_IMAGE_TIPO":"dd522","DEDALO_RELATION_TYPE_INDEX_TIPO":"dd96"};
const get_label={
"desglose": "Break down",
...
}
Hi Paco! Thank you so much for your response!
Here is what I have:
"use strict";
const page_globals = {
"is_logged": false,
"dedalo_entity": "my_dedalo",
"dedalo_version": "6.0.0_beta7",
"dedalo_application_langs_default": "lg-spa",
"dedalo_application_lang": "lg-spa",
"dedalo_data_lang": "lg-spa",
"dedalo_data_nolan": "lg-nolan",
"dedalo_projects_default_langs": [{
"label": "Castellano",
"value": "lg-spa"
}, {
"label": "Catalan",
"value": "lg-cat"
}, {
"label": "English",
"value": "lg-eng"
}, {
"label": "French",
"value": "lg-fra"
}],
"dedalo_image_quality_default": "1.5MB",
"dedalo_av_quality_default": "404",
"dedalo_image_thumb_default": "thumb",
"mode": "list",
"tag_id": "",
"user_id": null,
"username": null,
"full_username": null,
"is_global_admin": null,
"is_root": false,
"dedalo_protect_media_files": 0,
"DEDALO_NOTIFICATIONS": 0,
"DEDALO_PUBLICATION_ALERT": 0,
"fallback_image": "/dedalo/core/themes/default/0.jpg",
"locale": "es-ES",
"DEDALO_DATE_ORDER": "dmy",
"component_active": null
};
const DEDALO_CORE_URL = "/dedalo/core",
DEDALO_ROOT_WEB = "/dedalo",
DEDALO_TOOLS_URL = "/dedalo/tools",
SHOW_DEBUG = false,
SHOW_DEVELOPER = false,
DEVELOPMENT_SERVER = false,
DEDALO_SECTION_ID_TEMP = "tmp",
DD_TIPOS = {
"DEDALO_SECTION_USERS_TIPO": "dd128",
"DEDALO_USER_PROFILE_TIPO": "dd1725",
"DEDALO_USER_NAME_TIPO": "dd132",
"DEDALO_USER_PASSWORD_TIPO": "dd133",
"DEDALO_FULL_USER_NAME_TIPO": "dd452",
"DEDALO_USER_EMAIL_TIPO": "dd134",
"DEDALO_FILTER_MASTER_TIPO": "dd170",
"DEDALO_USER_IMAGE_TIPO": "dd522",
"DEDALO_RELATION_TYPE_INDEX_TIPO": "dd96"
};
const get_label =
One of the errors was the EOF caused by the last line I suppose. And the other one was chained because of it I think.
Hi Julian
What PHP, Apache versions are you using?
Best
Hi Julian,
I added missing js lang files which you don't seem to have.
You can get it from https://github.com/renderpci/dedalo/tree/v6_developer/core/common/js/lang
We have fixed the .gitignore bug.
Thanks
- Edited
Good afternoon!
I am running PHP 8.1.10 and Apache 2.4.54.
I added the language files and now there appears to be an issue with the database query. I created the database and used pg_restore as explained in the installation instructions.
The website says: Server response error: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Here are the Apache logs:
[Wed Sep 28 14:51:59.470650 2022] [mpm_prefork:notice] [pid 3465] AH00163: Apache/2.4.54 (Unix) PHP/8.1.10 configured -- resuming normal operations
[Wed Sep 28 14:51:59.470994 2022] [core:notice] [pid 3465] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd -D FOREGROUND'
[Wed Sep 28 14:52:17.895592 2022] [php:notice] [pid 3472] [client 127.0.0.1:49561] ERROR: <span class='error'>Ops.. [Error]2 pg_query(): Query failed: ERROR: column &quot;properties&quot; does not exist\nLINE 1: ...en&quot;,&quot;tld&quot;,&quot;traducible&quot;,&quot;relaciones&quot;,&quot;propiedades&quot;,&quot;propertie...\n ^</span><pre>Array\n(\n [type] => 2\n [message] => pg_query(): Query failed: ERROR: column "properties" does not exist\nLINE 1: ...en","tld","traducible","relaciones","propiedades","propertie...\n ^\n [file] => /Users/pythagoras/Sites/dedalo/core/db/class.RecordDataBoundObject.php\n [line] => 183\n)\n</pre>, referer: http://localhost/dedalo/core/page/no-referrer
[Wed Sep 28 14:52:17.895646 2022] [php:notice] [pid 3472] [client 127.0.0.1:49561] ERROR: <span class='error'>Ops.. [Error]1024 Error Processing Request Load</span><pre>Array\n(\n [type] => 1024\n [message] => Error Processing Request Load\n [file] => /Users/pythagoras/Sites/dedalo/core/db/class.RecordDataBoundObject.php\n [line] => 185\n)\n</pre>, referer: http://localhost/dedalo/core/page/no-referrer
Here are the tables I have in my dedalo db:
List of relations
Schema | Name | Type | Owner
--------+-----------------------+-------+------------
public | jer_dd | table | pythagoras
public | main_dd | table | pythagoras
public | matrix | table | pythagoras
public | matrix_activities | table | pythagoras
public | matrix_activity | table | pythagoras
public | matrix_counter | table | pythagoras
public | matrix_counter_dd | table | pythagoras
public | matrix_dataframe | table | pythagoras
public | matrix_dd | table | pythagoras
public | matrix_descriptors_dd | table | pythagoras
public | matrix_hierarchy | table | pythagoras
public | matrix_hierarchy_main | table | pythagoras
public | matrix_indexations | table | pythagoras
public | matrix_langs | table | pythagoras
public | matrix_layout | table | pythagoras
public | matrix_layout_dd | table | pythagoras
public | matrix_list | table | pythagoras
public | matrix_notes | table | pythagoras
public | matrix_notifications | table | pythagoras
public | matrix_profiles | table | pythagoras
public | matrix_projects | table | pythagoras
public | matrix_stat | table | pythagoras
public | matrix_structurations | table | pythagoras
public | matrix_test | table | pythagoras
public | matrix_time_machine | table | pythagoras
public | matrix_updates | table | pythagoras
public | matrix_users | table | pythagoras
public | relations | table | pythagoras
- Edited
Hi Julian
Upsss, the version of the database is too old in the install directory of the V6, I updated the install DDBB with the last version of V5 (5.8.2) that it's compatible with the v6, (you will need to update data in "Development" menu")
But we will need a clean version of the v6 database to be installed from scratch...
Added to the "to do" list...
You will need to delete your actual DDBB and restore (pg_restore) with the new install bd version.
Best