Unable to convert variable to GMP when initializing Bitpay client class (Laravel)

+1 vote

I have generated my private, public and sin keys according to the documentation, and added their respective paths to my yaml config file.
I can load the main bitpay class fine, however I cannot initialize the client class, as I receive the following error:

PHP warning: gmp_cmp(): Unable to convert variable to GMP - string is not an integer in /home/vagrant/laravel/vendor/bitpay/php-client/src/Bitpay/Math/GmpEngine.php on line 26

What would cause this error?

Sep 10, 2018 in Blockchain by digger
• 27,620 points
27 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Bitpay automatically uses the encrypted file store, however the docs suggest that it uses the un-encrypted one by default. Changed it and it works.

answered Sep 10, 2018 by slayer
• 29,040 points

Related Questions In Blockchain

0 votes
1 answer

Unable to change a state variable in a contract

I am assuming that the issue is ...READ MORE

answered Oct 29, 2018 in Blockchain by Christine
• 15,790 points
14 views
+4 votes
2 answers

I am unable to connect Ganache with Truffle/Npm Dev server. Pls help.

The issue is at CurrentProvider. Give the url ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 16,450 points

edited Oct 11, 2018 by Omkar 215 views
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
208 views
+1 vote
1 answer

Unable to send payment using API. Please help.

Firstly, check your passwords, your API code and your wallet ...READ MORE

answered Apr 3, 2018 in Blockchain by Christine
• 15,790 points
92 views
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,320 points
43 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
64 views
0 votes
1 answer
0 votes
1 answer

How to solve Runtime error when querying Hyperledger?

OCI is open container initiative.. The error ...READ MORE

answered Jul 9, 2018 in Blockchain by slayer
• 29,040 points
177 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.