1
wcrwcr
Sorry, Xoops 205 - Liaise 1.0
  • 2006/1/11 16:58

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all

First, i?d like to apologize due that "old fashion" question, but I have an old site running XOOPS 205 with liaise 1.0

Everything was running pretty well till the host company changed the PHP version to PHP 4.4.1 without any warning

Now, my form only shows a unique field, repeated 20 times.

Some notices from PHP debug...

On the form page:

18 times the same notice:

Notice [PHP]: Only variables should be assigned by reference in file modules/liaise/index.php line 46

On the admin area of liaise:

Notice [PHP]: Undefined index: op in file modules/liaise/admin/index.php line 35

and 25 times that notice:

Notice [PHP]: Only variables should be assigned by reference in file modules/liaise/admin/index.php line 57

Questions:

Any quick fix?
Do you think that liaise 1.1.1 could fix that problem?
If yes, is there a safe way to upgrade?

Thnaks in advance and sorry guys to bore you with that old version problem.

Regards,
Wilson

2
wcrwcr
Re: Sorry, Xoops 205 - Liaise 1.0
  • 2006/1/12 18:59

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

Just a very little bump

3
philou
Re: Sorry, Xoops 205 - Liaise 1.0
  • 2006/1/12 20:50

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


hey it's an old bug.

you have to put this line :
unset($form_ele);

in the index.php after the loop for the differents elements
Resized Image - - Resized Image

4
wcrwcr
Re: Sorry, Xoops 205 - Liaise 1.0
  • 2006/1/13 20:46

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi philou

Thanks for youir reply.

Quote:
hey it's an old bug.


I?ve told you,

Well, i found that section around line 44 of my index.php:
foreach( $elements as $i ){
        
$renderer =& new LiaiseElementRenderer($i);
        
$form_ele =& $renderer->constructElement('ele_'.$i->getVar('ele_id'));
        
$req intval($i->getVar('ele_req'));
        
$form->addElement($form_ele$req);
        
$count++;
        unset(
$hidden);
    }


Since i?m not a coder i get a question :

I must put the
unset($form_ele);


just after tht " } " signal or inside that loop ( if that is the correct loop , heheh)?

Once more thank you philou

Login

Who's Online

238 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits