Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

SignUp() function throws Fatal error

Aperta
#465 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

grafik

Lingua principale
PHP
Stelle
808
Fork
340
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di parse-community/parse-php-sdk

Tutte le issue di parse-community/parse-php-sdk

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.