SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: memorry error

  1. #1
    SitePoint Member
    Join Date
    Sep 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question memorry error

    hi i am new in php currently working on orange hrm open source software,last i have configured and installed orange hrm and apachi software but get error when i run software is "C:\wamp\www\orangehrm-2.4.2\lib\models\hrfunct\EmpLicenses.php on line 313" i dont know why it saying me that and code behin there is like this




    function getAssEmpLicenses($getID) {

    $this->getID = $getID;
    $tableName = 'HS_HR_EMP_LICENSES';
    $arrFieldList[0] = 'EMP_NUMBER';
    $arrFieldList[1] = 'LICENSES_CODE';
    $arrFieldList[2] = 'LICENSES_DATE';
    $arrFieldList[3] = 'LICENSES_RENEWAL_DATE';

    $sql_builder = new SQLQBuilder();

    $sql_builder->table_name = $tableName;
    $sql_builder->flg_select = 'true';
    $sql_builder->arr_select = $arrFieldList;

    $sqlQString = $sql_builder->selectOneRecordFiltered($this->getID);

    //echo $sqlQString;
    $dbConnection = new DMLFunctions();
    $message2 = $dbConnection -> executeQuery($sqlQString); //Calling the addData() function

    $i=0;

    while ($line = mysql_fetch_array($message2, MYSQL_NUM)) {

    for($c=0;count($arrFieldList)>$c;$c++)
    $arrayDispList[$i][$c] = $line[$c];

    $i++;

    }

    if (isset($arrayDispList)) {

    return $arrayDispList;

    } else {

    $arrayDispList = '';
    return $arrayDispList;

    }

    }

    plz help me out

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What is the error?

  3. #3
    SitePoint Zealot cpace1983's Avatar
    Join Date
    Sep 2009
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, please post the value out of your php.ini file:

    Memory_Limit = ?
    I am a Freelance Linux Consultant.
    I offer flat rate Linux support, as well as hourly support.
    Feel free to visit my blog, Ramblings of a Linux Administrator.

  4. #4
    SitePoint Member
    Join Date
    Sep 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    What is the error?
    this is error which comes up!!!! dont know what to to do?while my c is 16.5GB free memory..............


    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24576 bytes) in C:\wamp\www\orangehrm-2.4.2\lib\models\hrfunct\EmpLicenses.php on line 313

  5. #5
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Memory refers to RAM, not hard disk space. And allowed memory is not available memory, it's a limit set in your php.ini configuration. You'll want to increase that value then restart the web server.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •