Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Search not working anymore...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-02-2003, 08:09 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default Search not working anymore...

Hi,

Something strange happened...

We haven't changed anything in the back end of our shop, but since a few days the search funtion isn't working anymore... or at least, it's not returning any results!!! And it worked like a charm before.

This is the site I'm talking about: http://www.posters-affiches.com

I don't know if anyone has had the same problem, but I hope someone has a solution.

Thanks in advance,
Guytje
Reply With Quote
  #2  
Old 04-02-2003, 08:33 AM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

I looked at the site an noticed two things...

(1) You have an error on the page. Check it out in IE and you will see the error in the lower lefthand corner.

(2) Try changing your action back to:
Code:
action="../customer/search.php"

If all esle fails try reuploading your search.php file. It may have been corrupted.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat]
Reply With Quote
  #3  
Old 04-02-2003, 08:58 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default hmmmm... Something with substring...

This is really weird:

When I do a search, the result automatically generates a

?PHPSESSID=c1aacfb728c5a2d87fd7428bc66fa12b&substr ing=

and then the substring... This should not be. It should be something like:

http://www.posters-affiches.com/shop/customer/search.php?substring=

Which works like a charm!

Any idea???

Thanks,
Guy
Reply With Quote
  #4  
Old 04-02-2003, 09:03 AM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

Na, that session ID is normal. It works fine on my site. I am betting your search.php file is corrupted.

Just a guess.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat]
Reply With Quote
  #5  
Old 04-02-2003, 11:39 PM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default Can't be...

Well, I don't think that's true, because:

http://www.posters-affiches.com/shop/customer/search.php?substring=

works fine

But

http://www.posters-affiches.com/shop/customer/search.php?PHPSESSID=c1aacfb728c5a2d87fd7428bc66fa 12b&substring=

Doesn't yield any results!

Any idea?
Me
Reply With Quote
  #6  
Old 04-03-2003, 07:35 AM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

Since you haven't changed anything on the backend, I still think your search.php file is corrupted, but that's just a guess.

I would contact x-cart, if you are still under their support, they can fix it for you.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat]
Reply With Quote
  #7  
Old 04-03-2003, 08:40 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default thanks!

I did it, and they had the matter fixed within a few hours! Am still at a loss about what the problem was...

But thanks for your concern.
Cheers,
Guy
Reply With Quote
  #8  
Old 04-03-2003, 08:50 AM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

Guy,

Excellent news. Looks like that session ID stayed in the URL after all.

If you are curious about the problem, email them back and ask for an explanation. It can be a tremendous help for any future occurences, besides I am very interested in their answer.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat]
Reply With Quote
  #9  
Old 04-03-2003, 11:12 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default Will do!

Keep you posted!



G.
Reply With Quote
  #10  
Old 04-05-2003, 06:24 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default fixed...

Well, this is what they did:

$ have replaces the following lines in customer/search.php:

================================
$tmp=strstr($QUERY_STRING, "XCARTSESSID=");
if (!empty($tmp))
$QUERY_STRING=ereg_replace("XCARTSESSID=([0-9a-zA-Z]*)", "", $QUERY_STRING);

if(!empty($QUERY_STRING)) {
================================

with the following one line:

if(isset($substring)) {

Am don't know what/how... but it works like a charm

Thanks still for the help.
Cheers,
Guy[/b]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:00 PM.

   

 
X-Cart forums © 2001-2020