SignUp() function throws Fatal error
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- php
调研方向
Start at src/Parse/ParseClient.php:604 and follow the signup path through src/Parse/ParseUser.php:122, using the supplied PHP 7.2.12, SDK 1.6.0, and _User permission details. Reproduce the signUp() call and trace the permission failure; done would be a confirmed diagnosis with a clearly stated corrective change or documentation update.
由索引模型根据 Issue 内容生成。
描述
Hi, I have a problem creating new users.
Even if I pass true within the signUp() call I get an error message.
Now I created an user named Admin and a role named Admin but I really wanna know why the user creating with my settings doesnt work properly?
this is my source code:
require 'parse-php-sdk/autoload.php';
use Parse\ParseClient;
use Parse\ParseUser;
$master_key = "XXXXXXXXXXXX";
$app_id = "XXXXXXXXX";
ParseClient::initialize( $app_id, "", $master_key );
ParseClient::setServerURL('https://lalalala:443','parse');
$user = new ParseUser();
$user->set("username", $_POST['username']);
$user->set("password", $_POST['password']);
try
{
$user->signUp();
echo ParseUser::getCurrentUser()->getSessionToken();
}
catch (ParseException $ex)
{
echo "Error: " . $ex->getCode() . " " . $ex->getMessage();
}
Environment Details
- Your PHP Version: 7.2.12
- Your Parse PHP SDK Version: 1.6.0
- Your Operating System: Windows 10
This is the error message I get:
Fatal error: Uncaught Parse\ParseException: Permission denied for action create on class _User. in XXX\parse\parse-php-sdk\src\Parse\ParseClient.php:604 Stack trace:
#0 XXX\parse\parse-php-sdk\src\Parse\ParseObject.php(1264): Parse\ParseClient::_request('POST', 'classes/_User', NULL, '{"username":"ha...', false)
#1 XXX\parse\parse-php-sdk\src\Parse\ParseObject.php(1172): Parse\ParseObject::deepSave(Object(Parse\ParseUser), false)
#2 XXX\parse\parse-php-sdk\src\Parse\ParseUser.php(122): Parse\ParseObject->save()
#3 XXX\parse\create_user.php(20): Parse\ParseUser->signUp(true)
#4 {main} thrown in XXX\parse\parse-php-sdk\src\Parse\ParseClient.php on line 604
These are the permissions for the class User

- 主要语言
- PHP
- 星标
- 808
- 派生
- 340
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
parse-community/parse-php-sdk 的其他 Issue
-
Support PHP 8.4 and 8.5可能已有人在做 @zeliard91 于 24 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 72/100
parse-community/parse-php-sdk#529 · 1 条评论 ·
-
Queries on array values broken since 2.3.1可能已有人在做 @gut-puncture 于 152 天前认领。 未关闭bounty:$20 type:bug
难度 3/5 1-2 天 新手友好度 48/100
parse-community/parse-php-sdk#516 · 5 条评论 · 1 个 reaction ·
-
"unauthorized: master key is required" error on aggregate ParseQuery despite the master key is set未关闭
难度 3/5 1-2 天 新手友好度 35/100
parse-community/parse-php-sdk#466 ·
-
难度 3/5 1-2 天 新手友好度 25/100
parse-community/parse-php-sdk#457 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
parse-community/parse-php-sdk#456 · 1 条评论 ·
查看 parse-community/parse-php-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
codeigniter4/CodeIgniter4#10616 ·
维护者通常 1 天内回复
-
bug code quality
难度 2/5 1-3 小时 新手友好度 72/100
SemanticMediaWiki/SemanticMediaWiki#7149 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 1/5 1 小时以内 新手友好度 82/100
FriendsOfFlarum/upload#527 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
google/site-kit-wp#13825 ·
维护者通常 3 天内回复