Menu

Allowed memory size exhausted using Toolkit

metafaniel
2015-02-17
2015-02-18
  • metafaniel

    metafaniel - 2015-02-17

    I'm trying to Create a new class of CIsusing the XML Data Model Reference and the Toolkit. I've been testing my datamodel.my-module.xml and testing every change with the Toolkit. I haven't had any problems wqith this until now. Now I get the following PHP error:

    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 130968 bytes) in C:\Apache24\htdocs\iTop-2.1.0-beta\core\metamodel.class.php on line 838

    I've already tried to increase the memory_limit in php.ini; I have it now at 1024M. I have other configuration values as follows:
    post_max_size = 512M
    upload_max_filesize = 256M
    max_file_uploads = 20

    I'm still gettin the same error, thus I can't test my module with the Toolkit.
    What can I do? Can somebody help me please?

    THANKS

    Environment > Windows 9, Apache 2.4.9, PHP 5.5.14, MySQL 5.6.19, installed manually (No WAMP, XAMP or similar)This is my development environment.
    Thanks for the help

     
  • metafaniel

    metafaniel - 2015-02-18

    Following the PHP and MySQL settings guidelines I changed my configuration to the following:

    upload_max_filesize = 128M
    post_max_size = 256M
    max_allowed_packet=512M
    memory_limit = 1024M

    But my real problem was in a field node in the XML I'm working. I had the node the following way:

        <field id="model_name" xsi:type="AttributeExternalField">
          <extkey_attcode>model_name</extkey_attcode>
          <target_attcode>name</target_attcode>
        </field>
    

    The "extkey_attcode" was pointing to this same field, creating a loop maybe? So I changed the node to this:

        <extkey_attcode>model_id</extkey_attcode>
    

    The error the Toolkit was showing to me, wasn't very clear at all. Thanks anyway

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.