Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 谷歌应用程序引擎上的Symfony应用程序,无效的bucket名称_Php_Symfony_Google App Engine_Google Cloud Storage - Fatal编程技术网

Php 谷歌应用程序引擎上的Symfony应用程序,无效的bucket名称

Php 谷歌应用程序引擎上的Symfony应用程序,无效的bucket名称,php,symfony,google-app-engine,google-cloud-storage,Php,Symfony,Google App Engine,Google Cloud Storage,我想在google app engine上使用Symfony应用程序来创建API,到目前为止我安装了该应用程序,但当我点击本地GAE上的Run和Browse时,显示了以下错误 这是设置了bucket名称的my app.yml文件 # Copyright 2015 Google Inc. All Rights Reserved. application: rtw-api runtime: php55 api_version: 1 threadsafe: true handlers: # tel

我想在google app engine上使用Symfony应用程序来创建API,到目前为止我安装了该应用程序,但当我点击本地GAE上的Run和Browse时,显示了以下错误

这是设置了bucket名称的my app.yml文件

# Copyright 2015 Google Inc. All Rights Reserved.
application: rtw-api
runtime: php55
api_version: 1
threadsafe: true

handlers:
# tell appengine where our static assets live
- url: /bundles
  static_dir: web/bundles

- url: /robots.txt
  static_files: web/robots.txt
  upload: web/robots.txt

- url: /favicon.ico
  static_files: web/favicon.ico
  upload: web/favicon.ico

# a script to clear our cache
- url: /clear_cache
  script: web/clear_cache.php
  login: admin

# the symfony front controller
- url: /.*
  script: web/app.php

env_variables:
  GCS_BUCKET_NAME: "rtw_api"

skip_files:
  - (.*/)?Tests\/Fixtures\/(.*)
  - ^app\/cache\/(.*)
这是我的php.ini文件

; Copyright 2015 Google Inc. All Rights Reserved.
display_errors=0
google_app_engine.enable_functions="php_sapi_name, libxml_disable_entity_loader"
google_app_engine.allow_include_gs_buckets=rtw_api
我已经为我的项目创建了bucket,你可以在这里看到

出于某种原因,symfony将None字符串追加到bucket名称中

以上所有内容仅在开发和调试环境设置为true时显示

$kernel = new AppKernel('dev',true);
如果我把它换成

$kernel = new AppKernel('prod',false);
我得到了一个很好的主页文本,好像一切都在进行中

有没有办法用水桶解决这个问题


谢谢

您是否将此作为项目的起点?这不是对您问题的回答,但在GCS文档中指出,在bucket名称中使用下划线,
\uu
:我建议尝试使用bucket名称的完整表示法,I.s.gs://rtw api(而不仅仅是rtw api)