0
votes

I'm trying to generate Forms and Models files in symfony from command prompt but when i run php symfony propel:build-model it throws the below error

Fatal error: Out of memory (allocated 1978925056) (tried to allocate 40 bytes) in D:\xampp-old\htdocs\symfony_v1.2\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\vendor\propel-generator\classes\propel\engine\builder\om\php5\PHP5ObjectBuilder.php on line 133

I have changed memory limit in php.ini to memory_limit = 128M

But still it's throwing the above error.

Thanks

1
symfony 1.2 is not supported anymore ! please upgrade to 4.1 or at least 3.4 LTS symfony.com/roadmapSaif Eddin Gmati
@azjezz Symfony 1 is a completely different product than Symfony 2,3,4. Yes, upgrading is a good idea but it's probably legacy code and a complete rewrite can be challenging.Cerad
@Cerad ik ! but no documentation is available anymore, even the code is not on github ~ so its not easy to guess whats going on thereSaif Eddin Gmati
Of course it is not easy to guess the issue from a rather poorly written question. There are however a gazillion questions on how to troubleshoot out of memory configuration errors.Cerad
This is your best bet for symfony 1 compatibility. github.com/FriendsOfSymfony1/symfony1 It offers a ton of improvement over the final versions of 1.2 - 1.4.Jestep

1 Answers

-1
votes

Sorry but check your disk space, it looks like the available disk space for disk D(where xampp is installed) is very small.