Razorpay Payment Gateway throws error while installing via composer - magento

I have tried so many times to install razorpay payment gateway via below link https://razorpay.com/docs/ecommerce-plugins/magento/2.x/
Also I tried manually but it shows error below..
Problem 1 - colinmollenhour/php-redis-session-abstract v1.3.4 requires php ~5.5.0|~5.6.0|~7.0.0|~7.1.0 -> your PHP version (7.3.7) does not satisfy that requirement. - colinmollenhour/php-redis-session-abstract v1.3.4 requires php ~5.5.0|~5.6.0|~7.0.0|~7.1.0 -> your PHP version (7.3.7) does not satisfy that requirement. - colinmollenhour/php-redis-session-abstract v1.3.4 requires php ~5.5.0|~5.6.0|~7.0.0|~7.1.0 -> your PHP version (7.3.7) does not satisfy that requirement. - Installation request for colinmollenhour/php-redis-session-abstract (locked at v1.3.4) -> satisfiable by colinmollenhour/php-redis-session-abstract[v1.3.4].
Putty Login and run the command : php bin/magento composer install
2.) php bin/magento composer upgrade
composer require razorpay/magento
bin/magento module:enable Razorpay_Magento
bin/magento module:enable Razorpay_Magento
bin/magento setup:upgrade
bin/magento setup:static-content:deploy
But when I try this it disabled my whole setup of magento.
Razorpay successfully setup

Remove all the razorpay setup. Run php bin/magento setup:di:compile
Install it from latest release here, https://github.com/razorpay/razorpay-magento/releases. Use step for "code.zip" installation.

Run the following command before installation of Razorpay plugin php bin/magento setup:di:compile and after zip install as well
Let me know the outcome

Related

Magento 2.4.5 Community ain.CRITICAL: Error: Class "Locale" not found in DataBundle.php:64

main.CRITICAL: Error: Class "Locale" not found in /var/www/html/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php:64
Error while browsing magento site / admin url after deploying site successfully.
All below commands run without errors
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

How to fix the error "In order to use the Auth::routes() method, please install the laravel/ui package" in laravel 8

On localhost every thing work okay but when I try to deploy laravel project to heroku I get this error:
message "In order to use the Auth::routes() method, please install the laravel/ui package"
I have tried the next things to fix this error but they are not working for me
composer require laravel/ui
php artisan ui bootstrap --auth
php artisan cache:clear
php artisan config:cache
php artisan route:cache
Manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.
And all of this solutions didn't work for me
Which version of laravel/ui are you trying to install? The newest - 4.x at the time of writing, is not compatible with Laravel 8. So you want to install 3.x for a version that supports Laravel 8.
composer require laravel/ui:^3.0

update magento 2 version 2.3.5 to version 2.3.5-p2?

how to update magento 2 version 2.3.5 for 2.3.5-p2 ? I tried the following steps but it didn't work.
composer require magento/product-community-edition=2.3.5 --no-update
composer update
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
And when using the command:
php bin / magento --version
it returns 2.3.5 and not version 2.3.5-p2
You're trying to upgrade to a lower version
composer require magento/product-community-edition=2.3.2 --no-update
2.3.2
Change the version string here...
Change
composer require magento/product-community-edition=2.3.2 --no-update
to
composer require magento/product-community-edition=2.3.5-p2 --no-update
and I think there shouldn't be a problem anymore!

laravel new blog not work mockery/mockery 1.4.0

