Backendless Support
 
Waiting for user's response

Failed to enable crypto on HTTP request

hello ! i'm new To backendless php sdk so i need your help .

so issue is i try to register user using php sdk and i get these error .

i don't know but may be these errors are because of sdk . because i download php sdk from any third party side .

here is my php sample code .

i added the screen shots of errors . please help me .

<?php

namespace my_app;

use backendless\Backendless;

use backendless\model\BackendlessUser;

include "E:/vendor/backendless/autoload.php";

Backendless::initApp('---------------------------', '---------------------------------', 'v1');

$user = new BackendlessUser();

$user->setEmail( "naseeb@backendless.com" );

$user->setPassword( "my_super_secret_password" );

try{

$registered_user = Backendless::$UserService->register( $user );

}

catch (BackendlessException $e){

$code = $e->getCode();

echo "$code";

}

?>

Leave a Comment

Comments (5)

photo
1

Hi naseebali

Our Php SDK is placed here: https://github.com/Backendless/PHP-SDK, have you downloaded it from here?

But unfortunately we don't support the Php SDK anymore.

According to your questions I've found a few links which maybe help you

https://stackoverflow.com/questions/14078182/openssl-file-get-contents-failed-to-enable-crypto

https://github.com/composer/composer/issues/5519

https://medium.com/@f.h.ferreira/file-get-contents-ssl-operation-failed-php-4297ad92977f

Regards, Vlad

photo
1

yes i downloaded the sdk from github

photo
photo
1

Your error is related to the end of the Free Plan on version 3. Please see this blog post for details: https://backendless.com/free-plan-in-backendless-3-x/

photo
1

Thanks .

ithink i should use JS sdk :P

photo
1

yeah, using JS-SDK is better =)

photo