Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Search not working for non-latin chars #635

Closed
djokerat opened this issue Dec 30, 2016 · 11 comments
Closed

Search not working for non-latin chars #635

djokerat opened this issue Dec 30, 2016 · 11 comments
Labels
Milestone

Comments

@djokerat
Copy link

djokerat commented Dec 30, 2016

after update to1.5...
Click on a tag to a product
www.webpage.com/product/search?tag=tag name
or
www.webpage.com/product/search?tag=tag
redirect 404

how to fix it?

@syntaxerror
Copy link
Contributor

Provide a real URL, real tags, and some system info please.

System information: https://arastta.org/docs/user-manual/tools/system-information
Arastta settings (especially SEO): https://arastta.org/docs/user-manual/system/settings/seo

@djokerat
Copy link
Author

djokerat commented Dec 30, 2016

Use SEO URLs: Yes
Remove index.php: Yes
Add Suffix to URLs: No
Add Category to Products URLs: Only Last Category
Translate URLs: No
Add language code to URLs: No
Use canonical links: Yes
www Redirection: Yes
non-SEO to SEO URLs Redirection: Yes

System:
Platform: Arastta 1.5.0 Stable [ Nairobi ] 14-December-2016 12:00 GMT +3
PHP Version: 5.3.29
PHP Built on: Linux mars.superhosting.bg 3.10.0-427.10.1.lve1.4.7.el7.x86_64 #1 SMP Sat Apr 2 12:09:46 EDT 2016 x86_64
Database Version: 5.5.52-cll
Database Collation: cp1251_general_ci
Web Server: Apache
Server Interface (SAPI): cgi-fcgi

The problem is only noticeable with tags written in Bulgarian language. When tags of English (latin) tag respond correctly.

@syntaxerror
Copy link
Contributor

syntaxerror commented Dec 30, 2016

The problem is only noticeable with tags written in Bulgarian language. When tags of English (latin) tag respond correctly.

This is important information, and I guess it's a issue with the Bulgarian charset then. Could you provide some real examples of tags/words/letters failing, for devs to test?

PS! Your PHP version is very old, you should consider updating it to something faster and more secure.

@djokerat
Copy link
Author

Tags: allwaves, маска, слаба коса с кератин и шоколад, подсилваща и заздравяваща маска, за изтощени дължини и краища, незабавно разплитане и подхранване, подходящ за тънка, слаба или изрусявана коса, подобрява разресването, подходяща за използване всеки ден

@djokerat
Copy link
Author

djokerat commented Jan 4, 2017

how to fix it?

@djokerat
Copy link
Author

please, how to fix Bulgarian charset seo tag?!

@djokerat
Copy link
Author

after 3+ months still nobody???

@denisdulici
Copy link
Member

denisdulici commented Apr 12, 2017

That is not directly related with Arastta but how your server's PHP encodes the query string: http://stackoverflow.com/a/3368484

2017-04-12_1728

@syntaxerror
Copy link
Contributor

Sometimes the servers need help. :)
Is rawurldecode used on the query string?

@denisdulici
Copy link
Member

Change this line: https://github.com/arastta/arastta/blob/master/system/library/route.php#L40

$query_string = rawurldecode($this->uri->getQuery());

Must discuss this before adding to the core.

@denisdulici denisdulici added this to the 1.6.1 milestone Apr 13, 2017
@denisdulici denisdulici changed the title seo tag error 404 Search not working for non-latin chars Apr 13, 2017
@djokerat
Copy link
Author

THANK YOUUUUUUUUU!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants