Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPublicSslKeys() must be an instance of Sk\SmartId\Api\string, string given #8

Open
urmasrosenberg opened this issue Apr 30, 2020 · 2 comments

Comments

@urmasrosenberg
Copy link

  • freshly installed Debian 10 in VirtualBox
  • installed docker and cloned demo
  • docker-compose up --build

Error after "Enter Portal" is pressed:

demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP Catchable fatal error: Argument 1 passed to Sk\SmartId\Api\SmartIdRestConnector::setPublicSslKeys() must be an instance of Sk\SmartId\Api\string, string given, called in /app/backend/vendor/sk-id-solutions/smart-id-php-client/src/Sk/SmartId/Api/Authentication.php on line 51 and defined in /app/backend/vendor/sk-id-solutions/smart-id-php-client/src/Sk/SmartId/Api/SmartIdRestConnector.php on line 240"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP Stack trace:"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 1. {main}() /app/backend/app/index.php:0"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 2. Silex\Application->run() /app/backend/app/index.php:28"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 3. Silex\Application->handle() /app/backend/vendor/silex/silex/src/Silex/Application.php:563"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /app/backend/vendor/silex/silex/src/Silex/Application.php:586"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /app/backend/vendor/symfony/http-kernel/HttpKernel.php:64"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 6. call_user_func_array:{/app/backend/vendor/symfony/http-kernel/HttpKernel.php:144}() /app/backend/vendor/symfony/http-kernel/HttpKernel.php:144"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 7. {closure:/app/backend/app/auth/sign-in-action.php:24-53}() /app/backend/vendor/symfony/http-kernel/HttpKernel.php:144"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 8. Sk\SmartId\Api\Authentication->createAuthentication() /app/backend/app/auth/sign-in-action.php:38"
demo_1 | [30-Apr-2020 05:43:45] WARNING: [pool www] child 459 said into stderr: "NOTICE: PHP message: PHP 9. Sk\SmartId\Api\SmartIdRestConnector->setPublicSslKeys() /app/backend/vendor/sk-id-solutions/smart-id-php-client/src/Sk/SmartId/Api/Authentication.php:51"

@san4io
Copy link

san4io commented Jun 22, 2020

Hello everyone.

I've got same issue. But I managed to find couple solutions for problems:

1 Solution: You need to upgrade php version in docker file.
2 Solution: You need to remove param types in vendor files:
\Sk\SmartId\Api\SmartIdRestConnector::setPublicSslKeys string $sslKeys to $sslKeys
\Sk\SmartId\Util\Curl::setPublicSslKeys string $public_keys to $public_keys

And it should work fine.

Good luck!

@urmasrosenberg
Copy link
Author

Thanks, tried solution 2 and it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants