Git Product home page Git Product logo

gaesupport's People

Contributors

shpasser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gaesupport's Issues

SQLSTATE[HY000] [2002] Error

My Laravel project runs fine from web server. One GAE, I get my login screen which accepts my username & password. Then I get this Laravel error:

SQLSTATE[HY000] [2002] Unable to find the socket transport "unix" - did you forget to enable it when you configured PHP?

public function createConnection($dsn, array $config, array $options)
{
    $username = array_get($config, 'username');

    $password = array_get($config, 'password');

    return new PDO($dsn, $username, $password, $options);
}

Any advice would be appreciated.

Eloquent Model cant be found

Hi Ron,
Sorry if I spam a lot here but i encounter some problem and I found no solution for this.

Recently i put in a new models extending Eloquent class so that I could easily use the model in doing the query.

For my existing User eloquent class is working fine but somehow for new one i tried, it said it cannot find the class. My new model is call invite.

This is what it is shown at the Google App Engine log.

PHP Fatal error: Class 'invite' not found in /base/data/home/apps//2.383622207391316526/server/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 861

I try out most of the stuff at the localhost where everything works fine but when upload up to the google app engine, it somehow cannot find the model now.

Please advise.

Regards,
Nick

"ReflectionException: Class path.storage does not exist"

Whoops, looks like something went wrong. It's run on gae with success but i get this error when i try in local development

ReflectionException thrown with message "Class path.storage does not exist"

Stacktrace:
#17 ReflectionException in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Container/Container.php:504
#16 ReflectionClass:__construct in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Container/Container.php:504
#15 Illuminate\Container\Container:build in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Container/Container.php:428
#14 Illuminate\Container\Container:make in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:462
#13 Illuminate\Foundation\Application:make in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Support/helpers.php:33
#12 app in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Support/helpers.php:775
#11 storage_path in /Users/bueno/Projects/beleza-novo/app/config/app.php:145
#10 require in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:44
#9 Illuminate\Filesystem\Filesystem:getRequire in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Config/FileLoader.php:246
#8 Illuminate\Config\FileLoader:getRequire in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Config/FileLoader.php:77
#7 Illuminate\Config\FileLoader:load in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Config/Repository.php:152
#6 Illuminate\Config\Repository:load in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Config/Repository.php:99
#5 Illuminate\Config\Repository:get in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Config/Repository.php:389
#4 Illuminate\Config\Repository:offsetGet in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:222
#3 Illuminate\Foundation\Application:startExceptionHandling in /Users/bueno/Projects/beleza-novo/vendor/laravel/framework/src/Illuminate/Foundation/start.php:150
#2 require in /Users/bueno/Projects/beleza-novo/bootstrap/start.php:60
#1 require_once in /Users/bueno/Projects/beleza-novo/public/index.php:35
#0 require in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php:106

GAE php5.5

Hi,
I encounter a problem for the new Google App Engine runtime for the php 5.5 that supported Curl now.
Previously, in PHP 5.4, everything is running fine for the development and production as well.

After adjusted to PHP 5.5, it seems like the error logging is having some error.
First, it seems like it cannot detect our environment using the 'hostname' where i have to explicit set it as follow :

$env = $app->detectEnvironment(function(){
      if (strpos($_SERVER['HTTP_HOST'],'.') === false) {  
          return 'local';  
      }
      return 'production';
    });

However, with this, it could detect it is in local mode now but it will have this error now.

Error in exception handler: The stream or file "/GAE/server/app/storage/logs/laravel.log" could not be opened: failed to open stream: No such file or directory in /GAE/bookme/GAE/server/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84

If i revert it back to 5.4 and everything works fine again. I also make sure my storage folder got all the read and write access.
Any advise on this ?

Thanks.

Regards,
Nick

Google Cloud SQL

Hi,
I am getting this error at the first line:
production.ERROR: exception 'ErrorException' with message 'PDO::__construct(): MySQL server has gone away' in /base/data/home/apps/s~/1.382141415555912450/server/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47

I have configured the database.php in this format
$mysql_array = array(
'driver' => 'mysql',
'unix_socket' => getenv('PRODUCTION_CLOUD_SQL_INSTANCE'),
'host' => '',
'database' => getenv('PRODUCTION_DB_NAME'),
'username' => getenv('PRODUCTION_DB_USERNAME'),
'password' => getenv('PRODUCTION_DB_PASSWORD'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
);

I am following the guidelines from here
https://gae-php-tips.appspot.com/2013/10/22/getting-started-with-laravel-on-php-for-app-engine/

Replaced the <your_project>/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php file as in this gist: https://gist.github.com/gmergoil/5693102

Somehow this is showing error when I want to access it.

Please help to advise as I have tried to search across the web but it seems like it does not have any solution.

Thanks.

Storage not working

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

Installing the package

Hi ,
I am quite new in the composer and it tried to install into my laravel.

I edited the app/config/app.php and add in this 'Shpasser\GaeSupport\GaeSupportServiceProvider' to the providers array. After that, I tried to run the command 'php artisan gae:setup --config your-app-id' but somehow it prompted some errors.

Error Output: PHP Fatal error: Class 'Shpasser\GaeSupport\GaeSupportServiceProvider' no
t found in laravel/bootstrap/compiled.php on line 4475

Please help to advise. Do i need to change something on the compiled.php?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.