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 7803313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:32:25+00:00 2026-06-02T01:32:25+00:00

I use symfony 1.4 (from a task) and Doctrine 1.2 to import data from

  • 0

I use symfony 1.4 (from a task) and Doctrine 1.2 to import data from a lot of files.

It works well, but after a few minutes I get an “Allowed memory size exhausted” fatal error from PHP, not in my code but in Doctrine…

Call Stack:
    0.0004     325216   1. {main}() C:\wamp\www\XPower\symfony:0
    0.0125     587704   2. include('C:\wamp\www\XPower\lib\vendor\symfony\lib\command\cli.php') C:\wamp\www\XPower\symfony:14
    1.9202    6981872   3. sfSymfonyCommandApplication->run() C:\wamp\www\XPower\lib\vendor\symfony\lib\command\cli.php:20
    1.9233    6983528   4. sfTask->runFromCLI() C:\wamp\www\XPower\lib\vendor\symfony\lib\command\sfSymfonyCommandApplication.class.php:76
    1.9234    6983688   5. sfBaseTask->doRun() C:\wamp\www\XPower\lib\vendor\symfony\lib\task\sfTask.class.php:97
    3.0794    7047088   6. dataImportTask->execute() C:\wamp\www\XPower\lib\vendor\symfony\lib\task\sfBaseTask.class.php:68
    3.2731    8663752   7. dataImportTask->traiterDossier() C:\wamp\www\XPower\lib\task\dataImportTask.class.php:36
    7.7762   17906824   8. dataImportTask->traiterDossier() C:\wamp\www\XPower\lib\task\dataImportTask.class.php:55
  264.4390  133557080   9. xPower::importerXml() C:\wamp\www\XPower\lib\task\dataImportTask.class.php:64
  264.5919  133609328  10. xPower::importerFichierXml() C:\wamp\www\XPower\lib\XPower.class.php:312
  265.4313  134048568  11. InverterTable->findOneBySerialNumber() C:\wamp\www\XPower\lib\XPower.class.php:445
  265.4313  134048776  12. Doctrine_Table->__call() C:\wamp\www\XPower\lib\XPower.class.php:445

i’ve tried adding some “->free()” to Doctrine calls, but now it seems to fail on InverterTable->findOneBySerialNumber(), a “magic” Doctrine method.

How can I fix my problem ? Do I need to write my own “findOneBySerialNumber” method, adding a call to “free()” ?

  • 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-02T01:32:26+00:00Added an answer on June 2, 2026 at 1:32 am

    It’s such a common problem with doctrine. You have to use pcntl_fork.

    I always use this gist as an example.

    pcntl_fork doesn’t work on Windows because it requires an OS that follows the POSIX standards.

    It might also be enought to just help doctrine free objects its objects, here’s a great answer about that.

    If you got some The MySQL server has gone away:

    When using Doctrine and MySQL, it might be necessary to add the following of the child thread code:

    Doctrine_Manager::connection()->close();
    

    This will close the database connection, and Doctrine will automatically recreate it at the first query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use symfony 1.4.11. I use sfDoctrineGuardPlugin and sfDoctrineApplyPlugin.All works fine, but... In my
I use symfony 1.4.11 with doctrine. And I use ReCaptcha from sfFormExtraPlugin. I have
I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 +
use this website a lot but first time posting. My program creates a number
This question is not strictly related to Symfony 2, but as I use Symfony
I have a data model in Doctrine/symfony. I have a 'Course' which has many
I use Symfony and Doctrine to generate forms for my CMSes. Lately I've been
I installed xampp and it works great with my symfony. I even made few
I use symfony 1.4.11 with doctrine. I have helper: function filterwords($text){ $filterWords=array ('some','filter','words'); $filterCount
I am trying to install symfony from subversion but when I try to commit,

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.