Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2006, 09:28 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [RESOLVED] plz help: search not work any more

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, 10 views)

Last edited by fwebz; 02-01-2006 at 11:06 PM..
Reply With Quote
  #2 (permalink)  
Old 02-01-2006, 10:06 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,849
Thanks: 112
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ 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, 10:20 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
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 10:23 PM..
Reply With Quote
  #4 (permalink)  
Old 02-01-2006, 11:05 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
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-01-2006, 11:32 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Thats intresting. Sounds like you'll have more problems because I know there is more code that uses $_REQUEST.
__________________
- Ash
Reply With Quote
  #6 (permalink)  
Old 02-02-2006, 12:36 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
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, 12:54 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
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.
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 02-02-2006, 12:59 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Search Method 4 - Tags will not work hotsitez Bug Report 11 11-29-2008 07:54 PM
SEO (Search Engine Optimization) Yankidank Wiki Articles 23 12-02-2007 12:27 PM
Chinese Search doesn't work plum General Help 7 06-11-2007 04:37 PM
Search doesnt work in ie fromto General Help 0 02-26-2006 08:36 PM


Search Engine Friendly URLs by vBSEO 3.2.0