SignUp() function throws Fatal error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- authentication, backend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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

- Lingua principale
- PHP
- Stelle
- 808
- Fork
- 340
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di parse-community/parse-php-sdk
-
Support PHP 8.4 and 8.5Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 72/100
parse-community/parse-php-sdk#529 · 1 commento ·
-
bounty:$20 type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
parse-community/parse-php-sdk#516 · 5 commenti ·
-
"unauthorized: master key is required" error on aggregate ParseQuery despite the master key is setAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
parse-community/parse-php-sdk#466 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
parse-community/parse-php-sdk#457 · 1 commento ·
-
parse query for phpAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
parse-community/parse-php-sdk#456 · 1 commento ·
Tutte le issue di parse-community/parse-php-sdk
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
awslabs/aidlc-workflows#1879 ·
I maintainer di solito rispondono entro 1 giorno
-
bug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
MagnaCapax/PMSS#1011 ·
I maintainer di solito rispondono entro 5 giorni
-
Talk Review
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
socallinuxexpo/scale-drupal#351 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
code4romania/cpc#47 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno