gpt4 book ai didi

php - Symfony Doctrine 数据加载段错误

转载 作者:行者123 更新时间:2023-12-04 06:49:56 25 4
gpt4 key购买 nike

我正在学习 Symfony Jobeet 教程,并在尝试从我的设备文件加载数据时遇到段错误。

PHP 5.2.6-1+lenny8 和 Suhosin-Patch 0.9.6.2 (cli), S
symfony 1.4.5 版

我正在使用 Doctrine 插件。

我的固定装置如下:

/data/fixtures/categories.yml

JobeetCategory:
design:
name: Design
programming:
name: Programming
manager:
name: Manager
administrator:
name: Administrator

/data/fixtures/jobs.yml
JobeetJob:
job_sensio_labs:
JobeetCategory: programming
type: full-time
company: Sensio Labs
logo: sensio-labs.gif
url: http://www.sensiolabs.com/
position: Web Developer
location: Paris, France
description: |
You've already developed websites with symfony and you want to work
with Open-Source technologies. You have a minimum of 3 years
experience in web development with PHP or Java and you wish to
participate to development of Web 2.0 sites using the best
frameworks available.
how_to_apply: |
Send your resume to fabien.potencier [at] sensio.com
is_public: true
is_activated: true
token: job_sensio_labs
email: job@example.com
expires_at: '2010-10-10'

job_extreme_sensio:
JobeetCategory: design
type: part-time
company: Extreme Sensio
logo: extreme-sensio.gif
url: http://www.extreme-sensio.com/
position: Web Designer
location: Paris, France
description: |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in.

Voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
how_to_apply: |
Send your resume to fabien.potencier [at] sensio.com
is_public: true
is_activated: true
token: job_extreme_sensio
email: job@example.com
expires_at: '2010-10-10'

expired_job:
JobeetCategory: programming
company: Sensio Labs
position: Web Developer
location: Paris, France
description: Lorem ipsum dolor sit amet, consectetur adipisicing elit.
how_to_apply: Send your resume to lorem.ipsum [at] dolor.sit
is_public: true
is_activated: true
created_at: '2005-12-01 00:00:00'
token: job_expired
email: job@example.com
<?php for ($i = 100; $i <= 130; $i++): ?>
job_<?php echo $i ?>:
JobeetCategory: programming
company: Company <?php echo $i."\n" ?>
position: Web Developer
location: Paris, France
description: Lorem ipsum dolor sit amet, consectetur adipisicing elit.
how_to_apply: |
Send your resume to lorem.ipsum [at] company_<?php echo $i ?>.sit
is_public: true
is_activated: true
token: job_<?php echo $i."\n" ?>
email: job@example.com

<?php endfor ?>

我完全按照教程的说明进行操作,我在第 7 天 ( http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07) 的工作类别模块创建然后更新数据库。

我真的不确定是什么原因造成的。

有任何想法吗?

谢谢

最佳答案

段错误通常是不正确的操作码缓存或损坏的模块。我会先禁用像 apc 这样的操作码缓存,如果问题仍然存在,请一次继续禁用 php-modules 以确定哪个给你带来问题。

如果即使这样也不起作用,请尝试升级 php(5.2.13 或 5.3.2 被认为是稳定的),如果问题在最小用例中仍然存在,请向 bugs.php.net 报告错误。

关于php - Symfony Doctrine 数据加载段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3276294/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com