phpxajax

PHP strange error messages


I have created a website 3 month ago. I uploaded it to internet and it worked(it still works there). Now I installed it in my local computer and trying to access it. However it prints the following error messages multiple times:

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\ptr\xajax\xajax_core\xajax.inc.php on line 1258

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\ptr\xajax\xajax_core\xajaxPluginManager.inc.php on line 269

I am using XAJAX framework and the errors have something to do with this framework. Since I haven't changed anything in the library files, I don't understand what the problem can be. Please help... I am freaking out


Solution

  • The framework you are using seems to be a little bit outdated and uses such constructs

    $x = & new Classname();
    

    The & before new is deprecated since PHP 5.0 (which is several years old now). With the introduction of E_DEPRECATED- and E_STRICT-messages it throws such a message now.