php - "Assigning the return value of new by reference is deprecated" error -


The problem is:

Excluded: Return values ​​of the new value by reference In C: \ wamp \ www \ FlashChat_v607 \ chat \ inc \ common.php on line 155

Notice: Undefined variable: Step into C: \ wamp \ www \ FlashChat_v607 \ chat \ inc \ common Php on line 94

This is the link where you can find the code:

This line:

  $ global ['fc_config'] ['bot'] = & amp; New bot ();  

It should be:

  $ global ['fc_config'] ['bot'] = new bot ();  

and notice on line 94:

  if ($ step> 2 ||! Isset ($ step))   isset  I feel that you should be right. However, it may be better to check the  isset  first. 

However, both of these small problems can seem like a real problem that you have a problem to display E_NOTICE, E_DEPRECATED and your page with an error message that enables error display on the production server .

Try changing them, which do not display (though you want to leave them for development box)


Comments