Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

SignUp() function throws Fatal error

Đang mở
#465 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
authentication, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

grafik

Ngôn ngữ chính
PHP
Star
808
Fork
341
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của parse-community/parse-php-sdk

Tất cả issue của parse-community/parse-php-sdk

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.