Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorizafarid
     
    Hi,

    I got the following error while to run my akelos project.

    Notice: Only variables should be assigned by reference in C:\Program Files\xampp\htdocs\framework\akelos\lib\AkRequest.php on line 866

    How to solve it?

    Once I click refesh, it's has changed to this error

    Notice: Only variables should be assigned by reference in C:\Program Files\xampp\htdocs\framework\akelos\lib\AkActionController\AkCacheHandler.php on line 351

    I'm using public shared hosting for my application and currently it's running on PHP4.

    I've read post (http://forum.akelos.org/discussion/56/) but it does't help
    ----------------------------------
    System Environment
    PHP5 + akelos_framework-0.8 (Official Release) = OK
    PHP4 + akelos_framework-0.8 (Official Release) = OK
    PHP5 + akelos_framework (Nightly builds) = OK
    PHP4 + akelos_framework (Nightly builds) = fails (Error as above)
    • CommentAuthorizafarid
     
    I've make changes as in following.

    File Name : AkCacheHandler.php
    Original Code
    =============
    function _startSession()
    {
    if(isset($_COOKIE[AK_SESSION_NAME])&& !isset($_SESSION)){
    require_once(AK_LIB_DIR.DS.'AkSession.php');
    $SessionHandler = &AkSession::initHandler();
    @session_start();
    }
    }
    ==================
    Changed To
    ==================
    function _startSession()
    {
    if(isset($_COOKIE[AK_SESSION_NAME])&& !isset($_SESSION)){
    require_once(AK_LIB_DIR.DS.'AkSession.php');
    $SessionHandler1 = AkSession::initHandler();
    $SessionHandler = &$SessionHandler1;
    @session_start();
    }
    }

    =======================
    Result:
    The webpage was displayed properly

    Question:
    Since I've change core library. Is the any impact on the overall framework functionality?