Dev environment returns blank page

I am currently working on a Symfony project (const VERSION = '2.5.0) and I am using xampp with PHP 5.6.3.

When I start the development environment, it displays a blank page, but whenever I run the application in the prod environment, everything works fine.

Here is the php_error_log:

[06-May-2015 04:59:03 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 11 bytes) in C:\xampp\htdocs\Editracker\vendor\symfony\symfony\src\Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector.php on line 134

[06-May-2015 05:02:38 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in C:\xampp\htdocs\Editracker\app\bootstrap.php.cache on line 956

[06-May-2015 05:06:29 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 36 bytes) in C:\xampp\htdocs\Editracker\vendor\symfony\symfony\src\Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector.php on line 176

[06-May-2015 05:06:48 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in C:\xampp\htdocs\Editracker\vendor\symfony\symfony\src\Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector.php on line 176

[06-May-2015 05:11:36 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in C:\xampp\htdocs\Editracker\vendor\monolog\monolog\src\Monolog\Formatter\LineFormatter.php on line 111

[06-May-2015 05:34:34 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 5 bytes) in C:\xampp\htdocs\Editracker\app\bootstrap.php.cache on line 2001

[06-May-2015 05:38:14 Europe/Berlin] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 36 bytes) in C:\xampp\htdocs\Editracker\vendor\symfony\symfony\src\Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector.php on line 176

      

What could be wrong?

+3


source to share


1 answer


Your script exceeds your allowed maximum memory. I suspect this only happens in dev because of the profiling tools (toolbar at the bottom), especially if you have xdebug enabled.

You need to increase your memory limit. You can do this in your php.ini file by setting:

memory_limit = '256M'



or you can set this in the app_dev.php file if you want to increase the memory limit in development:

ini_set ('memory_limit', '256M');

See http://php.net/manual/en/ini.core.php#ini.memory-limit

0


source







All Articles