Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 12:13:16 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149635 Posts in 21099 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Search & frontend.functions.php Problem  (Read 1455 times)
hellaz

Offline Offline

Posts: 4


« on: August 19, 2007, 10:15:49 PM »

Hello all,

i'm rather new to wb....but i know when to appreciate something good...and wb is very good.

I have tested it locally a few times with XAMPP and all was good.

In my first attempt to use it for publishing i got a rather strange problem with search.

It simply does not display at all....

All i get under http://mydomain.com/search/ is the following:

Code:
Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

Fatal error: page_content() [function.require]: Failed opening required 'search.php' (include_path='C:\Inetpub\vhosts\secure.myhostdomain.com\httpdocs') in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

I tried looking for a solution in the forum and although there seem to be a few trouble in general with the search function, i wasn't able to locate something that relates the frontend.functions. php line 213 and the search tool....

Line 213 in my frontend.functions. php which is exactly as the one posted on the wiki dimply displays            
Code:
require(PAGE_CONTENT);

at the end of the highlights searchresults code.

But it seems that it's not just results not being displayed, but not even the empty search form.

I've installed wb Version 2.6.7 on a windows 2003 host with MySQL version 5.0.37-community-nt, but it didn't seem to produce any other problems but this... Everything else works fine so far!

Most of the site contains UTF-8 greek content.

Any suggestions on how to resolve this....
Thanks a lot in advance!
Logged
hellaz

Offline Offline

Posts: 4


« Reply #1 on: August 20, 2007, 12:23:14 PM »

Hello all,

i'm rather new to wb....but i know when to appreciate something good...and wb is very good.

I have tested it locally a few times with XAMPP and all was good.

In my first attempt to use it for publishing i got a rather strange problem with search.

It simply does not display at all....

All i get under http://mydomain.com/search/ is the following:

Code:
Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

Fatal error: page_content() [function.require]: Failed opening required 'search.php' (include_path='C:\Inetpub\vhosts\secure.myhostdomain.com\httpdocs') in C:\Inetpub\vhosts\mydomain.com\httpdocs\framework\frontend.functions.php on line 213

I tried looking for a solution in the forum and although there seem to be a few trouble in general with the search function, i wasn't able to locate something that relates the frontend.functions. php line 213 and the search tool....

Line 213 in my frontend.functions. php which is exactly as the one posted on the wiki dimply displays            
Code:
require(PAGE_CONTENT);

at the end of the highlights searchresults code.

But it seems that it's not just results not being displayed, but not even the empty search form.

I've installed wb Version 2.6.7 on a windows 2003 host with MySQL version 5.0.37-community-nt, but it didn't seem to produce any other problems but this... Everything else works fine so far!

Most of the site contains UTF-8 greek content.

Any suggestions on how to resolve this....
Thanks a lot in advance!

Nobody has experienced anything similar...at least can anyone point in the right direction to find a solution?!?
Logged
doc
Guest
« Reply #2 on: August 20, 2007, 12:28:25 PM »

Hello,

upload all WB 2.6.7 files via FTP again (except folder install and the config.php).
Seems some files were not uploaded correct (seems PHP is missing a file).

Regards Christian
Logged
hellaz

Offline Offline

Posts: 4


« Reply #3 on: August 20, 2007, 12:36:07 PM »

I did try to upload all related files again already....
I reuploaded the whole search folder (3 files) and the framework folder (14 files)...
Wouldn't that be enough??
Is it perhaps something wrong with permission on a windows 2003 machine??

I'll try uploading it all...and let u know!
Logged
hellaz

Offline Offline

Posts: 4


« Reply #4 on: August 20, 2007, 04:07:03 PM »

Well i did upload everything once more but no luck whatsoever....

I even tried the repair_search.php posted in another thread, but nothing changed.

I still get:
Code:

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

Fatal error: page_content() [function.require]: Failed opening required 'search.php' (include_path='C:\Inetpub\vhosts\secure.eurovps.com\httpdocs') in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

I'm even considering removing the 4 form rows in the wbsearch table as it seems they caused trouble with search before (in other posts!!). Shall i try that?

I've included attached what i currently have in wbsearch.

Any suggestions guys??

Thanks again!
Logged
aussiepom

Offline Offline

Posts: 4


« Reply #5 on: September 09, 2007, 08:06:21 AM »

It looks similar to what I had a problem with.
I found that the database had not uploaded correctly so db was empty.
When I did a search I got the same error. check that you have some pages in the pages directory as well  as this also created the same error.
hope that helps.
Logged
ivetask

Offline Offline

Posts: 5


« Reply #6 on: January 01, 2008, 02:03:59 PM »

Have you already resolved the problem?

I was suprised by the same problem. I work on localhost, with PHP version 5.1.2. I guess the problem was not in FTP transfer (it is localhost, no FTP transfer).

The problem was: Warning: require(search.php) [function.require]: failed to open stream: No such file or directory in c:\program files\apache group\Apache\htdocs\wb\framework\frontend.functions.php on line 213

So I looked into file frontend.functions. php where I realised the function require() at 213 line takes an argument PAGE_CONTENT. This argument is defined in file wb\search\index.php on the line 41, this statement:
define('PAGE_CONTENT', 'search.php');
I rewrite the statement:
define('PAGE_CONTENT', WB_PATH.'\search\search.php');
so that argument PAGE_CONTENT contains a full address from the WB root into the search.php file. Now my SEARCH function works.

You know, you might have another problem or my solution might not be best but you may try it.

Good luck,

Ivetask




Well i did upload everything once more but no luck whatsoever....

I even tried the repair_search.php posted in another thread, but nothing changed.

I still get:
Code:

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

Warning: page_content(search.php) [function.page-content]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

Fatal error: page_content() [function.require]: Failed opening required 'search.php' (include_path='C:\Inetpub\vhosts\secure.eurovps.com\httpdocs') in C:\Inetpub\vhosts\karydis.com.gr\httpdocs\framework\frontend.functions.php on line 213

I'm even considering removing the 4 form rows in the wbsearch table as it seems they caused trouble with search before (in other posts!!). Shall i try that?

I've included attached what i currently have in wbsearch.

Any suggestions guys??

Thanks again!

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!