Symfony1 关于管理模块。桌子的大小可能很重要?
当我试图显示管理员列表时,出现以下错误 模块(如您所见,我发送了两个请求:第一个是18:45,第二个是 18:48秒)。该模型在表中有9500行Symfony1 关于管理模块。桌子的大小可能很重要?,symfony1,Symfony1,当我试图显示管理员列表时,出现以下错误 模块(如您所见,我发送了两个请求:第一个是18:45,第二个是 18:48秒)。该模型在表中有9500行 [Mon Jan 30 18:45:07 2012] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/javier/ eclipse-php/workspace/prueba/lib/vendor/
[Mon Jan 30 18:45:07 2012] [error] [client 127.0.0.1] PHP Fatal
error: Maximum execution time of 30 seconds exceeded in /home/javier/
eclipse-php/workspace/prueba/lib/vendor/symfony/lib/plugins/
sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection.php on line
473
[Mon Jan 30 18:45:07 2012] [error] [client 127.0.0.1] PHP Fatal
error: Call to a member function shutdown() on a non-object in /home/
javier/eclipse-php/workspace/prueba/lib/vendor/symfony/lib/util/
sfContext.class.php on line 594
[Mon Jan 30 18:45:08 2012] [notice] child pid 1340 exit signal
Segmentation fault (11)
[Mon Jan 30 18:48:02 2012] [error] [client 127.0.0.1] File does not
exist: /home/javier/eclipse-php/workspace/prueba/web/favicon.ico
[Mon Jan 30 18:48:34 2012] [error] [client 127.0.0.1] PHP Fatal
error: Maximum execution time of 30 seconds exceeded in /home/javier/
eclipse-php/workspace/prueba/lib/vendor/symfony/lib/plugins/
sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection.php on line
473
[Mon Jan 30 18:48:35 2012] [notice] child pid 1339 exit signal
Segmentation fault (11)
我没有任何问题与其他管理模块基于其他
行数较少的模型…那么我该怎么办?在/etc/php5/apache2/php.ini中
我将内存限制设置为4096MB(内存限制=4096M)
提示:这正是Collection.php的第473行所写的内容:
/**
* for some weird reason in_array cannot be used here (php
bug ?)
*
* if used it results in fatal error : [ nesting level too
deep ]
*/
foreach ($this->data as $val) { // line 473
if ($val === $record) {
return false;
}
}
这是在sfContext.class.php的第594行中写的:
/**
* Execute the shutdown procedure.
*
* @return void
*/
public function shutdown()
{
// shutdown all factories
if($this->has('user'))
{
$this->getUser()->shutdown(); //line 594
$this->getStorage()->shutdown();
}
有什么帮助吗
sf 1.4
哈维尔我也有同样的问题。我解决了以下问题:
filter:
class: false
在generator.yml中
我的过滤器中的select表单中有太多选项如果需要处理大量数据,可以更改php配置的最大执行时间参数。但是这个问题过去是一个糟糕设计的连续结果,我有一个管理模块,表中包含750000条非平凡记录,从未遇到过这种问题。它可以在我的Mac和我们的Linux服务器上正常工作(都使用MySQL)。因此,您的数据库设计或使用的表查询可能有问题。您是否尝试为该模块的查询指定并创建自定义表_方法?