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

greg.harvey’s picture

Hi,

The require_once() line uses a relative path of ./gtranslate-api-php/GTranslate.php so 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)?

seg108’s picture

Hi, 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.

greg.harvey’s picture

Title: White screen » Directory placement instructions for GTranslate are incorrect in the README
Category: support » bug

Ahh, 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.

seg108’s picture

Thanks! 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.

greg.harvey’s picture

Title: Directory placement instructions for GTranslate are incorrect in the README » Directory placement & version instructions for GTranslate are incorrect in the README

Good 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.

greg.harvey’s picture

Status: Active » Closed (duplicate)

This is actually a duplicate of #812402: GTranslate install location is incorrect in READ-ME file, which is now fixed.