Hi Steve
Yep I've tried complete fresh pulls from github. followed by a wipe of templates_c, webbrowser cache flush and forced reload..
I must admit I've not run the "installer" part as I had an existing db I was wanting to use
so simply grabbed the site_skeleton folder and created a new instance.
but I believe those parts are all thats needed? the installer stuff doesn't create any additional stuff?
I've got two changes that I made to work around some php warnings:
php version is 8.0.20
********************************************************************************
diff --git a/Dataface/ApplicationDelegateClass.php b/Dataface/ApplicationDelegateClass.php
old mode 100644
new mode 100755
diff --git a/Dataface/Relationship.php b/Dataface/Relationship.php
index dad8f39..c6a1791 100644
--- a/Dataface/Relationship.php
+++ b/Dataface/Relationship.php
@@ -1814,7 +1814,7 @@ class Dataface_Relationship {
// Assert (count($fields) == 1 => $value !== null )
// Assert (count($fields) == 2 => $value === null )
- $label = ( $label ? $label : $fields[0] );
+ $label = ( $label ? $label : @$fields[0] );
// Obtain the label for these columns. If there are 2 columns, they must have the same label
foreach ( $fields as $field ){
if ( !isset( $labels[$field] ) ) $labels[$field] = $label;
diff --git a/Dataface/SearchForm.php b/Dataface/SearchForm.php
index 72c5931..e885728 100644
--- a/Dataface/SearchForm.php
+++ b/Dataface/SearchForm.php
@@ -165,6 +165,7 @@ class Dataface_SearchForm extends HTML_QuickForm {
foreach ( $this->_fields as $name => $field ){
$table =& $this->_table;
if ( $this->_table->isPassword($name) ) continue;
+ if ( empty($field['visibility']['find']) ) continue;
if ( @$field['visibility']['find'] == 'hidden') continue;
// add the field to the form
$widget = $field['widget'];
********************************************************************************
apart from that the xataface folder is whats in github.
gits not showing any additional changes or untracked files in the xataface folder.
This is the request sequence for a load of index.php where I only have the single table enabled for the project.
127.0.0.1 - - [09/Feb/2023:16:43:10 +0800] "GET /equipment/index.php HTTP/1.1" 200 130542
127.0.0.1 - - [09/Feb/2023:16:43:44 +0800] "GET /equipment/index.php HTTP/1.1" 200 130535
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/plone.css?v=3856 HTTP/1.1" 200 101370
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/css/xataface/fab.css?v=3856 HTTP/1.1" 200 2432
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/js/jquery.packed.js?v=3856 HTTP/1.1" 200 96872
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/plone_javascripts.js?v=3856 HTTP/1.1" 200 31523
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/index.php?v=3856&-action=js&--id=core.js-18cd559d9115baa34d2aa9c66c9109a4 HTTP/1.1" 200 22937
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/table.gif HTTP/1.1" 200 919
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/recycle.gif HTTP/1.1" 200 1028
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/view.gif HTTP/1.1" 200 893
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/edit.gif HTTP/1.1" 200 879
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/logo-square.svg HTTP/1.1" 200 1969
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/delete.gif HTTP/1.1" 200 893
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/images/bullet.gif HTTP/1.1" 200 50
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /equipment/xataface/fonts/MaterialIcons-Regular.woff2 HTTP/1.1" 200 44300
127.0.0.1 - - [09/Feb/2023:16:43:46 +0800] "GET /favicon.ico HTTP/1.1" 404 196
127.0.0.1 - - [09/Feb/2023:16:50:30 +0800] "GET /equipment/index.php?-table=BoardTypes HTTP/1.1" 200 130520
Guessing the bit I've highlighted in red is whats causing the exception? somehow..
Contents of that file are what proceeds the error I indicated before.
ie the
<b>Fatal error</b>: No template found for action 'js'.On line 48 of file /var/www/equipment3.0/xataface/actions/default.php in function printStackTrace()
is on the next line as far as the uncaught exception error in firefox goes..
Hmm confused...
I think I need to turn on some php debugging via xdebug or something..
.