Error performing search

Good morning,

 

When I place a search on my site it returns the following error:

Fatal error: Call to a member function getUri () on a non-object in / home / canal / public_html / canaldagente / inc / classes / BxDolTextSearchResult.php on line 51

Link: http://canaldagente.com/canaldagente/searchKeyword.php?keyword=ola

Anyone know how to solve?

 

Sincerely.

Quote · 23 Apr 2012

well its strange and this can't happened without doing something in files. The best guess would be just post the code near the line 51

so much to do....
Quote · 23 Apr 2012

<?php

 

/***************************************************************************

 

*                            Dolphin Smart Community Builder

 

*                              -------------------

 

*     begin                : Mon Mar 23 2006

 

*     copyright            : (C) 2007 BoonEx Group

 

*     website              : http://www.boonex.com

 

* This file is part of Dolphin - Smart Community Builder

 

*

 

* Dolphin is free software; you can redistribute it and/or modify it under

 

* the terms of the GNU General Public License as published by the

 

* Free Software Foundation; either version 2 of the

 

* License, or  any later version.

 

*

 

* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;

 

* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

* See the GNU General Public License for more details.

 

* You should have received a copy of the GNU General Public License along with Dolphin,

 

* see license.txt file; if not, write to marketing@boonex.com

 

***************************************************************************/

 

 

 

bx_import('BxDolModule');

 

bx_import('BxTemplSearchResultText');

 

 

 

class BxDolTextSearchResult extends BxTemplSearchResultText {

 

var $aCurrent = array(

 

'name' => '',

 

'title' => '',

 

'table' => '',

 

'ownFields' => array('uri'),

 

'searchFields' => array('caption', 'content', 'tags', 'categories'),

 

'restriction' => array(

 

'active1' => array('value' => '1', 'field' => 'status', 'operator' => '<>'),

 

'active2' => array('value' => '2', 'field' => 'status', 'operator' => '<>'),

 

'caption' => array('value' => '', 'field' => 'caption', 'operator' => 'like'),

 

'content' => array('value' => '', 'field' => 'content', 'operator' => 'like'),

 

'tag' => array('value' => '', 'field' => 'tags', 'operator' => 'against'),

 

'category' => array('value' => '', 'field' => 'categories', 'operator' => 'against')

 

),

 

'paginate' => array('perPage' => 4, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1),

 

'sorting' => 'last'

 

);

 

 

 

var $_oModule;

 

 

 

function BxDolTextSearchResult(&$oModule) {

 

parent::BxTemplSearchResultText();

 

 

 

$this->_oModule = $oModule;

 

 

 

$sModuleUri = $this->_oModule->_oConfig->getUri();

 

$this->aCurrent['name'] = 'bx_' . $sModuleUri;

 

$this->aCurrent['title'] = '_' . $sModuleUri . '_lcaption_search_object';

 

        $this->aCurrent['table'] = $this->_oModule->_oDb->getPrefix() . 'entries';

 

}

 

 

 

function displaySearchUnit($aData) {

 

   return $this->_oModule->_oTemplate->displayList(array(

 

            'sample_type' => 'search_unit',

 

            'viewer_type' => 0,

 

            'uri' => $aData['uri']

 

   ));

 

}

 

 

 

function displayResultBlock() {

 

   $sResult = parent::displayResultBlock();

 

 

 

   $sModuleUri = $this->_oModule->_oConfig->getUri();

 

        if($this->aCurrent['paginate']['totalNum'] == 0)

 

            $sResult = MsgBox(_t('_' . $sModuleUri . '_msg_no_results'));

 

 

 

        return $sResult;

 

}

 

 

 

function addCustomParts() {

 

   parent::addCustomParts();

 

 

 

   $this->_oModule->_oTemplate->addCss(array('view.css'));

 

}

 

 

 

function getAlterOrder() {

 

return array('order' => 'ORDER BY `when` DESC');

 

}

 

}

 

?>

Quote · 24 May 2012

Help me?

Quote · 24 May 2012

Did you made any change to your site after that this error came up?

EDIT: I am asking for any change, don't think it doesn't relates so don''t mention it. Just any small little things also.

so much to do....
Quote · 24 May 2012
I efetuei most other changes unrelated to this file.
The changes that I have compared the addition of the php block.
I did not make any changes recalling more.
Do you have any idea what could be?
Since replacing the file and did not work, replace the files that already has a relationshipwith him and did not work.
Quote · 28 May 2012

Help me!

Quote · 1 Jun 2012

I have the same problem. Yesterday was everything good.

MfG Kurando
Quote · 20 Jun 2012

Yes! I know how to solve this problem. You must install the modules, which support the search-mod.

I install the article- and news-module and then the problem was solved.

 

PS: I'm from Germany; my English isn't very good.

MfG Kurando
Quote · 21 Jun 2012

i have same error any one help

Quote · 29 Jun 2012

http://www.vng.org.pk/blog/searchKeyword.php?type=bx_photos

 

 

plz help me

Quote · 29 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.