Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage not working #2

Closed
Fynkymynky opened this issue Dec 16, 2014 · 3 comments
Closed

Storage not working #2

Fynkymynky opened this issue Dec 16, 2014 · 3 comments
Labels

Comments

@Fynkymynky
Copy link

Hi,

Thank you for making this.

I have installed and run the script but when I view the page on appspot.com I get a blank screen.And in the error logs of GAE

PHP Fatal error:  Uncaught exception 'ErrorException' with message 'file_get_contents(/base/data/home/apps/s~fxxxx/1.111/vendor/laravel/framework/src/Illuminate/Exception/resources/plain.html): failed to open stream: No such file or directory' in /base/data/home/apps/s~fxxxx/1.111/vendor/laravel/framework/src/Illuminate/Exception/PlainDisplayer.php:21
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'file_get_conten...', '/base/data/home...', 21, Array)
#1 /base/data/home/apps/s~fxxxx/1.111/vendor/laravel/framework/src/Illuminate/Exception/PlainDisplayer.php(21): file_get_contents('/base/data/home...')
#2 /base/data/home/apps/s~fxxxx/1.111/bootstrap/compiled.php(9306): Illuminate\Exception\PlainDisplayer->display(Object(Symfony\Component\Debug\Exception\FatalErrorException))
#3 /base/data/home/apps/s~fxxxx/1.111/bootstrap/compiled.php(9258): Illuminate\Exce in /base/data/home/apps/s~fxxxx/1.111/vendor/laravel/framework/src/Illuminate/Exception/PlainDisplayer.php on line 21

Do you have a solution to get laravel to work with GAE buckets? thanks

@shpasser
Copy link
Owner

Hello and thanks for reporting the issue.

  1. Please send me your workflow, so I will be able to reproduce the issue. By workflow I mean the way you installed things and their versions, a sample application would help a lot. In order to share the info please use one of your favourite sharing services like Dropbox, Box and such.

  2. Yeah I have GAE buckets working, in fact I'm using the default buckets in my applications.

  3. If you would like to help me investigate, please make a fresh install of Laravel 4.2 + gae-support, run the setup command, deploy it to GAE (appcfg.py update ./) and tell me if you still have the problem.

Thanks,

Ron.

@Fynkymynky
Copy link
Author

Thank you so much!

Two things, I was running the wrong command

appcfg.py -A myApp update appengine-try-php

Where I should have ran

appcfg.py update ./

And in php.ini - running you script produced

google_app_engine.allow_include_gs_buckets = "flowing-bonito-795.appspot.com"

I changed this to

google_app_engine.allow_include_gs_buckets = "bucketID"

And the page now loads!.

Thank you very much for this amazing script!

@shpasser
Copy link
Owner

I'm very happy I could be of some help to you.

I could add an option to define the bucket ID and otherwise use the default one as it is now. It should of work for you with the default bucket, unless somehow you have not activated it. I remember that the first time I created GAE app I had to activate its default storage bucket.

If you like my work, please leave me a star on github and packagist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants