Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    •  
      CommentAuthorSufian
     
    Hey, im getting alot of errors,

    im running wamp on my vista computer.
    what can it be?
    Here is a screenshot: http://screencast.com/t/gmI6opN59d3

    here are the errors:


    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\public\index.php on line 50

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\app\controllers\framework_setup_controller.php on line 228

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\constants.php on line 127

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkObject.php on line 63

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 568

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 1087

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 1092

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 1276

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 1816

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\Ak.php on line 1846

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 144

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 319

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 345

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 433

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 440

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1449

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1451

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1715

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1729

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1754

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1755

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1756

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1769

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1770

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1771

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1800

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1823

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1933

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1933

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 1973

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 2011

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 2341

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 2650

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController.php on line 2891

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkRequest.php on line 817

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkSession.php on line 118

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkSession.php on line 124

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 407

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 1472

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 1498

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 2334

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 4102

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 4105

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActiveRecord.php on line 4462

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActiveRecord\AkAssociatedActiveRecord.php on line 54

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActiveRecord\AkDbAdapter.php on line 129

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\app\models\framework_setup.php on line 244

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkPlugin.php on line 74

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkPlugin.php on line 212

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView\AkHelperLoader.php on line 74

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionView\AkHelperLoader.php on line 74

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionView\AkHelperLoader.php on line 76

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionView\AkHelperLoader.php on line 78

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView\helpers\form_helper.php on line 405

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView\helpers\form_helper.php on line 416

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView\helpers\file_upload_helper.php on line 28

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionController\AkCacheHandler.php on line 714

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionController\AkCacheHandler.php on line 714

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkCache.php on line 254

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkCache.php on line 258

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkCache.php on line 264

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView.php on line 113

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionView.php on line 113

    Deprecated: Call-time pass-by-reference has been deprecated in C:\wamp\www\akelos\lib\AkActionView.php on line 205

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\akelos\lib\AkActionView\AkPhpTemplateHandler.php on line 48
    • CommentAuthorpannet1
     
    hello,

    i am not sure. but could it be that you are using the latest php and since akelos works on php4 too you get these deprecated errors.
    • CommentAuthorpogeybait4883
     
    Open up your php.ini. In think Windows puts it in the C:\Program Files\PHP folder. Look for this line in the file:

    allow_call_time_pass_reference = On

    Make sure it reads exactly like I pasted it. Yours probably says 'allow_call_time_pass_reference = Off'.

    That should clear that up. Hope that helps.

    -- Pogeybait
    • CommentAuthorberseck
     
    Hello I got The same problem he described

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\workspace\adorocinema\public\index.php on line 37

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\workspace\adorocinema\public\index.php on line 59

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\workspace\akelos\lib\constants.php on line 128

    I changed the line that Pogeybait said
    allow_call_time_pass_reference = On
    to
    allow_call_time_pass_reference = Off

    And I keep getting the same errors...
    Im using the last version of XAMPP

    Is there anything else I can do to solve this problem?

    thanks in advance
    berseck
    • CommentAuthorberseck
     
    ok I got it

    And changed my version of xampp to an older version and now its working fine

    ;)
    •  
      CommentAuthorBedfordWriter
     
    There is (or should be) another way. I've found 20 or more instances where the akelos script sets the error reporting level to E_ALL. Beyond the question of why such a fundamental configuration variable appears in so many places, I'd think that I should be able to change those to E_ALL & ~E_DEPRECATED and be able to proceed with PHP 5, but no luck so far.
    •  
      CommentAuthorBedfordWriter
     
    No need to go back to PHP 4. You just need to adjust how Akelos sets the error level. I got past the messages like so:

    Everywhere that Akelos set the error reporting level to E_ALL, I calculated my own error level: $MY_ERROR = E_ALL & ~E_DEPRECATED; and used that instead.

    In my previous comment, I just hadn't found the right Akelos file to replace that in. Perhaps it's overkill, but I eventually tracked down and replaced every instance and now I'm enjoying life without deprecated code error messages.