Comments (7)
Normally, yes, @
error suppression is a bad thing. In this case it's done to cut down on the amount of deprecation errors that are thrown, and the error suppression will be removed in v3. In v3 the start()
method will not be nearly as open-ended as it currently is and will require a Vonage\Verify\Request
object.
That being said, passing a Vonage\Verify\Request
object into start()
should not generate any errors at all, as it has all the information necessary to create the internal objects and make the HTTP request to us. Can you provide the full stack trace of the error you are getting?
from nexmo-laravel.
Thanks for the answer @dragonmantank !
Here is my call: $verification = Nexmo::verify()->start(new Request($phone, 'Mealthi'));
And then here the exception thrown:
As I mentioned above, the problem is happening in the class /Verify/Client.php
from nexmo-laravel.
Sorry for the bit of the delay, New Years and all.
Are you running PHP 8? I know the error handler signature changed between 7 and 8, and we recently pushed a fix to handle that around the PHP 8 release date. Can you try upgrading the packages to see if that fixes it? PHP 8 support was added in 2.7.0 of our core library. You can check which version of our library you are using with:
composer info vonage/client-core
or composer info nexmo/client-core
If the library is less than 2.7.0, you should be able to update it with:
composer update nexmo/laravel --with-dependencies
should work. You may need to try
composer update nexmo/laravel --with-all-dependencies
from nexmo-laravel.
Hi @dragonmantank ! Happy New Year!
I tried to info command to see the version: 2.6.0
So I called composer update nexmo/laravel --with-dependencies
and I got the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
- tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.0) does not satisfy that requirement.
And then the next command composer update nexmo/laravel --with-all-dependencies
:
Problem 1
- Root composer.json requires laravel/framework ^8.12, found laravel/framework[v8.12.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 2
- laravel/tinker is locked to version v2.5.0 and an update of this package was not requested.
- laravel/tinker v2.5.0 requires illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 3
- tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
- tymon/jwt-auth 1.0.2 requires illuminate/auth ^5.2|^6|^7|^8 -> found illuminate/auth[v5.2.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 4
- facade/flare-client-php 1.3.7 requires illuminate/pipeline ^5.5|^6.0|^7.0|^8.0 -> found illuminate/pipeline[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- facade/ignition 2.5.8 requires facade/flare-client-php ^1.3.7 -> satisfiable by facade/flare-client-php[1.3.7].
- facade/ignition is locked to version 2.5.8 and an update of this package was not requested.
Any suggestion?
Thanks a lot
Kind regards
from nexmo-laravel.
Hello @gothiquo !
your php version (8.0.0) does not satisfy that requirement
sums up your issue - you will need to downgrade your version of PHP to some version of PHP 7, or update whatever plugin uses tymon/jwt-auth
to something that will pull in a newer version of tymon/jwt-auth
that is PHP 8 compatible. This would be some other plugin from ours, as tymon/jwt-auth
is not a dependency for any Vonage/Nexmo packages.
from nexmo-laravel.
Thanks a lot ! Problem Solved !
from nexmo-laravel.
Glad I could help!
from nexmo-laravel.
Related Issues (20)
- Nexmo Issue with getting api_key/secret HOT 8
- Package zendframework/zend-diactoros is abandoned HOT 1
- Laravel 8 compatibility HOT 6
- Vonage Voyagers application: Create a more detailed SMS log HOT 6
- Migrate to Vonage/vonage-php-sdk-core before 10/01/2021 HOT 2
- nexmo/client 0.4.0 error HOT 3
- Agrinnovation
- Ambigious Class Resolution HOT 2
- Using Nexmo in Laravel with Multi-tenancy HOT 2
- web monetization
- Missing ability to search landline-toll-free HOT 8
- Error sending SMS HOT 2
- Error while checking PIN HOT 1
- Larastan warnings HOT 1
- Upgrade vonage/client HOT 2
- Support Laravel 9 HOT 8
- Send SMS for two different phone numbers HOT 1
- Is Inbound Message concatenation supported? HOT 1
- Support Laravel 9 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexmo-laravel.