Blank page after changing language

Tracy Dean - October 20, 2006 - 17:43
Project:Google Translate
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Omar
Status:closed
Description

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

#1

Omar - October 20, 2006 - 19:42
Assigned to:Anonymous» Omar

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

#2

Tracy Dean - October 20, 2006 - 21:48

Err, it didn't say anything.

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

#3

Tracy Dean - October 21, 2006 - 12:25

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

Omar - October 22, 2006 - 13:04

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

Omar - October 22, 2006 - 13:18
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

Tracy Dean - October 23, 2006 - 12:18

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

Omar - October 23, 2006 - 12:37

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

duntuk - October 25, 2006 - 23:52
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

Omar - October 28, 2006 - 00:07
Status:active» fixed

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

#10

hadishon - October 29, 2006 - 00:54
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

Omar - October 29, 2006 - 10:03

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

#12

hadishon - October 29, 2006 - 14:51

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

hadishon - October 29, 2006 - 14:57

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

#14

Omar - October 29, 2006 - 19:58

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

Omar - November 8, 2006 - 18:51
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.