When i tried to install Yii2 using composer
I had this exception
Script yii\composer\Installer::postCreateProject handling the post-create-project-cmd event terminated with an exception
[Exception]
The mcrypt PHP extension is required by Yii2.
how can i solve this ?
You have to install mycrypt first to the php.
See the link below:
http://php.net/manual/en/mcrypt.installation.php
Related
I have an error while creating passport token in laravel 8 with passport package 10. Everything is working properly before running composer update command. When I run the composer update command I got this error:-
message: "Method Laravel\Passport\Bridge\AccessToken::__toString() must not throw an
exception, caught ErrorException: Using integers for registered date claims is
deprecated, please use DateTimeImmutable objects instead."
exception: "Symfony\Component\ErrorHandler\Error\FatalError"
Please help while resolving this error. Any help would be appreciable.
Current solution is downgrade lcobucci/jwt package.
composer require lcobucci/jwt:3.3.3
Also you can check this https://github.com/laravel/passport/issues/1380
Please note that, I'm using rappasoft updated boilerplate Laravel 5.8 and I'm using your installation steps but it's giving me this error message:
Class 'ConsoleTVs\Charts\Charts' not found
they forgot to add install charts dependency through composer try this
composer require consoletvs/charts
this will install your missing dependency
I am using laravel-dropbox-driver package.
When i try to download file from droobox like
Storage::disk('dropbox') - >download($filename) ;
It throws an error
Call to undefined method league/flysysten download
You are missing a required package, run the below command:
composer require spatie/flysystem-dropbox
This will install the required League Flysystem.
After installing a new version of a Magento 2 module composer fails on every command. Also the backend of Magento isn't working anymore:
1 exception(s):
Exception #0 (UnexpectedValueException): Package magento/composer's
source key should be specified as {"type": ..., "url": ...,
"reference": ...},
{"type":"git","url":"https:\/\/github.com\/magento\/composer.git","reference":null} given.
Also when using composer -v command via ssh the same error is showing.
When trying to flush the cache via ssh the same error is showing and also an extra error:
Fatal error: Uncaught Error: Class 'Cli' not found in
Does anyone know how to fix this?
Few things you can try:
Try to reinstall composer.
Also you can try running composer clear-cache. Also check for any running composer process and kill then first.
If this is still an issue anyone has I found through much digging that reference cannot be set to null. If a download from source is necessary than I recommend moving up a directory for your url or use a dist instead of source
I use Laravel 5.1 and tried to install this package:https://github.com/mewebstudio/captcha
After running composer require mews/captcha I get the following exception:
[RuntimeException]
Could not load package intervention/image in http://packagist.org:UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid version string "4.x.x"
[UnexpectedValueException]
Could not parse version constraint 4.x.x: Invalid version string "4.x.x"
Any ideas why this happen? Thank you