我正在尝试加载fixture,但myproject在CLI中出错并启动索引器进程。
我试过了:
我的平台是Windows上的Symfony 1.0
有些人似乎也有same issue in the past。
C:\web\my_project>symfony propel-load-data backend
>> propel load data from "C:\web\my_project\data\fixtures"
PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\php\PEAR\symfony\vendor\pake\pakeFunction.php:366) in C:\php\PEAR\symfony\storage\sfSessionStorage.class.php on line 77
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\php\PEAR\symfony\vendor\pake\pakeFunction.php:366) in C:\php\PEAR\symfony\storage\sfSessionStorage.class.php on line 77
PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\php\PEAR\symfony\vendor\pake\pakeFunction.php:366) in C:\php\PEAR\symfony\storage\sfSessionStorage.class.php on
line 77
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\php\PEAR\symfony\vendor\pake\pakeFunction.php:366) in C:\php\PEAR\symfony\storage\sfSessionStorage.class.php on line
77
答案 0 :(得分:1)
此错误是由于模型中某个重写的保存方法出现问题。
该错误导致propel-load-data
中断
答案 1 :(得分:1)
不应该为CLI任务触发会话内容(逻辑上,您在使用CLI时没有进行sfWebRequest),因此代码中的某些内容正在做出假设。我想你正在尝试使用会话存储或某个对象的save()方法中的实例sfContext做某事 - 如果你需要这样做,总是在你的行动中做到这一点而不是模特。
答案 2 :(得分:1)