Advertisement:

Author Topic: *SOLVED* why some country cannot view my site ?  (Read 2246 times)

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: why some country cannot view my site ?
« Reply #15 on: October 24, 2015, 11:52:16 pm »
No, no, I don't think you understood my post above :)

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: why some country cannot view my site ?
« Reply #16 on: October 24, 2015, 11:57:41 pm »
Code: [Select]
[quote author=Dis link=topic=31039.msg131860#msg131860 date=1445716266]
[quote author=dev101 link=topic=31039.msg131859#msg131859 date=1445715402]
[quote author=Dis link=topic=31039.msg131857#msg131857 date=1445713931]
add this code
[/quote]

Don't mess up with - and _ in Osclass, please.

When some customers of Full Breadcrumbs plugin came to me with complaints that "it's not working", I asked:

- "What's not working?", and they replied:
- "Here, take a look at my website". Then I kindly asked:
- "Did you modify core components, your permalink structure does not look right?"
- "Absolutely not!" - they reply. Then, after about half an hour of pocking down the rabbit hole I find above code and say:
- "And what about this little piece? It's not Osclass."
- "Ahh... that? Just added it yesterday - is it bad?"

 :-\

(not actual dialog - close)
[/quote]
This is a very strange advice.
Have you tried Osclass permalinks in Russian or Greek?
Permalinks will not function properly.
Just Russian and Greeks, who wants to use permalinks - no need to buy your plugin.
[/quote]

The "poblem" was with this line :
[code']" "=> "_", "."=> "", "/"=> "_", "-" => "_");
That could cause unexpected behavior , Osclass core will make some substitutions to "-", while your code will make some replacement to "_". Just need to be careful

Dis

  • Newbie
  • *
  • Posts: 12
Re: why some country cannot view my site ?
« Reply #17 on: October 25, 2015, 12:05:23 am »
Code: [Select]
[quote author=Dis link=topic=31039.msg131860#msg131860 date=1445716266]
[quote author=dev101 link=topic=31039.msg131859#msg131859 date=1445715402]
[quote author=Dis link=topic=31039.msg131857#msg131857 date=1445713931]
add this code
[/quote]

Don't mess up with - and _ in Osclass, please.

When some customers of Full Breadcrumbs plugin came to me with complaints that "it's not working", I asked:

- "What's not working?", and they replied:
- "Here, take a look at my website". Then I kindly asked:
- "Did you modify core components, your permalink structure does not look right?"
- "Absolutely not!" - they reply. Then, after about half an hour of pocking down the rabbit hole I find above code and say:
- "And what about this little piece? It's not Osclass."
- "Ahh... that? Just added it yesterday - is it bad?"

 :-\

(not actual dialog - close)
[/quote]
This is a very strange advice.
Have you tried Osclass permalinks in Russian or Greek?
Permalinks will not function properly.
Just Russian and Greeks, who wants to use permalinks - no need to buy your plugin.
[/quote]

The "poblem" was with this line :
[code']" "=> "_", "."=> "", "/"=> "_", "-" => "_");
That could cause unexpected behavior , Osclass core will make some substitutions to "-", while your code will make some replacement to "_". Just need to be careful
This is example.
Ok. can use
Code: [Select]
if (is_utf8($string)) {
$chars = array(
"А"=>"a","Б"=>"b","В"=>"v","Г"=>"g",
"Д"=>"d","Е"=>"e", "Ё"=>"e","Ж"=>"j","З"=>"z","И"=>"i",
"Й"=>"y","К"=>"k","Л"=>"l","М"=>"m","Н"=>"n",
"О"=>"o","П"=>"p","Р"=>"r","С"=>"s","Т"=>"t",
"У"=>"u","Ф"=>"f","Х"=>"h","Ц"=>"ts","Ч"=>"ch",
"Ш"=>"sh","Щ"=>"sch","Ъ"=>"","Ы"=>"i","Ь"=>"",
"Э"=>"e","Ю"=>"yu","Я"=>"ya","а"=>"a","б"=>"b",
"в"=>"v","г"=>"g","д"=>"d","е"=>"e", "ё"=>"e","ж"=>"j",
"з"=>"z","и"=>"i","й"=>"y","к"=>"k","л"=>"l",
"м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r",
"с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"h",
"ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"",
"ы"=>"i","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya");
$string = strtr($string, $chars);
}
It will work without problems.
« Last Edit: October 25, 2015, 12:08:47 am by Dis »

harah

  • Newbie
  • *
  • Posts: 23
Re: why some country cannot view my site ?
« Reply #18 on: October 25, 2015, 03:29:44 pm »
@ Aficionado - im newbie and i need help to get this fix. Thanks for your reply but for me to take it at my own risk i am in a mess to do so.

@ Dis -  As i mentioned after i enable and disable the permalink it is viewable from my theme developer who residing in russia. But to play safe i did copy the code for Russian as per your advice. So, everytime osclass upgrade i have to copy this am i right ?. And how about the greek code ?

And how do i ensure its viewable ? is there a way i can check myself if its viewable from russia instead of i have to keep on bothering my theme developer to check if its viewable from his end.

p.s: excuse me for my poor english. thanks

Aficionado

  • Guest
Re: why some country cannot view my site ?
« Reply #19 on: October 25, 2015, 03:32:40 pm »
@harah

I think for now you need to just DISABLE permalinks and continue with your site. When you become more familiar with all this, you could try to solve this.

Otherwise you will spend your time risking your site's stability and you will miss your goal (to run a classified website with traffic).


Dis

  • Newbie
  • *
  • Posts: 12
Re: why some country cannot view my site ?
« Reply #20 on: October 25, 2015, 03:53:23 pm »
@harah
I totally agree with @ Aficionado.
The best choice for you - disable permalinks.

harah

  • Newbie
  • *
  • Posts: 23
Re: why some country cannot view my site ?
« Reply #21 on: October 25, 2015, 04:49:56 pm »
@  Aficionado & Dis

Thanks so much. Initially the permalinks was disable and i didnt even enable it at all. Not until i was told that russia side unable to view my site, thereafter only i tried to just play around to enable,disable it.

This bug problem simply not being fair to me cause i am not notify about the error and there isnt any prompt error for me to at least know  ;D. Cos to my understanding that my site is online and it works fine.

Hope Osclass can fix this from happening again.  Thanks all.


Aficionado

  • Guest
Re: why some country cannot view my site ?
« Reply #22 on: October 25, 2015, 05:01:35 pm »
You mean that you have a problem even with Permalinks are DISABLED ?


harah

  • Newbie
  • *
  • Posts: 23
Re: why some country cannot view my site ?
« Reply #23 on: October 26, 2015, 05:33:21 am »
Hi,

@ Aficionado, yes the problem was already there way before even being touched and way before i was told. i think it was the bug problem. Yesterday i had another issue with whatsapp plugins too, example in the beginning it works fine and out of sudden the "whatsapp share" icon not showing. So when i unclick all categories and then click all back then it works. So this happened the same to my permalinks (just unclick and click back!)

Thanks :)

Aficionado

  • Guest
Re: why some country cannot view my site ?
« Reply #24 on: October 26, 2015, 02:16:16 pm »
I don't think such a problem exists without permalinks enabled.

If you can share with us a URL that shows the problem live, we could understand better.


harah

  • Newbie
  • *
  • Posts: 23
Re: why some country cannot view my site ?
« Reply #25 on: October 26, 2015, 05:28:57 pm »
I myself didnt find the problem cause from my side i can view and its working fine. I even get my friends and relative in local to check my site and they can view too. As i also mentioned in my first email chain that even my hosting dev confirmed that my site is online.

But i was told later only by my theme dev when i need their support that they cannot view my site. They from russia. And they provide me the ping and traceroute as per shared and shown in my first message thread.

Am glad it works now! My theme dev from russia confirmed now that they can view it right after i click enable and disable it back.