LetoDMS Community Forum
Error message when searching - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: Error message when searching (/showthread.php?tid=622)



Error message when searching - blaszta - 01-09-2013

When I try to search a document, this error messages appear:
(Before Header) Notice: Undefined index: fullsearch in D:\xampp\htdocs\letodms\op\op.Search.php on line 40
(Before result) Notice: Undefined offset: 0 in D:\xampp\htdocs\letodms\core\Core\inc.ClassDMS.php on line 598

I did activate the full text search, but I disabled it again (don't need it for now). How to hide this 2 error message?

Btw, the search result show just fine.


RE: Error message when searching - steinm - 01-09-2013

(01-09-2013, 02:18 PM)blaszta Wrote: When I try to search a document, this error messages appear:
(Before Header) Notice: Undefined index: fullsearch in D:\xampp\htdocs\letodms\op\op.Search.php on line 40
(Before result) Notice: Undefined offset: 0 in D:\xampp\htdocs\letodms\core\Core\inc.ClassDMS.php on line 598

I did activate the full text search, but I disabled it again (don't need it for now). How to hide this 2 error message?

Btw, the search result show just fine.

The first one is just due to lasy programming. Replace line 40 of op\op.Search.php by

PHP Code:
if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) { 

The second notice shouldn't appear unless the database query fails. Anyway replace that line with

PHP Code:
if ($resArr && isset($resArr[0]) && is_numeric($resArr[0]["num"]) && $resArr[0]["num"]>0) { 

I will fix both in 3.4.2

Thanks for reporting it.

Uwe


RE: Error message when searching - blaszta - 01-09-2013

Thanks, the error message disappear Smile