Searchfunction on V1.2.8-20060904

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Search is 'off'
Error Log says:
[Tue Sep 05 13:32:15 2006] [error] [client 127.0.0.1] File does not exist: O:/Xampp/xampp/htdocs/test, referer: http://localhost/org/index.php?index
[Tue Sep 05 13:32:23 2006] [error] [client 127.0.0.1] File does not exist: O:/Xampp/xampp/htdocs/test, referer: http://localhost/org/index.php?index
there are only the Index-Level with a Article and Search-CP and another Level 'Test' with a Artikel with some Text in Summary and CP Text with some Text inside.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Check your local install, Firewall or whatever.

I have tested local with an abolute minimal install - search is working.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Another fresh installation, and seems doesn't work :?

In this page
http://sustia.netsons.org/index.php

searching for "rucola" no results, but there are several words in this page
http://sustia.netsons.org/index.php?id=1,2,0,0,1,0
Campeones del mundo!
Vegetables!
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I think I have it - seems I have forgotten the important table prefix for the new search query.

Check patch-F again and there file:
include/inc_front/content/cnt13.article.inc.php

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

It doesn't work. Three installations, three providers. No search result.

What's the trick?

[EDIT] After installing the new /include/inc_front/content/cnt13.article.inc.php it works very well :D :D [/EDIT]

Knut
Last edited by flip-flop on Tue 5. Sep 2006, 16:05, edited 1 time in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Oliver Georgi wrote:I think I have it - seems I have forgotten the important table prefix for the new search query.

Check patch-F again and there file:
include/inc_front/content/cnt13.article.inc.php

Oliver
Now it works perfectly :D
Campeones del mundo!
Vegetables!
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi all,
have to open again search topic.

including all patches,also G and put 3 results on a page and set {NAV:123}.
star from home.

get search results,also highlighted.

but:
when clicking on the number 2 or 3 (got 15 search results) i get redirected
to the index page.
in adress line i see:
http://www.domain.de/cms/index.php?such ... rchstart=3

do i miss something more?
does it works for you all?
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

would you please send me the file I have created for your problem - do you remember. The missing "="...

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

:oops:
damn i read about fixing this and overwrite it :-(

guess it was in default.inc.php these lines:

Code: Select all

function buildGlobalGET($return = '') {
	// build internal array containing all GET values
	// and remove session from this array
	$GLOBALS['_getVar'] = array();
	unset($_GET[session_name()]);
	if(is_array($_GET) && count($_GET)) {
		$GLOBALS['_getVar'] = $_GET;
	} elseif(!empty($_SERVER['QUERY_STRING'])) {
		$query = explode('&', $_SERVER['QUERY_STRING']);
		if(is_array($query) && count($query)) {
   			foreach($query as $value) {
   				list($key, $val) = explode('=', $value);
   				$GLOBALS['_getVar'][$key] = $val;
   			}
   		}
	}
	if($return == 'getQuery') {
		return returnGlobalGET_QueryString('htmlentities');
	}
}
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

send me your ftp login again - I will check it.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Prüfe mal gegen - sollte nun gehen. Habe das erneut umgebaut.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hallo Oliver,

super klappt nun prima.

War es der Codebereich den ich oben gepostet habe? damit ich mir die Datei sichere. Danke nochmals.

Thomas

EDIT: jo sieht ganz anders aus. OK die werde ich dann künftig einfügen wenn eine ergänzte/ geänderte default.inc.php erscheint.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Nee - die oben ist gurks. Habs Dir gerade eben geschrieben. Zur Erklärung für alle:

The above function helped in case PHP's internal GET detection can not handle index.php?alias - but "alias" will be missing in case of index.php?alias&get=1&get1=2 and so on. Then PHP global GET detects get and get1 but not alias.

I have implemented a better detection for it.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Kalaschnikow
Posts: 3
Joined: Mon 16. Jan 2006, 18:32

Post by Kalaschnikow »

Oliver Georgi wrote:Proof that there "search" off is disabled for categories too.

Oliver
Its "off", but no results...

Edit:
Patch G solves the problem! Thanks!
Post Reply