jjzjj

client_submode_support

全部标签

php - Yii2 类 yii\authclient\clients\GoogleOAuth 不存在

我使用dektrium/yii2-user(在一个项目上)和yiisoft/yii2-authclient(在另一个项目上)通过Google帐户登录。前段时间一切正常,但我想在上次Composer更新后发生了一些变化,现在我收到错误消息:“类yii\authclient\clients\GoogleOAuth不存在”,当我尝试打开登录页面时。有没有人有同样的问题或知道出了什么问题?谢谢 最佳答案 yii2-authclient最新版本修改,不向下兼容。Readabouttheupgradeprocesshere.两种解决方案:修改c

php - 获取用户信息 Google-PHP-Client 问题?

首先,我只想说一下我需要从用户那里获得哪些信息。全名(名字/姓氏)电子邮件地址(主要帐户,而不是@google-plus.com)位置(国家、州、城市、地址)YouTube用户名为了获得所有这些信息,我继续下载/安装位于here的PHP客户端库.由于这是我第一次使用API,我环顾四周,发现了以下范围:$client->setScopes(array('https://www.googleapis.com/auth/youtube.readonly','https://www.googleapis.com/auth/userinfo.profile','https://www.googl

php - 谷歌地图 PHP CURL 问题 "Your client has issued a malformed or illegal request. That’ s 我们都知道。”

我有一个使用CURL和GoogleMapsAPI返回地址坐标的函数。代码如下:functionget_coordinates($address_string){$address=urlencode($address_string);$url="https://maps.googleapis.com/maps/api/geocode/json?address=".$address."&key=".$api_key;$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER

php - Illuminate\Support\MessageBag::has() 缺少参数 1

当我访问我的Laravel项目时。它返回以下错误。如何解决。Missingargument1forIlluminate\Support\MessageBag::has(),calledin/var/www/laravel/vendor/laravel/framework/src/Illuminate/Support/ViewErrorBag.phponline92anddefined(View:/var/www/laravel/resources/views/welcome.blade.php)在我的Blade代码中:@if($errors->has())@foreach($error

php - 发生客户端错误 : Could not create storage directory:/tmp/Google_Client/00

此错误对YoutubeAPIv3.0意味着什么:Aclienterroroccurred:Couldnotcreatestoragedirectory:/tmp/Google_Client/00我在Google的文档中使用PHPYoutubeAPI找到here. 最佳答案 我在不更改GoogleAPI的任何行的情况下解决了这个问题。在您的PHP代码中,您只需要指定缓存文件夹所在的位置:$config=newGoogle_Config();$config->setClassConfig('Google_Cache_File',arra

在类 Illuminate\Support\Fluent 中找不到 Phpstorm 9 EAP 方法 "unique"

我正在做一个网站项目,我正在使用Laravel5和PHPStorm9EAP。我创建了一个迁移并使用此代码$table->string('name')->unique();并且IDE突出显示了unique()和显示一条消息Illuminate\Support\Fluent类中未找到“唯一”方法。这是我的迁移:classCreateProductsTableextendsMigration{/***Runthemigrations.**@returnvoid*/publicfunctionup(){Schema::create('products',function(Blueprint$t

php - 拉维尔 5.4 : The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths

这是我的网络应用程序的Laravel5.4设置。页面加载时重复发生一件事。因此,我无法在我的页面上获取数据。运行时异常:唯一受支持的密码是具有正确key长度的AES-128-CBC和AES-256-CBC。反复出现这个错误如有任何帮助,我将不胜感激。 最佳答案 确保您的应用配置已设置key和密码。还要确保您的.env文件没有空的APP_KEY条目。最后运行:phpartisankey:generate 关于php-拉维尔5.4:TheonlysupportedciphersareAES-

php - 编译失败 : POSIX collating elements are not supported

我刚刚在我们的服务器上安装了一个网站和旧版CMS,但出现了POSIX编译错误。幸运的是,它只出现在后端,但客户很想摆脱它。Warning:preg_match_all()[function.preg-match-all]:Compilationfailed:POSIXcollatingelementsarenotsupportedatoffset32in/home/kwecars/public_html/webEdition/we/include/we_classes/SEEM/we_SEEM.class.phponline621据我所知,这是导致问题的较新版本的PHP。这是代码:fu

php - [Microsoft][SQL Server Native Client 11.0][SQL Server]无效的对象名称

我想访问MSSQLServer并进行选择查询。我已经安装了dll文件并正在使用sqlsrv_query。连接成功但我得到:[Microsoft][SQLServerNativeClient11.0][SQLServer]Invalidobjectnameaserror我正在使用PHP5.3.1版连接后我有这段代码$sql="SELECTid,latitude,longitudefromjob";$stmt=sqlsrv_query($conn,$sql);if($stmt===false){die(print_r(sqlsrv_errors(),true));}while($row=s

php - 警告 : ssh2_connect(): Failed overriding server to client COMP method

我在为PHP中的SSHsession启用压缩时遇到问题。部分代码:$methods=array('server_to_client'=>array('comp'=>'zlib'));if(!($con=ssh2_connect("10.214.201.31",22,$methods))){...执行期间的警告(通过httpd或phpcli):Warning:ssh2_connect():FailedoverridingservertoclientCOMPmethod压缩不起作用(通过ssh2_scp_recv下载测试文件的时间没有改变)。设置客户端到服务器压缩后出现类似警告。PHPVe