Project:Google Translate
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:owahab
Status:closed (fixed)

Issue Summary

The subject says it all really - when I change the language, all the text vanishes and I just get an empty page - with the correct colour scheme etc.

I had to delete the module to be able to use the site again.

Tracy

Comments

#1

Assigned to:Anonymous» owahab

Did you try enabling error reporting in PHP and let me know what it says?

#2

Err, it didn't say anything.

There were no error messages on the screen or sent to watchdog.

#3

I just tried installing again and as soon as I enabled the module I got the attached page. As you'll see, Google has translated the title of the page but as soon as it gets to the main content it stops. There is also an entry in watchdog as follows:

access denied 21 Oct 2006 - 11:54am admin/modules denied access. Anonymous view

This suggests to me that google is obtaining the page as an anonymous user even when the real user is logged in and therefore is unable to obtain the page. This also speaks to http://drupal.org/node/90228

This is not the whole answer though as I get the same when I try it with an anonymous user.

AttachmentSize
modules.txt 1.03 KB

#4

Now it's clear.
Google accesses the page as anonymous, thus it gets 404, access denied, since the requested page is in the admin area.
I will fix this by disabling translation for admin area.

#5

Status:active» fixed

admin area is no longer translated unless you tried yourself translating it :)
Please let me know it's OK to close the issue.

#6

Have you committed the fix, 'cos it's over 24 hours and the website is still showing the same version (4.7.0, 18/10/2006 - 09:10, 8.86 KB)?

#7

Sorry for the mistake: I have fixed the bug in CVS version only thus you didn't see the new commits.
I have commited the fix now to 4.7

#8

Status:fixed» active

still only displays blank page when language is changes... and no errors in watchdog ... (have to clear cache to get back to normal; so just disabled it for now.... but other than that, this seems like a clever module if it actually works)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

#9

Status:active» fixed

Now the module will log an error instead of showing a blank page.

#10

Status:fixed» active

I'm still having this problem with the current 4.7 module. After the first translate attempt, the module breaks the site and the module has to be deleted to get the site back. When I re-upload the module, the site automatically breaks. Any suggestions?

#11

Sure you're using the last version? Sure there's no message in the log?

#12

I've tried both 4.7 and cvs versions.

Drupal does not display an error message.

On the server error logs, I get:
PHP Fatal error: Cannot break/continue 1 level in httpdocs/modules/gtrans/gtrans.module on line 199

I have i18n installed, could this be a problem?
Any suggestions?

#13

I'll add that the page I tried to translate was a public page that google shouldn't have a problem getting to.

#14

First this was really helpful.
Second it has no conflict with any other module, don't worry.
The error in line 199 was fixed IN THE CVS VERSION, so please test and let me know to put an end for this issue.

#15

Status:active» closed (fixed)
nobody click here