Jump to content


Photo
- - - - -

Error on Search results

error code search

1 reply to this topic

#1 King Awesome

King Awesome

Posted 13 April 2015 - 14:04

I receive this error when I use the search:

 

Warning: in_array() expects parameter 2 to be array, null given in /home/content/68/12156668/html/media/zoo/applications/jbuniversal/framework/models/jbmodel.filter.php on line 306

 

This is a link to the site that has the search: http://dev.rollease....full-collection

Attached Thumbnails

  • Screen Shot 2015-04-13 at 9.03.23 AM.png

  • 0

#2 SmetDenis

SmetDenis
  • Administrators
  • User rate: 139.4
  • posts: 16232
  • topics: 200

Posted 14 April 2015 - 07:54

Hi,

 

I think you should reindex database.

 

or try to replace this code

                    if (in_array($fieldName, $columns, true)) {
                        $select->order('tIndex.' . $fieldName . ' ' . $dir);
                    }

 

to 

                   if ($fieldName && $columns) {
                        if (in_array($fieldName, $columns, true)) {
                            $select->order('tIndex.' . $fieldName . ' ' . $dir);
                        }
                    }

 

here media/zoo/applications/jbuniversal/framework/models/jbmodel.filter.php ( ~ line 306 )

7ok9_200x0.png


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.






Also tagged with one or more of these keywords: error, code, search

Click to return to top of page in style!