Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:52:24+00:00 2026-06-07T15:52:24+00:00

After using Yii’s CRUD generator (gii) and making some slight variations to the form

  • 0

After using Yii’s CRUD generator (gii) and making some slight variations to the form generated, I am getting this error message:

[14-Jul-2012 05:12:58 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 40 bytes) in D:\apps\trulabel\framework\db\ar\CActiveRecord.php on line 1794 

I believe I’ve narrowed down the issue to trying to pull in 22,000 rows from the item table. Seems a little odd to me, as I thought it would handle that without difficulty. Any suggestions on what might be going wrong, or a way around that?

Form:

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'spec-definition-form',
    'enableAjaxValidation'=>false,
)); ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

        <div class="row">
                <?php echo $form->labelEx($model,'labelTypeId'); ?>
        <?php echo $form->dropDownList($model, 'labelTypeId', CHtml::listData(LabelType::model()->findAll(), 'id', 'name')); ?>
                <?php echo $form->error($model,'labelTypeId'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'customer'); ?>
        <?php echo $form->dropDownList($model, 'customer', CHtml::listData(Tblarcustomer::model()->findAll(), 'Customer', 'Name')); ?>
        <?php echo $form->error($model,'customer'); ?>
    </div>

        <div class="row">
        <?php echo $form->labelEx($model,'item'); ?>
        <?php echo $form->dropDownList($model, 'item', CHtml::listData(TblimItem::model()->findAll(), 'Item', 'Item')); ?>
        <?php echo $form->error($model,'item'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:52:26+00:00Added an answer on June 7, 2026 at 3:52 pm

    Increase memory limit of php, it will solve your problem.

    You can increase memory using :

    ini_set('memory_limit','16M');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After using a caching plugin to fix numerous hotlinks, some of the generated html
I am facing some problems after using this example. In fact this is a
After using this code to get my link to show me 3 database entrys
After using the analyze tool, I am getting the following warning Object leaked: Object
After using IDA Pro to disassemble a x86 dll, I found this code (Comments
I'm always surprised that even after using C# for all this time now, I
After using this tool dating from 2002 the past years, I felt the need
After using AS2 for several years, I'm getting started with writing applications in AS3
I am using highcharts in my yii based application. after querying the database I
After using several non compatible barcode generators gems in rails 3.2, i am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.