Today I wanted to create a new project with Laravel with this command
laravel new blog
But I get this error
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for mockery/mockery 1.4.0 -> satisfiable by mockery/mockery[1.4.0].
- mockery/mockery 1.4.0 requires php ^7.3.0 -> your PHP version (7.2.23) does not satisfy that requirement.
Why should php7.3 be read when Laravel himself says at least php7.2.5 ???
Run composer update.
The reason:
Your PHP version is too low. You've got 7.2.23 installed, and mockery/mockery 1.4 requires 7.3.0
The best solution is to upgrade your PHP version. Alternatively, you can reduce mockery's version to 1.3.1, which only requires PHP 5.6 or above.
My bug report can be found here
As of 2020-05-21, the zip files that laravel new ___ uses will try to install mockery/mockery version 1.4. This won't work with versions of PHP below 7.3. In order to fix this, run composer update, and mockery will be downgraded to a compatible version.
I had the same problem today for new Laravel projects. The composer.json file was showing "mockery/mockery": "^1.3.1" but still was showing the same error. Delete also the composer.lock file and run composer install.
Assuming you are trying to create a new laravel project called blog this is what I did to fix the error after running laravel new blog
cd into blog
run composer update
Create a .env file. You can just make a copy of .env.example and rename the copy to .env. In case you try to start the dev server using php artisan serve and the app launches with a 500 error, run these commands:
php artisan key:generate
php artisan cache:clear
php artisan config:clear
composer dump-autoload
I had the problem when trying to create new Laravel applications,I updated php version using the following commands and it worked.
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install -y php7.4 php7.4-gd php7.4-mbstring php7.4-xml
Delete the composer.lock file and run composer again
composer install
You can just run
composer create-project --prefer-dist laravel/laravel <project_name>
It'll automatically fall-back to mockery^1.3.1
I also faced these problems.
Problem 1
- Installation request for facade/ignition-contracts 1.0.2 -> satisfiable by facade/ignition-contracts[1.0.2].
- facade/ignition-contracts 1.0.2 requires php ^7.3|^8.0 -> your PHP version (7.2.34) does not satisfy that requirement.
Problem 2
- Installation request for mockery/mockery 1.4.2 -> satisfiable by mockery/mockery[1.4.2].
- mockery/mockery 1.4.2 requires php ^7.3 || ^8.0 -> your PHP version (7.2.34) does not satisfy that requirement.
Problem 3
- facade/ignition-contracts 1.0.2 requires php ^7.3|^8.0 -> your PHP version (7.2.34) does not satisfy that requirement.
- nunomaduro/collision v4.2.0 requires facade/ignition-contracts ^1.0 -> satisfiable by facade/ignition-contracts[1.0.2].
- Installation request for nunomaduro/collision v4.2.0 -> satisfiable by nunomaduro/collision[v4.2.0].
I had deleted the composer.lock file and executed composer install command.
My problem solved.
This might be stale, the issue here is that the php needs to be updated to version that will be compatible.
delete the composer.lock file and autoload file in vendor i.e vendor/autoload in your project
upgrade php version from php.net
run composer install --no scripts
run composer update
php artisan migrate
php artisan key:generate

Command 'ui' is not defined in laravel 6.0

I start a new project in laravel but my composer installed a fresh version of laravel 6.0.1.
Php artisan make:auth command can't work.
I try many times but error can't remove
composer require laravel/ui
installed but
when I use the second command:
php artisan ui vue --auth
then system show me this message:
Command "ui" is not defined.
Using version ^1.0 for laravel/ui
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
you can try this:
C:\Whatever\Your_project_name>composer require laravel/ui
and
C:\Whatever\Your_project_name>php artisan ui vue --auth
Just this two inside your project folder.I am using vue but you can try other ones too.
Did you install the dependency? To run that command you need to install an additional package:
composer require laravel/ui
After this you should be able to run one of these commands:
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
In case you need the auth views, you could:
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
Don't forget to run this after:
npm install
The same error hits me in the new version of Laravel 7.x, What I did the process is really simple: if your composer is old version and the terminal or cmd is giving you warnings to update it using some package then there are chances that the above error hits you.
Solution:
Step 1 : Try the following two commands in your normal terminal not of your project directory. The below command will only update the composer.
composer self-update
OR use the below command (it will update your dependencies plus your composer)
composer update
When you composer gets updated. check the composer by the below command
composer --version
Step 2 : First go to your project root folder C:\Whatever\Your_project_name>
composer require laravel/ui
Try any of the below command according to your front end framework.
php artisan ui vue --auth
php artisan ui bootstrap --auth
php artisan ui react --auth
At the end don't forget to run
npm install
If your User Interface is not working properly try below command.
npm run production
run "composer require laravel/ui 1" instead of "composer require laravel/ui"
laravel 6 works with version 1.0, it written in docs "Want to get started fast? Install the laravel/ui (1.0)"
I was facing the same issue is laravel 8.0, whenever i tried to run this command
php artisan ui vue -auth
after installing the laravel/ui package I was getting the error
command UI is not defined
I fixed this issue by using this command
composer update
it automatically install the laravel/ui package into my project and then I run this command to install the required auth for my web app.
`php artisan ui vue -auth`
You need to create another new project.
You can try this:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer create-project --prefer-dist laravel/laravel project2 "7.0.*"
composer require laravel/ui
php artisan ui vue --auth
Just add the version in command line as well:
composer require laravel/ui "^1.0" --dev
Check this too.
using
composer require laravel/ui:*
worked for me
I recently faced this issue after upgrading from laravel 6 to 8. Installing laravel/ui did not work for me because the package was already installed.
I solved it by manually deleting cache folder at bootstrap/cache

Resources