Search feature (on top of column) is no longer available

79 views
Skip to first unread message

Hélène et Pierrick R.

unread,
Aug 20, 2020, 4:50:34 AM8/20/20
to Xataface
Hi Steve,

With the recent release of Xataface, it seems that the Search feature, previously available on top of each column, has now disappeared.

Have you identified this issue on your side?

Thanks
old.PNG
new.PNG

Steve Hannah

unread,
Aug 20, 2020, 7:39:04 AM8/20/20
to xata...@googlegroups.com
Check your installation files as this is working for me in the latest from github.  Try clearing out your templates_c directory, and clearing your browser cache.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/ba896a81-ec68-4999-beea-92152d817409o%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.

Hélène et Pierrick R.

unread,
Aug 20, 2020, 9:09:10 AM8/20/20
to Xataface
Steve,

thanks for your feedback.
I tried that before posting the message actually (clear template_c + hard reload).
However, I made the test with an already customized Xataface website.
Then, as you confirm it's working for you, I will check file by file, in order to see which one causes this bug.
I'll keep you posted;

Thanks again,
Pierrick

Steve Hannah

unread,
Aug 20, 2020, 9:59:21 AM8/20/20
to xata...@googlegroups.com
You should start with the chrome developer console's network tab.  Probably there is a network error when it tries to load this image.  Look for network erors there.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.

air drummer

unread,
Aug 22, 2020, 3:45:36 PM8/22/20
to Xataface
not working for me either, steve...just uploaded latest from github, wiped templates_c, emptied cache, no column search:-\ inspecting the html reveals nothing is there to load, so not a network issue:-\

btw, when did the responsive css get added? it is more usable on a smartphone, but how do u specify the info appearing in the resultlist?

and none of the ellipsis pulldowns work, nor do the filter & sort links...maybe these errors have something to do with it?

ReferenceError: jQuery is not defined  index.php:1:792
TypeError: window.xataface.list is undefined index.php:1:1

air drummer

unread,
Aug 22, 2020, 3:50:38 PM8/22/20
to Xataface
ah, in the mobile listing, there is a <div class="mobile-description"> which in my case is the homeowner's first name...how do i get it to display something useful in the listing, such as dues outstanding?-)

air drummer

unread,
Aug 22, 2020, 4:00:34 PM8/22/20
to Xataface
also, what is the blank column row-actions-header/cell used for? i've none-displayed it in my app.css, which works under waterfox & safari, but not under firefox:-\

Message has been deleted

hp.ros...@gmail.com

unread,
Oct 8, 2020, 11:01:52 AM10/8/20
to Xataface
Hi All,
I've just realized that I did not provide my feedback on this.
Indeed, clearing the browser (Chrome) cache, it solved the issue.
Thanks again,
Pierrick 

rtre...@tresar-electronics.com.au

unread,
Nov 24, 2022, 2:45:29 AM11/24/22
to Xataface
Sorry to reply to an old thread, but I'm having the same problem.
The small Magnifying glass for column search is not showing up.

I'm upgrading an old xataface instance
So I setup the root level folder with
conf.db.ini.php
conf.ini.php
index.php
tables/
templates_c/
Web.config
xataface/   << cloned and checked out at tag 3.0.2

files copied from the site_skeleton folder and updated..

Now everything seems to load and I can browse the tables etc.
The little sort icon is in the column headers, but not the magnifying glass..

I'm a bit lost as to why this is.
When loading the pages I'm seeing a 500 error when loading the following item
index.php?v=3856&-action=js&--id=core.js-18cd...hex blah hex..a4   
Now this cached file does exist in the template_c folder
and if I try to manually grab it then it is retrieved but I still se a 500 error?
Is this just a cache miss locally that generates the 500 error?

I can't even see how it's meant to get inserted? css?

Any hints as to where I could start tracing the problem down

Cheers

RT

Steve Hannah

unread,
Nov 24, 2022, 10:53:23 AM11/24/22
to xata...@googlegroups.com
After updating Xataface it is a good idea to clear out the templates_c directory.  That could be behind strange problems like this.


--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
Message has been deleted

rtre...@tresar-electronics.com.au

unread,
Feb 7, 2023, 11:58:58 PM2/7/23
to Xataface
Hi Steve
   Sorry thought I replied to this and just came back to check for replies to notice my reply isn't in the history?

I'm still having problems with this, the wiping of the templates_c directory did fix an issue where the "find" pages weren't loading.
I think some of my early problems may have stemmed from a new "feature" in RHEL called fapolicyd which was stopping edits of files even if I owned them, sigh.

The magnifying glass appears to be inserted by javascript, but I've just noticed there appears to be an error getting reported on the inspection console

if(typeof(XataJax)!="undefined")XataJax.ready();<br />
<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()
<br>On line 3715 of file /var/www/equipment3.0/xataface/Dataface/Application.php in function handle(array(array(js,js)))
<br>On line 3908 of file /var/www/equipment3.0/xataface/Dataface/Application.php in function handleRequest()
<br>On line 3743 of file /var/www/equipment3.0/xataface/Dataface/Application.php in function _display(,)
<br>On line 12 of file /var/www/equipment3.0/index.php in function display()
<br> in <b>/var/www/equipment3.0/xataface/actions/default.php</b> on line <b>48</b><br />

So possibly the javascript that's meant to do this isn't being run?
I've tried working out what could be causing this error to be reported but running out of ideas..

Cheers
  Richard

Steve Hannah

unread,
Feb 8, 2023, 2:43:50 AM2/8/23
to xata...@googlegroups.com
Sounds like there may be a problem with your xataface install.  Missing files or permissions.  Try a clean xf install.

rtre...@tresar-electronics.com.au

unread,
Feb 9, 2023, 4:33:35 AM2/9/23
to Xataface
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..

.
Reply all
Reply to author
Forward
0 new messages