Closed (duplicate)
Project:
i18n auto translate
Version:
6.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2010 at 15:20 UTC
Updated:
30 Sep 2010 at 09:46 UTC
White screen after following readme closely, using v0.7.2. Going back to Home, then notification: warning: require_once(gtranslate-api-php/GTranslate.php) [function.require-once]: failed to open stream: No such file or directory .../sites/all/modules/i18n_auto/i18n_auto.module on line 96. Line 96 says: require_once("gtranslate-api-php/GTranslate.php"); . New node creates, but not translations. Is readme correct that gtranslate-api-php should go inside folder named i18n_auto_draft? Have tried some variations with no joy. Shine a light? Cheers.
Comments
Comment #1
greg.harveyHi,
The
require_once()line uses a relative path of./gtranslate-api-php/GTranslate.phpso indeed, as the readme says, the folder needs to be inside the module folder, wherever that may be. It's an odd problem you're having there. There will be no translation because the GTranslate code is not loading.First thoughts are might be permissions related? Are you on a Linux machine or a Mac? If so, perhaps the Apache user cannot open the file? Another thing to check ... maybe typo in directory name (though that doesn't seem to be the case)?
Comment #2
seg108 commentedHi, Thanks for quick reply.
That was helpful - "inside the module folder" is clearer! So I moved gtranslate-api-php folder (permission 755) into module folder which is called i18n_auto; readme says put in i18n_auto_draft but this is not correct folder name. Now working OK (main page and translations are created ok) but with one caveat: now after creating the content I get white screen with whatever was passed to google for translation, like this:
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%3Cp%3EThis+is+some+dummy+body+text+for+testing+auto+translate+module.%3C%2Fp%3E%0A&langpair=en%7Cet&http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Testing+Auto+Translate&langpair=en%7Cet&http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%3Cp%3EThis+is+some+dummy+body+text+for+testing+auto+translate+module.%3C%2Fp%3E%0A&langpair=en%7Cfi&http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Testing+Auto+Translate&langpair=en%7Cfi&So now I just need to land back in the right place, instead of seeing this information.
Comment #3
greg.harveyAhh, the module name changed! I didn't realise the README was not up to date. Sorry about that. Marking as a bug, so we can fix this.
To be honest, I have absolutely no idea what is causing your second problem. Maybe try downloading a newer version of GTranslate from the SVN link on their site? No one else has had this problem - it is very strange.
Comment #4
seg108 commentedThanks! Second problem solved. Following your suggestion I replaced code from 0.7.2 version with GTranslate.php r9 from SVN, and also brought over the new files from the 0.7.4 version. Now all OK. Cheers.
Comment #5
greg.harveyGood to know. Will also update the README to include that version of GTranslate. Glad it's working! Leaving this issue open to resolve raised README text changes required.
Comment #6
greg.harveyThis is actually a duplicate of #812402: GTranslate install location is incorrect in READ-ME file, which is now fixed.