Search Feature Hangs On White Page When I Try to Use it!

Search Feature Hangs On White Page When I Try to Use it!  Can someone give me some advice? Is this a common issue? If not, should I try to get the search.php file from somewhere else.    I am currently running on 7.0.7.

Thanks!

 

Racquel

Quote · 5 Feb 2012

Racquel,

 

A solid white screen normally happens when there is a php error but display errors is turned off. Turn on display errors or check to see if an error_log file was created anywhere.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 5 Feb 2012

Hi:

Thanks mscott.  I am sorry, I am not a developer, but try to fix things now and then.

Where do I turn on display errors?

Thanks!


Racquel

p.s. In the meantime, I will try to figure out where.

Quote · 7 Feb 2012

okay. I found it in the php.ini file. When I tested it on my site, I got this result:

Warning: require_once(/home/rocky/public_html/modules//inc/util.php) [function.require-once]: failed to open stream: No such file or directory in /home/rocky/public_html/modules/boonex/sites/classes/BxSitesSearchResult.php on line 446

Fatal error: require_once() [function.require]: Failed opening required '/home/rocky/public_html/modules//inc/util.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/rocky/public_html/plugins/phpids/') in /home/rocky/public_html/modules/boonex/sites/classes/BxSitesSearchResult.php on line 446

Does this mean that util.php cannot be located? If this is the case, it also says on the 2nd paragraph to include path (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/rocky/public_html/plugins/phpids/').  Do I have to add this?

Thanks!

Racquel

Quote · 7 Feb 2012

Hello 

Yes, you are right it cannot find util.php file, but it tries to find it in a strange place modules//inc folder. Looks like it omitted vendor's and module's folders or so. May be you've done some custom modifications in Sites module or incorrectly installed/uninstalled some module related to Sites. I checked non-modified BxSitesSearchResult.php file and it doesn't have line number 446.

 

okay. I found it in the php.ini file. When I tested it on my site, I got this result:

Warning: require_once(/home/rocky/public_html/modules//inc/util.php) [function.require-once]: failed to open stream: No such file or directory in /home/rocky/public_html/modules/boonex/sites/classes/BxSitesSearchResult.php on line 446

Fatal error: require_once() [function.require]: Failed opening required '/home/rocky/public_html/modules//inc/util.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/rocky/public_html/plugins/phpids/') in /home/rocky/public_html/modules/boonex/sites/classes/BxSitesSearchResult.php on line 446

Does this mean that util.php cannot be located? If this is the case, it also says on the 2nd paragraph to include path (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/rocky/public_html/plugins/phpids/').  Do I have to add this?

Thanks!

Racquel

 

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 8 Feb 2012

check the file which require util.php there must be a mistake in the code it should be

require_once( BX_DIRECTORY_PATH_ROOT . 'inc/util.php' );

so much to do....
Quote · 8 Feb 2012

Thanks everyone, but I still could fix it.  :(   I have a file that is in:

/public_html/inc/utils.inc.php  <--  Could this be where line 446 should be looking? Is util.php written as a mistake in that code, or are they totally different files?

Yes, I've had modifications to my site.  I am just not sure how to read that file or do anything that's going to mess something up. I guess I couldn't just get just that file from somewhere so that the code can be right.  Even if I did, there wouldn't be any telling if it will work right.

Does someone want to help me? I'll pay them. Just message me.  Is this where I should ask? Sorry if it's not.  I didn't get a set of instructions on where to post things.

It should be a simple fix, but like I said I am not a developer. I got the site and have had it modified by developers because love the interface. 

Thanks everyone!

Racquel

P.s. I can attach both the utils.inc.php and the BxSitesSearchResult.php.  I couldn't find the file util.php for line 446.


Quote · 8 Feb 2012

just attach BxSitesSearchResult.php and if it doesn't help than pm me i will try to help you. No need to pay.

so much to do....
Quote · 8 Feb 2012

Okay, here is the file.

THANKS SO MUCH!  :)

Racquel

BxSitesSearchResult.php · 19.7K · 97 downloads
Quote · 8 Feb 2012

File modules/boonex/sites/classes/BxSitesSearchResult.php

Check this code, Dol.7.0.Beta to Dol.7.0.2

function getSitesMain()
    {
        if ($GLOBALS['oBxSitesModule'])
        {
           return $GLOBALS['oBxSitesModule'];
        } else {
            $aModule = db_arr ("SELECT * FROM `sys_modules` WHERE `title` = 'Sites Module' AND `class_prefix` = 'BxSites' LIMIT 1");
            require_once (BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/inc/util.php');
            bx_sites_import('Template', $aModule);
            bx_sites_import('Config', $aModule);
            bx_sites_import('Module', $aModule);
            $GLOBALS['oBxSitesModule'] = new BxSitesModule($aModule);
            return $GLOBALS['oBxSitesModule'];
        }       
    }

 

Dol.7.0.3 and up

function getSitesMain()
    {
        return BxDolModule::getInstance('BxSitesModule');
    }

Quote · 9 Feb 2012

A MILLION THANK YOUS FOR ALL OF YOUR HELP. 

I am so happy to tell you, it fixed and couldn't do it without the chain of events below.  I am currently running 7.0.7  :)

mscott - help define in layman's terms and showed me how to display the error to figure it out
AntonLV - helped to define what the issue was
Prashank25- advised me to check the code and told me there's no need to pay for this advice  :)
okweb-showed me where to find the code and change it

These chain of events helped to fix the issue.  You all are the best!

Quote · 9 Feb 2012

sorry i was not here to reply but its good that your problem is solved...:)

Good luck

so much to do....
Quote · 9 Feb 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.