1
Burning
Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 1:01

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Not sure that is the right forum... I can not make xoLanguage work with XOOPS (2.4.0 and 2.4.4) if I use PHP 5.3.0.

debug mode says :
WarningParameter 1 to XlanguageCorePreload::eventCoreIncludeCommonLanguage() expected to be a referencevalue given in file /class/preload.php line 138

2
ghia
Re: Xoops 2.4.4 + xoLanguage module + PHP 5.3.0
  • 2010/1/27 2:11

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you mean xLanguage module or xoLanguage Smarty plugin?

3
Mamba
Re: Xoops 2.4.4 + xoLanguage module + PHP 5.3.0
  • 2010/1/27 5:24

  • Mamba

  • Moderator

  • Posts: 11412

  • Since: 2004/4/23


In /xlanguage/preloads/core.php

change in line 30

function eventCoreIncludeCommonLanguage(&$args)

to
function eventCoreIncludeCommonLanguage($args)


i.e. remove the & from that line

This is based on this info

After the change, it worked for me on PHP 5.3 and PHP 5.2.9

Trabis can probably tell you if this should be only temporary or permanent hack.

4
Burning
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 8:19

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Thanks Mamba !

@ghia : sorry, it is XLanguage module, version 3.02

5
iHackCode
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0

It could be a reference to a null argument.

6
trabis
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 13:39

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Remove the &, it should not be there, the $args array is already being passed by reference.

7
recupsoft
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 17:52

  • recupsoft

  • Friend of XOOPS

  • Posts: 151

  • Since: 2003/10/30


Instead of xLanguage, you can try EMLH.

8
ghia
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 19:16

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


xLanguage has the avantage that it sets also the XOOPS website to the selected language. With EMLH, only the content of articles etc, shifts languages, but the menu and other fix texts stay in the original language.

9
Burning
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 20:17

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Agree with Ghia, xLanguage is more powerful. And thanks to Trabis, to hack core is no more necessary.

And for xLanguage users : Dugris has made an useful plugin to translate current page, without redirection when you click on your country flag. Download & instructions.

If a new zip of xLanguage is made, we should include this smarty plugin ?

10
ghia
Re: Xoops 2.4.4 + xLanguage module + PHP 5.3.0
  • 2010/1/27 20:26

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Seems some instruction part is missing (code example).

But I think it is useful to bundle it.
An example should also show a layout with flag links.

Login

Who's Online

310 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits