plz help: search not work any more

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2006, 10:28 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
the search was ok but i change my host and now the search not work, normal search and tags also,if i search nothing come in results !!

i fear it's php config in new host server my phpinfo Attached can any one help plz
Attached Files
File Type: rar phpinfo.rar (8.8 KB, 31 views)

Last edited by fwebz; 02-02-2006 at 12:06 AM.
Reply With Quote
  #2 (permalink)  
Old 02-01-2006, 11:06 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Are you searching for exact words that you know are in your stories? As I have mentioned before, Pligg is very picky about searches right now and will only return exact matches. This means that searching for "plig" would not return a result for "pligg", "pligg.com", "plig.com" or any other variation.
Reply With Quote
  #3 (permalink)  
Old 02-01-2006, 11:20 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
yes yes i search for exact words i even click on tags !!! no results just empty page !

it was work perfect befor moving to new server

i know register_globals is off in new server i use

PHP Code:
/*=================================================== 
    force to register_globals = on 
  ===================================================*/ 

  
if(!empty($_GET)) extract($_GET); 
  if(!empty(
$_POST)) extract($_POST); 
  if(!empty(
$_REQUEST)) extract($_REQUEST); 
  if(!empty(
$_COOKIE)) extract($_COOKIE); 
it's work for any script need register_globals = on but no luke with pligg so i think it's other prob

Last edited by fwebz; 02-01-2006 at 11:23 PM.
Reply With Quote
  #4 (permalink)  
Old 02-02-2006, 12:05 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
yaaaaaaaaaaay i fixed

in inadex.php i change

PHP Code:
$main_smarty->assign('request_search'$_REQUEST['search']); 
to

PHP Code:
$main_smarty->assign('request_search'$_POST['search']); 
$_POST work under register_globals = off but $_REQUEST not
Reply With Quote
  #5 (permalink)  
Old 02-02-2006, 12:32 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Thats intresting. Sounds like you'll have more problems because I know there is more code that uses $_REQUEST.
Reply With Quote
  #6 (permalink)  
Old 02-02-2006, 01:36 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
no Ash i do full test all ok just the search

but can i know why you use $_REQUEST not $_POST ??

$_POST more server friendly than $_REQUEST
Reply With Quote
  #7 (permalink)  
Old 02-02-2006, 01:54 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
I just did a search through the code and the results are.....

Search complete, found '$_REQUEST' 176 time(s). (30 files.)

We didn't do most of the $_REQUEST's, it was written that way by the original author.
Reply With Quote
  #8 (permalink)  
Old 02-02-2006, 01:59 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
you are right there is many $_REQUEST in code but it's not affect any thing but serach !

if i have more problems i can use "Replace All" in my editor

thanks Ash,
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Search Method 4 - Tags will not work hotsitez Questions and Comments 11 11-29-2008 08:54 PM
Chinese Search doesn't work plum Questions and Comments 7 06-11-2007 05:37 PM
Search doesnt work in ie fromto Questions and Comments 0 02-26-2006 09:36 PM
Search doesnt work gragland Questions and Comments 4 02-21-2006 01:46 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development