I deployed small app in symfony 2.8 on host without ssh. Copied all files without cache and log, cloned DB.
When i go to address: address.com/web/app.php, app show errors:
Warning: SessionHandler::read(): open(/web/clients/www/3/a/8/8/address.com/tmp/sess_9ff0c94b9bd261554814764d051524e0, O_RDWR) failed: No such file or directory (2) in /app/cache/prod/classes.php on line 431
Warning: include(/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php): failed to open stream: No such file or directory in /vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php' for inclusion (include_path='.:/opt/httpd-clients/php-7.2.10/lib/php') in /vendor/composer/ClassLoader.php on line 444
Warning: include(/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php): failed to open stream: No such file or directory in /vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/web/clients/www/3/a/8/8/address.com/vendor/composer/../twig/twig/lib/Twig/Cache/Filesystem.php' for inclusion (include_path='.:/opt/httpd-clients/php-7.2.10/lib/php') in /vendor/composer/ClassLoader.php on line 444
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Twig_Cache_Filesystem" from the global namespace. Did you forget a "use" statement? in /web/clients/www/3/a/8/8/address.com/app/cache/prod/classes.php:3212
Stack trace: #0 /web/clients/www/3/a/8/8/address.com/app/cache/prod/classes.php(3149): Twig_Environment->setCache('/web/clients/ww...')
#1 /web/clients/www/3/a/8/8/address.com/app/cache/prod/appProdProjectContainer.php(2476): Twig_Environment->__construct(Object(Symfony\Bundle\TwigBundle\Loader\FilesystemLoader), Array)
#2 /web/clients/www/3/a/8/8/address.com/app/bootstrap.php.cache(2271): appProdProjectContainer->getTwigService()
#3 /web/clients/www/3/a/8/8/address.com/app/cache/prod/appProdProjectContainer.php(2505): Symfony\Component\DependencyInjection\Container->get('twig')
#4 /web/clients/www/3/a/8/8/address.com/app/bootstrap.php.cache(2271): appProdProjectContainer->getTwig_Controller_ExceptionService()
#5 /web/clients/www/3/a/8/8/address.com/app/cache in /app/cache/prod/classes.php on line 3212
Warning: SessionHandler::write(): open(/web/clients/www/3/a/8/8/address.com/tmp/sess_9ff0c94b9bd261554814764d051524e0, O_RDWR) failed: No such file or directory (2) in /app/cache/prod/classes.php on line 435
Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /web/clients/www/3/a/8/8/address.com/tmp) in %s%02d on line 0
I add chmod 777 to cache and log dir.
Any ideas?
It's a typical permissions issue. You should clear you cache, then add recursively the appropriate permissions like this:
chmod -R 775 /cache
Related
I just downloaded a Laravel script
then I used from it in my local host (wamp) without any problem but now when I want to use from it in my host, it shows: 500 error
error_log file
[12-Feb-2019 16:59:48 Asia/Tehran] PHP Warning: include(/home/grammer/public_html/test/core/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php):
failed to open stream: No such file or directory in
/home/grammer/public_html/test/core/vendor/composer/ClassLoader.php on
line 444 [12-Feb-2019 16:59:48 Asia/Tehran] PHP Warning: include():
Failed opening
'/home/grammer/public_html/test/core/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php'
for inclusion
(include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in
/home/grammer/public_html/test/core/vendor/composer/ClassLoader.php on
line 444 [12-Feb-2019 16:59:48 Asia/Tehran] PHP Fatal error: Uncaught
Error: Class 'Illuminate\Filesystem\Filesystem' not found in
/home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
0 /home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(144):
Illuminate\Foundation\Application->registerBaseBindings()
1 /home/grammer/public_html/test/core/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/grammer/p...')
2 /home/grammer/public_html/test/index.php(38): require_once('/home/grammer/p...')
3 {main} thrown in /home/grammer/public_html/test/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
on line 175
composer install
The error is telling you clearly, missing basically not find vendor which is the base larvel and run the command in the folder of your laravel project and do not forget to configure your .env file eventually
I have installed wordpress for cpanel via Softaculous app installer' that i installed theme. Theme is working properly after one day my font page not working.
This is error long.
[29-Apr-2018 07:56:23 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:56:23 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-2018 07:57:00 UTC] PHP Fatal error: require(): Failed opening required '/home/eco/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 166
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(/home/eco/public_html/wp-content/themes/Vangard/functions.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:27 UTC] PHP Warning: include(): Failed opening '/home/eco/public_html/wp-content/themes/Vangard/functions.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/eco/public_html/wp-settings.php on line 426
[30-Apr-2018 02:09:28 UTC] PHP Fatal error: Class 'FT_scope' not found in /home/eco/public_html/wp-content/themes/Vangard/header.php on line 28
Would you tell me how to fix it. thanks
It seems to me the error is because of a file permission issue.
If this is a local setup on your own system then simply right click on the wordpress installation (root project folder) and set them to 755
or set owner with all permissions and the rest with only access files
apply this recursively to all folders
you have incorrect permissions / file ownership on your project.
the best and easiest way to do it by using the following:
$ sudo find /path/to/site -type f -exec chmod 644 {} \;
$ sudo find /path/to/site -type d -exec chmod 755 {} \;
this will find everything in site root that is a file and set permissions to 644, then it will find everything that a directory and set it to 755.
if the permissions error returns after that, check root isn't the owner (by running ls -la on your directory to bring up the files in list view with file permissions and owners). If this is the case, set it to your home user or apache:
$ sudo chown -R /path/to/site my-user:www-data
my web site is https://antilicense.com/
and I give a white page
PHP Fatal error: require(): Failed opening required '.../vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in .../vendor/composer/autoload_real.php on line 66
my error log:
[06-Mar-2018 10:31:34 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:34 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
#0 /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(144): Illuminate\Foundation\Application->registerBaseBindings()
#1 /home/antilic1/public_html/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/antilic1/...')
#2 /home/antilic1/public_html/public/index.php(38): require_once('/home/antilic1/...')
#3 {main}
thrown in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 175
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
when I unzip files all things is fine
but after few minutes I see white page...
I try:
php artisan key:generate
composer update --no-scripts
composer update
composer install
composer dump-autoload
but I still have problem
please help me. tnx.
note1: I upgraded my laravel 5.5 to 5.6
note2: It works on local host fine... but when I move it to server I see error log
this is my php info https://antilicense.com/info.php
It seems the vendor files are not in the system. Can you do composer update and see ?
Also make sure to set the file folder permission properly. Change all the directories to 755 and all the files to 644.
To change all the directories to 755 (drwxr-xr-x):
find /home/antilic1/public_html -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find /home/antilic1/public_html -type f -exec chmod 644 {} \;
You must remove vendor directory in your shared host and run below code in your local project:
composer dumpautoload
and copy vendor directory from local project to shared host.
I am getting some weird errors on my wordpress website today even though I haven't installed/updated any plugin etc. So far I have tried disabling all the plugins, changing themes and even checked permission for wordpress folders and files.
Everything looks good. I have even updated PHP version for my website from 5.6 to 7.0 and increased the update file limit from 8MB to 16 MB as suggested on wordpress but nothing has worked. These are the following errors that I am getting.
On My-Admin Page
careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php): failed to open stream: Permission denied in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
Warning: include(): Failed opening
'/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php'
for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
On Manage Themes Page in My Admin
Warning:
include(/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php): failed to open stream: Permission denied in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
Warning: include(): Failed opening
'/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php'
for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
Warning: An unexpected error occurred. Something may be wrong with
WordPress.org or this server’s configuration. If you continue to have
problems, please try the support forums. (WordPress could not
establish a secure connection to WordPress.org. Please contact your
server administrator.) in
/home/careeing/public_html/oldbookdepot.in/wp-includes/update.php on
line 499
On the home page of website
Warning:
include(/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php): failed to open stream: Permission denied in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
Warning: include(): Failed opening
'/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/functions.php'
for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in
/home/careeing/public_html/oldbookdepot.in/wp-settings.php on line 425
Fatal error: Uncaught Error: Call to undefined function
twentyfourteen_has_featured_posts() in
/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/page.php:19
Stack trace: #0
/home/careeing/public_html/oldbookdepot.in/wp-includes/template-loader.php(74):
include() #1
/home/careeing/public_html/oldbookdepot.in/wp-blog-header.php(19):
require_once('/home/careeing/...') #2
/home/careeing/public_html/oldbookdepot.in/index.php(17):
require('/home/careeing/...') #3 {main} thrown in
/home/careeing/public_html/oldbookdepot.in/wp-content/themes/twentyfourteen/page.php
on line 19
I'm following the official google tutorial 'How to Run Symfony Hello World on App Engine' on how to deploy https://github.com/GoogleCloudPlatform/symfony-standard.git
I've setup the default cloud storage bucket but I haven't setup the SQL database because I'm not using doctrine at this point.
When running the app locally using GoogleAppEngineLauncher the following error is shown:
Fatal error: Uncaught exception 'InvalidArgumentException' with message '[WARNING 1549] failed to load external entity "file:////Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" (in n/a - line 0, column 0) [WARNING 3084] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'file:////Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. Skipping the import. (in in_memory_buffer - line 8, column 0) [ERROR 1845] Element '{http://symfony.com/schema/dic/services}container': No matching global declaration available for the validation root. (in /Users/gl/Repos/symfony-standard/web/ - line 5, column 0)' in /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:96 Stack trace: #0 /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Compone in /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 234
When deploying to AppEngine the following error is shown before displaying the correct output which is the word 'homepage':
Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Homepage.
I don't understand what I'm doing wrong..
Try running app/console server:run .. you shouldn't have any issues..
This is because Google Apps Engine has a read-only filesystem by "default".
Your file "stream"/"handler" is the prefix "gs://myfiles" rather than the traditional "file:///tmp/.
Symfony2 "standard" is broken when deployed with Google App Engine (Symfony needs to be able to create cache files, class maps, etc..).
I would recommend starting with a crash course at https://cloud.google.com/appengine/docs/php/googlestorage/
This bundle looks like a decent shot to abstract away the filesystem: https://github.com/KnpLabs/Gaufrette .. I will be testing this shortly and will keep ya'll posted.
You're not doing anything wrong. There is an issue in the PHP Runtime for the Google App Engine Launcher. Until it is fixed, the best way to get around the issue is to edit the Symfony\Component\DependencyInjection\Loader\XmlFileLoader class and make the function "validateSchema" return true.
EDIT
The above is referring to the problem you encountered locally ("Failed to load external entity"). To solve your second problem, I believe clearing the cache (using the /clear_cache URL specified here) will fix the issue.