Advertisement:

Author Topic: 3.7.3 Search parameters question  (Read 2447 times)

frosticek

  • Hero Member
  • *****
  • Posts: 3948
3.7.3 Search parameters question
« on: June 06, 2017, 11:10:37 am »
Hello guys,
Has something changed on 3.7.3 regarding location parameters on search?

Does not work on 3.7.3
http://url.com/search/country,DZ

Does work on 3.6

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: 3.7.3 Search parameters question
« Reply #1 on: June 06, 2017, 12:32:48 pm »
quick test: works fine on my end

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: 3.7.3 Search parameters question
« Reply #2 on: June 06, 2017, 01:36:49 pm »
Works fine on my setup too. I don't remember modifying anything related to the search either (but it could happen)

Aficionado

  • Guest
Re: 3.7.3 Search parameters question
« Reply #3 on: June 06, 2017, 01:52:29 pm »
Works ok in my multi-country site.

Is something special i should look for ?

crymatisticos

  • Newbie
  • *
  • Posts: 25
Re: 3.7.3 Search parameters question
« Reply #4 on: June 06, 2017, 03:10:03 pm »
@Aficionado @_CONEJO
test this URLs
https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&country=DZ&region=782629

https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sCountry=Algeria&sRegion=Alger
 they are search request same region
for the first it doesn't return results and for the second it does

I only replaced
country=DZ  by sCountry=Algeria
region=782629 by sRegion=Alger
in the url

and by the way I've reinstalled Osclass as fresh but the same problem still exist

if you can show me how to modify search.php or other files so I can pass location strings rather than codes
« Last Edit: June 06, 2017, 03:13:28 pm by crymatisticos »

Aficionado

  • Guest
Re: 3.7.3 Search parameters question
« Reply #5 on: June 06, 2017, 03:17:56 pm »
I'm trying this on my 28 counties site:


https://www.website.com/search/sOrder,dt_pub_date/iOrderType,desc/country,FR/region,781333/city,Aignoz

and works great. Shows everything available.

Following your example it shoudln't work ? Am i getting this right ?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: 3.7.3 Search parameters question
« Reply #6 on: June 06, 2017, 03:18:54 pm »
Could you check your rewrite rules ?

Aficionado

  • Guest
Re: 3.7.3 Search parameters question
« Reply #7 on: June 06, 2017, 03:19:20 pm »
@Aficionado @_CONEJO
test this URLs
https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&country=DZ&region=782629

https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sCountry=Algeria&sRegion=Alger
 they are search request same region
for the first it doesn't return results and for the second it does

I only replaced
country=DZ  by sCountry=Algeria
region=782629 by sRegion=Alger
in the url

and by the way I've reinstalled Osclass as fresh but the same problem still exist

if you can show me how to modify search.php or other files so I can pass location strings rather than codes

What is that

"cookie-action-side,done"

in your urls ? If you have done custom work, then we can't follow your problem.


_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: 3.7.3 Search parameters question
« Reply #8 on: June 06, 2017, 03:30:14 pm »
forget about rewrite rules,


could you check your t_item_location table? is there anything on fk_c_country_code ? are you sure it was working before?

could you debug your SQL to see the real query of the search?

crymatisticos

  • Newbie
  • *
  • Posts: 25
Re: 3.7.3 Search parameters question
« Reply #9 on: June 06, 2017, 03:37:21 pm »

What is that

"cookie-action-side,done"

in your urls ? If you have done custom work, then we can't follow your problem.

@Aficionado
"cookie-action-side,done"  it a plugin related to zara theme i think it is used to remeber parameters like language ..etc

I've changed the theme to POP latest version

now retry with the URLs

https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&country=DZ&region=782629

https://rawajnet.com/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sCountry=Algeria&sRegion=Alger

the problem still exist

crymatisticos

  • Newbie
  • *
  • Posts: 25
Re: 3.7.3 Search parameters question
« Reply #10 on: June 06, 2017, 03:40:20 pm »
Could you check your rewrite rules ?

These are my rewrite rules
@_CONEJO
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

which are the ones in permalink configuration

crymatisticos

  • Newbie
  • *
  • Posts: 25
Re: 3.7.3 Search parameters question
« Reply #11 on: June 06, 2017, 03:45:36 pm »
I'm trying this on my 28 counties site:


https://www.website.com/search/sOrder,dt_pub_date/iOrderType,desc/country,FR/region,781333/city,Aignoz

and works great. Shows everything available.

Following your example it shoudln't work ? Am i getting this right ?

the link that you've provided return 404 error

my links returns different results for same search go on and check by yourself

the first generated by search button in the website the second I've modified the first generated url
« Last Edit: June 06, 2017, 03:47:37 pm by crymatisticos »

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: 3.7.3 Search parameters question
« Reply #12 on: June 06, 2017, 03:47:46 pm »

could you check your t_item_location table? is there anything on fk_c_country_code ? are you sure it was working before?

could you debug your SQL to see the real query of the search?

crymatisticos

  • Newbie
  • *
  • Posts: 25
Re: 3.7.3 Search parameters question
« Reply #13 on: June 06, 2017, 03:50:47 pm »
forget about rewrite rules,


could you check your t_item_location table? is there anything on fk_c_country_code ? are you sure it was working before?

could you debug your SQL to see the real query of the search?

apparently all values are Null in fk_c_country_code

and this is a screenshot of the table

Aficionado

  • Guest
Re: 3.7.3 Search parameters question
« Reply #14 on: June 06, 2017, 03:51:34 pm »
I'm trying this on my 28 counties site:


https://www.website.com/search/sOrder,dt_pub_date/iOrderType,desc/country,FR/region,781333/city,Aignoz

and works great. Shows everything available.

Following your example it shoudln't work ? Am i getting this right ?

the link that you've provided return 404 error

my links returns different results for same search go on and check by yourself

the first generated by search button in the website the second I've modified the first generated url

Of cource it returns 404, website.com is not a real url.....