1
Burning
xforms 1.01 : Warnings
  • 2010/2/9 17:27

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I have upgraded XOOPS 2.4.3 to 2.4.4. All works fine except xForms module (v1.01, download link)

This warning appears on top :
DeprecatedAssigning the return value of new by reference is deprecated in C:wampwwwXOOPS244modulesxformsadminindex.php on line 30

Deprecated
Assigning the return value of new by reference is deprecated in C:wampwwwXOOPS244modulesxformsadminindex.php on line 38

Deprecated
Assigning the return value of new by reference is deprecated in C:wampwwwXOOPS244modulesxformsadminindex.php on line 65


Code xforms (lines 30 to 38, index.php)
if( count($forms) > ){
                foreach( 
$forms as $form ){
                    
$xoopsTpl->append('forms',
                                array(
'title' => $form->getVar('form_title'),
                                    
'desc' => $form->getVar('form_desc'),
                                    
'id' => $form->getVar('form_id')
                                    )
                                );
                }


Questions :
• how could I hide this alert ?
• I'm with a local server (PHP 5.30) ... is this alert could cause troubles to use module ?

Thanks in advance !

2
Mazarin
Re: xforms 1.01 : Warnings
  • 2010/2/9 18:17

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


If I'm not mistaken, this is one of the things that changed between PHP4 and PHP5.

Anyway, to remove the warnings on the page, you have to put @ in front of the row IIRC (or the specific function, I can't quite remember).

3
Burning
Re: xforms 1.01 : Warnings
  • 2010/2/9 18:39

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Thanks for your fast response !

I will put my updated site on a distant server and see if there is trouble. I suspect a "misconfiguration" of my local server (php.ini).

On front side, nothing appears, that's the most important

4
ghia
Re: xforms 1.01 : Warnings
  • 2010/2/9 19:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


They are deprecated messages introduced by PHP 5.3 and can safely be ignored.

Login

Who's Online

221 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits