Fiter Error v.303

9 views
Skip to first unread message

Marco Stegani

unread,
Jan 27, 2024, 6:23:38 AMJan 27
to Xataface

HI
if after applying a filter you delete (selecting them from the list) all the records that satisfy the filter condition, it returns a blank page with this error (this doesn't happen with version 2):

Fatal error: Uncaught Error: Call to a member function getValue() on null in /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Application.php(4199) : eval()'d code:1 Stack trace: #0 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Application.php(4199): eval() #1 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/ActionTool.php(316): Dataface_Application->testCondition() #2 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Table.php(6191): Dataface_ActionTool->getActions() #3 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/ActionTool.php(82): Dataface_Table->getActions() #4 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/ActionTool.php(98): Dataface_ActionTool->_loadTableActions() #5 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Application.php(3513): Dataface_ActionTool->getAction() #6 /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Application.php(3857): Dataface_Application->handleRequest() #7 /web/htdocs/www.quindicizero.it/home/xataface303/Dat in /web/htdocs/www.quindicizero.it/home/xataface303/Dataface/Application.php(4199) : eval()'d code on line 1

Thank you

Steve Hannah

unread,
Jan 27, 2024, 9:15:07 AMJan 27
to xata...@googlegroups.com
Hmm.  Do you have any custom actions defined in your actions.ini file.  When you get this page, try turning on debug mode (add debug=1 to conf.ini) and refresh.  It might show you more information about which action is "choking".

Basically, what is happening is there is an action that has a "condition" directive that is assuming a non-empty result set, and is calling $record->getValue() on a null object.

--
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/8aa12c42-8082-404f-8c1f-bef7baf2fbebn%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.

Marco Stegani

unread,
Jan 27, 2024, 10:47:30 AMJan 27
to Xataface
This is certainly the reason for the error. But it should remain presenting an empty list and not an error page.

Steve Hannah

unread,
Jan 27, 2024, 10:50:23 AMJan 27
to xata...@googlegroups.com
Do you have any custom actions defined?

Marco Stegani

unread,
Jan 27, 2024, 1:52:43 PMJan 27
to Xataface
You're right, the error is caused by a custom action. Thanks and sorry.
Reply all
Reply to author
Forward
0 new messages