Current version of module does not work with PHP 5.0.5, causing error like in subject. It needs two small changes, like this:

- $variable = function1(function2());
+ $temp_variable = function(2);
+ $variable = function($temp_variable);

Patch included.

CommentFileSizeAuthor
#2 i18n.module.2.diff400 byteshhaugland@gmail.com
i18n.module.diff1014 bytesjerzy

Comments

jose reyero’s picture

I'm not using PHP5 yet, so if anyone else could try this one, I'll apply it right away....

hhaugland@gmail.com’s picture

StatusFileSize
new400 bytes

In addition I needed to patch line 163 in i18n.module.

--- i18n.module.old     2006-01-01 20:55:01.000000000 +0100
+++ i18n.module 2006-01-01 20:49:57.000000000 +0100
@@ -160,7 +160,8 @@
  * Returns default language
  */
 function i18n_default_language(){
-  return key(i18n_supported_languages());
+  $temp_key=i18n_supported_languages();
+  return key($temp_key);
 }

 // Get language from browser settings, but only if it is in the $i18n_languages array
omar’s picture

These patches worked for me.

In my case the symptom was that enabling i18n would break my site entirely. I was getting blank screens without any error messages (and I don't have access to the error.log) so I was forced to disabled the module directly in the database via phpmyadmin.

However, since the server is running php5.0.5 I decided to try applying these patches and it solved the problem for me.

Thanks folks!

jose reyero’s picture

Status: Needs review » Fixed

Applied both patches, thanx

jose reyero’s picture

Status: Fixed » Closed (fixed)