Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: 404 with 2.16 script

  1. #1
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    404 with 2.16 script

    Hi everyone

    First off thanks for the script Will. I've been looking for something like this for ages.

    Well after installing and testing out the script i get a 404 when i try to convert a page. Page is here, jsut scroll down a little on right side.

    I have added the flags to my page like so

    Code:
    <a href="/lang/en<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/graphics/american.jpg" alt="English">
               <a href="/lang/de<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/graphics/german.jpg" alt="German">
               <a href="/lang/es<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="/graphics/spanish.jpg" alt="Spanish">
    Please can someone help me.

    Thanks

    Zander

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Zander:

    davesnake has been testing 2.16a, which fixes this issue.

    This problem occurs on hosts where Apache is configured not to listen on the localhost interface.

    Here's an excerpt from the changelog:
    Improvements in Release 2.16a

    New option added: do_check_url option, default false

    This checks to ensure that the requested URI/L exists before sending it to the translator.

    When true, it can reduce load on the translation servers by preventing the attempted translation of URLs which do not exist.

    This must be set to false if your server cannot talk to itself.

    The check_url_proxy variable is the host which the script will use to check URLs. The default is 'localhost:80'.
    Please upgrade to 2.16a (attached) if you see this error.
    Attached Files Attached Files
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok thanks for that. Tried it but it doesn't make any difference. The 404 page shows and the url looks like this

    http://www.live-laptops.com/lang/en%...cho%20$_SERVER[

  4. #4
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Quote Originally Posted by Zander View Post
    Ok thanks for that. Tried it but it doesn't make any difference. The 404 page shows and the url looks like this

    http://www.live-laptops.com/lang/en%...cho%20$_SERVER[
    That's a different issue. That looks like what happens when Apache isn't set up to interpret PHP properly.

    Do you have a line like this one in your main .htaccess file:
    Code:
    AddType application/x-httpd-php .html
    But when I look at your site, even stranger things are going on.

    One of your URL's is:
    Code:
    http://www.live-laptops.com/About.html/
    But when I go to this URL to test the translation script:
    Code:
    http://www.live-laptops.com/lang/de/About.html
    I get automatically redirected to this URL:
    Code:
    http://domainhelp.search.com/search?q=live-laptops&d=www.live-laptops.com.com
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  5. #5
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by
    One of your URL's is:
    [code
    http://www.live-laptops.com/About.html/[/code]
    Thanks for the heads up about the extra /. Which page did you find it on? I've just been sorting out some problems recently and must have missed it.

    Quote Originally Posted by But when I go to this URL to test the translation script:
    [code
    http://www.live-laptops.com/lang/de/About.html[/code]I get automatically redirected to this URL:
    Code:
    http://domainhelp.search.com/search?q=live-laptops&d=www.live-laptops.com.com
    I just did the same. No idea why it's doing that.

    Anyway i added the line to the .htaccess and when i try and click on the flags an internet explorer error box comes up and says the site is unavailible... Why do i get the feeling my host doesn't support html files being run through the php engine!

    Any ideas?

  6. #6
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok good and bad news.

    Bad news is my host doesn't support parsing of php in html and safe mode is enabled and can't be disabled.

    Good news is once i renamed the page to .php instead of .html i got the script working!!! and working great at that.

    I tried linking to a separate php page with all the flags on it and then clicking on a flag but that doesn't redirect to the page that needed to be translated.

    Any ideas guys?

  7. #7
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Quote Originally Posted by Zander View Post
    Bad news is my host doesn't support parsing of php in html and safe mode is enabled and can't be disabled.
    This is where I make the usual recommendation that no one wants to hear: Get a new host.

    Sorry.

    Quote Originally Posted by Zander View Post
    Good news is once i renamed the page to .php instead of .html i got the script working!!! and working great at that.
    Sweet!

    But...

    I can't remember why the script requires safe mode to be disabled. Something is likely to break.

    Quote Originally Posted by Zander View Post
    I tried linking to a separate php page with all the flags on it and then clicking on a flag but that doesn't redirect to the page that needed to be translated.
    You lost me on that one...

    Just copy and paste the contents of flags-google.shtml into your .php page and you should be good to go.

    Preferably you copy it into an include file, so you don't have to edit every single page.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  8. #8
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes your right is time to get a new host, but i'll have to stick with this one for a while untill i get some money. Besides the script seems to be working now i've renamed it to a .php file.

    There are some issues though. When i'm viewing a translated a page and click on a different page i.e. about, then it reverts back to the default untranslated version. It should stay the same language i guess.

    I also installed the script on a different site and different host with safe mode disabled and php parsing in html files enabled and i get the same issue discribed above. It also messes up the CSS and removes my left and right sidebars, see here. Apart from that it seems to work great, thanks.

  9. #9
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Quote Originally Posted by Zander View Post
    There are some issues though. When i'm viewing a translated a page and click on a different page i.e. about, then it reverts back to the default untranslated version. It should stay the same language i guess.

    I also installed the script on a different site and different host with safe mode disabled and php parsing in html files enabled and i get the same issue discribed above. It also messes up the CSS and removes my left and right sidebars, see here. Apart from that it seems to work great, thanks.
    I've escalated those issues to the developer.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  10. #10
    Zander is offline Unknown Net Builder
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks alot Will, i will wait patiently for the next update. Once again thanks alot for the help and support and for the script. It's really great that you offer it for free and your support is greatly appreciated

    Googles already indexing the translated pages too!!

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 20 July, 2011, 19:06 PM
  2. Replies: 0
    Last Post: 5 March, 2010, 10:03 AM
  3. Replies: 1
    Last Post: 14 January, 2010, 17:05 PM
  4. Replies: 2
    Last Post: 10 December, 2009, 17:25 PM
  5. Replies: 0
    Last Post: 19 October, 2009, 12:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •