every page error: Failed opening required (...stubs/func

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Moderators: dwhittle, Ian

every page error: Failed opening required (...stubs/func

Postby afxjzs » Thu Aug 11, 2011 9:44 pm

I just installed symfony and no matter what i do, i get this error...


Code: Select all
( ! ) Warning: require_once(S:\Local Projects\sites\symfony\Symfony\app/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php) [function.require-once]: failed to open stream: No such file or directory in S:\Local Projects\sites\symfony\Symfony\app\autoload.php on line 25
Call Stack
#   Time   Memory   Function   Location
1   0.0001   363440   {main}( )   ..\app_dev.php:0
2   0.0004   404784   require_once( 'S:\Local Projects\sites\symfony\Symfony\app\bootstrap.php.cache' )   ..\app_dev.php:13
3   0.0006   405264   require_once( 'S:\Local Projects\sites\symfony\Symfony\app\autoload.php' )   ..\bootstrap.php.cache:3

( ! ) Fatal error: require_once() [function.require]: Failed opening required 'S:\Local Projects\sites\symfony\Symfony\app/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php' (include_path='.;S:\Local Projects\sites\IBDevelopers.com\indieambassador;c:\wamp\bin\php\php5.3.5\PEAR') in S:\Local Projects\sites\symfony\Symfony\app\autoload.php on line 25
Call Stack
#   Time   Memory   Function   Location
1   0.0001   363440   {main}( )   ..\app_dev.php:0
2   0.0004   404784   require_once( 'S:\Local Projects\sites\symfony\Symfony\app\bootstrap.php.cache' )   ..\app_dev.php:13
3   0.0006   405264   require_once( 'S:\Local Projects\sites\symfony\Symfony\app\autoload.php' )   ..\bootstrap.php.cache:3



pear is installed and working from the command line. i am running php 5.3.5 and the configuration page says i only need to install the intl package. this happens on any page i go to besides /config.php

does anyone know what could be causing this? is there another source i need to include? please help.
afxjzs
Junior Member
 
Posts: 2
Joined: Thu Aug 11, 2011 9:28 pm

Re: every page error: Failed opening required (...stubs/fun

Postby afxjzs » Sat Aug 13, 2011 7:37 pm

anybody? bueller?


bump.
afxjzs
Junior Member
 
Posts: 2
Joined: Thu Aug 11, 2011 9:28 pm

Re: every page error: Failed opening required (...stubs/fun

Postby greg » Thu Dec 08, 2011 4:16 pm

Hi afxjzs,

I had the same problem; I resolved it by changing the include_path of the PEAR bin in the php.ini file
I guess you have already run a phpinfo() to check the path; mine is
Code: Select all
.;D:\softwares\wamp2\bin\php\php5.3.8\pear
User avatar
greg
Junior Member
 
Posts: 23
Joined: Tue Dec 06, 2011 7:27 am
Location: France, annecy

Re: every page error: Failed opening required (...stubs/fun

Postby eightballfreek » Wed Feb 15, 2012 6:10 pm

I have precisely the same problem. I am using a perfectly clean install of Wampserver 2.2c; I have enabled
Code: Select all
mod_rewrite
within
Code: Select all
httpd.conf
but otherwise haven't changed a thing. I have unzipped the entire Symfony package to
Code: Select all
c:\wamp2.2c\www\Symfony
and am accessing Symfony via the URL hxxp://localhost/Symfony/web/config.php (for example).

My
Code: Select all
config.php
works fine, and tells me to install the "intl" extension and also some kind of PHP accelerator like APC. That's all working okay. But when I go to the URL /web/app_dev.php/, I see the fatal error listed by the OP, on the same line - line 25 of
Code: Select all
/app/autoload.php
.

I'm so furious - I've spent about 5 hours trying desperately to get this to work, even just so I can start tinkering with it. So far I'm not enamoured of this framework; I'm very close to voting with my feet and choosing a different one, which works properly out of the box, just like everything else does (WordPress, Drupal, and so on).

Does anyone know what's going on? I've read Greg's answer and I can't find an installation directory for PEAR on my system - do I have to install and configure all that manually? If so, why does the web site not mention that anywhere??
eightballfreek
Junior Member
 
Posts: 1
Joined: Wed Feb 15, 2012 5:54 pm

Re: every page error: Failed opening required (...stubs/fun

Postby greg » Thu Mar 08, 2012 5:22 pm

hey eightballfreek,

I had this issue few months ago on Windows 7;
I work now with Symfony 2 installed on ubuntu 11.10, I had few troubles at the beginning, but everything works great now.

I don't think if the comparison with Drupal & WP is appropriate.
User avatar
greg
Junior Member
 
Posts: 23
Joined: Tue Dec 06, 2011 7:27 am
Location: France, annecy


Return to Installation and setup

Who is online

Users browsing this forum: No registered users and 1 guest