View Full Version : using websitetranslator php script
cashflow
10-16-2006, 03:07 AM
Hi
I am trying to use a websitetranslator script. I have installed it and tried to set the folder to 777. When I log back in it has gone back to 755. I keep getting these error messages on the page:
Warning: main(http:///websitetranslator/flags.php?site_url=&page=) [function.main]: failed to open stream: No such file or directory in /home/wwwsavin/public_html/petinsurnace/index.php on line 354
The directory is there in the right place though. Is this error caused by the permissions or is this script disallowed on hm? I am running it ok on another host.
I submitted a ticket over 24 hours ago but it hasn't been responded to. Not sure if all staff were firefighting yesterday :confused:
Thanks for any advice! :)
Benjamin
10-16-2006, 04:50 PM
If you try to go to the URL the error message gives you, you will notice that the page itself cannot be found, or at the very least, is down. I would say it's not so much of a permissions error, as it is a case of the missing server.
http://websitetranslator.di1on.net/
cashflow
10-17-2006, 04:24 AM
Hi Benjamin
This is the developer's example site:
http://www.acidrefluxsymptom.net/articles/Acid-Cure-Reflux.php
At the bottom of the page are the tranlsation flags.
When I install on HM,
a. It won't let me change the folder to 777. When logging on a few minutes later the folder has gone back to 755.
b. It won't display the flags, even though I have them in the correct "websitetranslator/images" folder on the root of the HM hosted website.
I have this exact same set up on another host and its working :confused:
cashflow
10-17-2006, 10:37 AM
After over an hour on "chat" with Tim, we didn't resolve the problem. However I now get the response from the script vendor:
>>>The error you get is a permissions error. If you can't set the permission from the control panel
try from Windows XP if you are using it like in the video. Click Start. then run, then enter
your host, then your login and password. From their right click on the websitetranslator script, choose
properties and check all check box.
Another think have to be Activate from the php.ini is to make the php variable $HTTP_HOST and $REQUEST_URI
working. The first one get automatically your domain name and the other one the page where you are.
The translator need these informations to know which page to translate.
It's all you need to make the script working.
I'm sure your host will fix it, it's not a big deal to activate it, most host have it ON.
I look at the code and this is the code on your website " <img src="http:///websitetranslator/images/flag_fr.gif" " the code
should be " <img src="http://http://www.anydomain.com/websitetranslator/images/flag_fr.gif" "
It's missing your domain name and this it's from the php variable $HTTP_HOST, so that mean it's not ON on your
server. That also mean the $REQUEST_URI is not activate either.
When your host will activate it and let you change the permissions, everything will work.>>>
Could someone at HM make the necessary changes please.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.