NetBuilders

You are welcome to look around. You will have to register before you can post a message, create a blog, chat live with our members, or add a site to our directory.




Reply Proxies Lounge
Old 27 April, 2009, 11:35 AM   #1 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default 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
  Reply With Quote
Old 27 April, 2009, 11:41 AM   #2 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,619 Times in 890 Posts
Posts: 4,951
$NetBucks: 8,221
Join Date: Dec 2008
Last Online: Today 18:12 PM
Default

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
File Type: zip lang216a.zip (211.2 KB, 18 views)
  Reply With Quote
Old 27 April, 2009, 11:52 AM   #3 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default

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[
  Reply With Quote
Old 27 April, 2009, 12:05 PM   #4 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,619 Times in 890 Posts
Posts: 4,951
$NetBucks: 8,221
Join Date: Dec 2008
Last Online: Today 18:12 PM
Default

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
  Reply With Quote
Old 27 April, 2009, 12:18 PM   #5 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default

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?
  Reply With Quote
Old 27 April, 2009, 13:42 PM   #6 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default

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?
  Reply With Quote
Old 27 April, 2009, 15:59 PM   #7 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,619 Times in 890 Posts
Posts: 4,951
$NetBucks: 8,221
Join Date: Dec 2008
Last Online: Today 18:12 PM
Default

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.
  Reply With Quote
Old 27 April, 2009, 16:45 PM   #8 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default

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.
  Reply With Quote
Old 30 April, 2009, 15:24 PM   #9 (permalink)
Gozer
 
Will.Spencer's Avatar
 
Location: Singapore
iTrader: (45)
Blog Entries: 1
Thanked 1,619 Times in 890 Posts
Posts: 4,951
$NetBucks: 8,221
Join Date: Dec 2008
Last Online: Today 18:12 PM
Default

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.
  Reply With Quote
Old 1 May, 2009, 14:42 PM   #10 (permalink)
Unknown Net Builder
 
iTrader: (0)
Thanked 0 Times in 0 Posts
Posts: 6
$NetBucks: 0
Join Date: Apr 2009
Last Online: 1 November, 2009 13:46 PM
Default

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!!
  Reply With Quote
Reply

Bookmarks

Tags
216, 404, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which proxy script do you think is the best one? Jorge05r Web Proxies 21 24 January, 2010 13:01 PM
Aweber Vs Php Script Marcell Purham Business 10 23 August, 2009 17:06 PM
[WTS] Best Arcade Script Around! TheZ Scripts 2 23 August, 2009 05:04 AM
Help me to learn how to script! and translate a script for me! [SGHP]AK Programming 8 28 April, 2009 23:02 PM
Error with the script V2.16 servalfx Translation Script Support 19 25 April, 2009 09:21 AM


All times are GMT. The time now is 21:00 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.1
vBAdvertise v1.0.0 Copyright ©2009, PixelFX Studios
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios