Fabrik 4.0 Zeta & Joomla 5.0.0: Search Problem

arief8992@gmail.com

Joomla & Fabrik Fan
I run Fabrik 4.0 Zeta & Joomla 5 works fine except if on Search of List if I enter only number will show up:
array_key_exists(): Argument #2 ($array) must be of type array, string given.

Any one has a solution? Please let me know. Thanks.
 
I am able to solve by setting Search all and Extended search all to Yes. Previous setting that had a problem, Search all was Yes and Extended was No.
 

Attachments

  • Yes.jpg
    Yes.jpg
    52.3 KB · Views: 6
Can you enable J! System Debug to get the error stack?

I have a J!5/Zeta test site and no problem with search all (without Extended).

What are your exact settings? Which elements did you select?
What do you mean with "if I enter only number"?
 
I have same error, i want search by date in a list
Field date in a SQL Table is in format Y-m-d
 

Attachments

  • Error 0.pdf
    70.3 KB · Views: 27
I use J 5.0.0 and Fabrikar 4.0 with attached setting, everything works fine except below condition
I put a parenthesis in the search "(" or ")", it will give error as below; I try to use #, . In order to reopen the list, I have to log out and log back in. Please find attached the call stack. Thank you.

The requested page can't be found.​

An error has occurred while processing your request.
You may not be able to visit this page because of:
  • an out-of-date bookmark/favourite
  • a mistyped address
  • a search engine that has an out-of-date listing for this site
  • you have no access to this page
Go to the Home Page
Home Page

If difficulties persist, please contact the website administrator and report the error below.
500 Fabrik has generated an incorrect query for the list "name of my list": <br />
 

Attachments

  • Call Stack.png
    Call Stack.png
    109 KB · Views: 29
  • Setting.png
    Setting.png
    22.8 KB · Views: 31
  • Parenthesis.png
    Parenthesis.png
    887 bytes · Views: 30
@arief8992@gmail.com
Searching for e.g ( in SearchAll seems to be an issue already since F3.
I don't think this is related to array_key_exists.

@gabriel.deluca
Please post screenshots, not files.


For array_key_exists error:
Can you try in
components\com_fabrik\models\element.php
modify line 1604 to
if (is_array($data) && array_key_exists('rowid',$data) && !empty($data['rowid'])) {

and report back?
 
@arief8992@gmail.com
Searching for e.g ( in SearchAll seems to be an issue already since F3.
I don't think this is related to array_key_exists.

@gabriel.deluca
Please post screenshots, not files.


For array_key_exists error:
Can you try in
components\com_fabrik\models\element.php
modify line 1604 to
if (is_array($data) && array_key_exists('rowid',$data) && !empty($data['rowid'])) {

and report back?
With this modification the error disappears, but the search only works with the
field4-Screenshot 2024-03-19 at 10-05-15 Fabrik editar elemento fecha - Sistema de Gestion Jubinar ...png plugin,
with the
jdate1-Screenshot 2024-03-19 at 09-59-50 Fabrik editar elemento fecha - Sistema de Gestion Jubinar ...png and
date 3-Screenshot 2024-03-19 at 10-04-12 Fabrik editar elemento fecha - Sistema de Gestion Jubinar ...pngplugins it does not bring the expected results

this is the search executed
0-Screenshot_20240319_100331.png
and this is the change made
2-Screenshot_20240319_100247.png
 

Attachments

  • 5-Screenshot 2024-03-19 at 10-09-24 auth-db689.hstgr.io _ 127.0.0.1 _ u537179665_jubinar _ 264...png
    5-Screenshot 2024-03-19 at 10-09-24 auth-db689.hstgr.io _ 127.0.0.1 _ u537179665_jubinar _ 264...png
    2.5 KB · Views: 20
Searching for a "string" in a date is tricky, dates are stored in SQL format, time UTC or local depending on your element settings.
(For Advanced Search All you can't use (j)date or id elements anyway).

Fabrik is trying to convert your search string for (j)date elements into a meaningful "BETWEEN" condition.
Your search string has to be in SQL format (no matter what your list date format is set to).

It's working on my site. But there may be timezone issues etc.
Enable FabrikDebug (in Fabrik Options/Debugging) and append &fabrikdebug=1 to your list URL.

In 'table:mergeJoinedData get ids' or 'list GetData...' you should see the generated query.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top