开发者

Symfony with XAMPP on Windows XP SP3/Again/

This is what I get when try to run "generate:app fr开发者_StackOverflow社区ontend" :

C:\>php xampp\htdocs\development\sfprojects\jobeet\lib\vendor\symfony\data\bin\s
ymfony generate:app frontend
PHP Warning:  require_once(C:\config/..xampp/htdocs/development/sfprojects/jobee
t/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php): failed to open stre
am: No such file or directory in C:\config\ProjectConfiguration.class.php on lin
e 3

Warning: require_once(C:\config/..xampp/htdocs/development/sfprojects/jobeet/lib
/vendor/symfony/lib/autoload/sfCoreAutoload.class.php): failed to open stream: N
o such file or directory in C:\config\ProjectConfiguration.class.php on line 3
PHP Fatal error:  require_once(): Failed opening required 'C:\config/..xampp/htd
ocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload
.class.php' (include_path='.;C:C:\xampp\php\pear') in C:\config\ProjectConfigura
tion.class.php on line 3

Fatal error: require_once(): Failed opening required 'C:\config/..xampp/htdocs/d
evelopment/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.clas
s.php' (include_path='.;C:C:\xampp\php\pear') in C:\config\ProjectConfiguration.
class.php on line 3

C:\>

I thought it's something with PEAR, but I cant find a way to figure it out, nor I'm 100% it's PEAR, so...glad to get some help on the issue. What I've already tried is to rewrite multiple times php.ini if there's problem with locating pear.php, but I think, I tried all scenarios possible and that's not the solutions.So what to do from now on. Thanks -Leron


cd into xampp\htdocs\development\sfprojects\jobeet and run the command.

Also you may have the require path wrong if you created this as an embeded install (ie. you embeded symfony in lib/vendor of the project) Youre missing a slash:

C:\config/..xampp/htdocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php

should be:

C:\config/../xampp/htdocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php

So you need to change your require_once statement in projectConfiguration.class.php.

But that could just be because youre invoking the command from outside the project (although technically that should work if you have everything set up correct)...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