I try to do composer update but keep getting this error. i try to change the requirement but still not solving the issue.
I try to do composer update but keep getting this error. i try to change the requirement but still not solving the issue.Btw this is someone project that i download to make as reference.
This is my composer.json
enter image description here
This is the error
enter image description here
laravel/framework v5.8 (old version) is not compatible with PHP 8, you need to upgrade to a newer version of it
Related
I have a custom platform that I deploy to projects via composer. My new version is version v3.6.29. It turns out that one of my new dependencies for this project got a random $ character inserted into the middle of the package name (due to my fat fingers) in the composer.json file of the platform, which basically broke it.
I went to the site I wanted to install this new version for and did composer update vendor/pkg-name and it goes through and checks and just says its has nothing to update... but I know for a fact there is an update. So obviously there is some reason it chose not to install the new version...
But why?
You would think composer would be smart enough to think that I might want to know the reason it chose not to update to to the latest compatible version, right? I guess not! But how can I force this in the future?
I tried composer update -vvv vendor/pkg-name and that literally told me nothing new.
I also tried composer why-not and composer prohibits for my package and received no useful information.
The only way I was able to find out what the problem was, was by doing:
rm -rf vendor;
rm -rf composer.lock;
vim composer.json
-- Change version of my platform from "~3.6.0" to the specific version I wanted to install, "3.6.29"
-- Save / Quit Vim
composer install
And then I finally get this output:
Problem 1
- Root composer.json requires vendor/pkg-name 3.6.29 -> satisfiable by vendor/pkg-name[v3.6.29].
- vendor/pkg-name v3.6.29 requires vendor2/pkg$name2 ^2.8 -> could not be found, it looks like its name is invalid, "$" is not allowed in package names.
I mean do you think, maybe, quite possibly, that I might want to know this is the reason that it would not upgrade to the latest version? Maybe not, I guess in a normal scenario the installer might not care about the reason but from my point of view, as the developer of said package that is refusing to install to the latest, I want to know why its skipping it.
My questions is simply this:
When composer refuses to install the version of a package you want, and that you know exists, but is not telling you WHY, how can you FORCE it to explain it's self when it decides to fall back to a version that is "acceptable" to it rather than the optimal version?
I feel like jumping through the hoops I had to jump through to figure out the problem cannot possibly be the best way to accomplish this? What am I missing here?
We are having a new error related with laravel/passport: 7.5.1. Today, this library has been working as the last week. But this stops showing this message via Postman:
Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated.
Do someone knows something about this issue?
We don't know how to continue with this...
We're using Laravel 5.7 (we know that...)
We "solved" this temporally downgrading the library lcobucci/jwt from 3.4.0 to 3.3.3.
help me in laravel 5.8
set in composer.json
"laravel/passport": "^7.5",
"lcobucci/jwt": "3.3.2",
and update vendor
composer update
For me downgrading, lcobucci/jwt worked for me. I was currently using 3.4.* but downgraded it to a constant 3.3.3
to downgrade I run the command
composer require lcobucci/jwt 3.3.3
And that was it. But my only concern is I am not certain if this is a temporary or a permanent solution to this issue. But at least it will reboot things up if your system failed cause of that error
I want to install phpoffice/phpexcel in My Project.
When composer install or composer update, i receive error:
Package phpoffice/phpexcel is abandoned, you should avoid using it.
Use phpoffice/phpspreadsheet instead.
What is wrong with my project? Please help me. My project use PHP version 7.1.3 and Laravel version 5.7
It means the project is not being maintained. you can still use if you want to.
That message you are getting is just a warning, not an error so there is nothing wrong with your project. So you could ignore the warning and continue using the package with your current code.
However, as the message said you should avoid using it because the package might stop working properly if you decide to update laravel, php or any other dependencies. And if it does stop working or you encountered a bug, there will no code maintainer to help you solve your issue.
In your case, phpoffice/phpspreadsheet package actually provide a useful entry in their documentation to help you migrate to their package, so you should definitely give it a read as there are quite a few breaking changes if you decide to use their package.
I'm new to the composer I'm using a plugin here they used composer. I getting some errors that the reason I want to update composer because might be an issue with the composer i'm not sure what is the issue here. my question is in my plugin composer is already installed. Are there any other things I have to install in local?
How should I update this composer used in the plugin?
I'm using this plugin https://github.com/codehaiku/envato-purchase-code-verifier
here I just download the plugin and added my token and API but when I was entered purchase code I was getting an error Invalid Purchase Code. Can anyone suggest me is there any other alternative way to this instead of using this plugin some other plugins?
Any help will be appreciated.
To answer your question as asked:
composer self-update
However, if you're worried that the composer file could be bad download a new version here
If you pay attention to the steps you'll eventually be at one where there's a file called composer.phar in the directory you ran it (probably in your webroot/public_html folder) and then you can be sure you're using the new version by using the command
php composer.phar update
that will update your libraries.
On a potentially more helpful note, contact the vendor as your key may, legitimately, be wrong and/or you purchase an invalid code from a 3rd party.
I am using Reportico reporting module, and follow the installation instructions listed on official website, but somehow its not working.
Here are the steps I followed:
I have created a fresh laravel project mentioned on laravel docs:
composer create-project --prefer-dist laravel/laravel blog
Then within the project root directory, I executed the following command by using composer:
composer require reportico/laravel-reportico "~5.2"
And remaining steps are same as listed on Reportico website. It did not give me any error message in the steps, but finally when I go to the url:
http://localhost:8000/index.php/reportico
It is showing error message that route not found.
Can anybody suggest how to fix this, or is there any free-open-source reporting tool which I can use with Laravel project.
This project was upgraded to 5.4 in February, but unfortunately there was a problem which made it unavailable to the world. I believe I have fixed this now so please retry the composer require command and you should get version 5.4 of the package.
If it doesnt work you could try using the following instead to force the version update:
composer require "reportico/laravel-reportico" "dev-master"
Also, the error messsage you are getting implies you havent added to your config/app.php file in the providers section
Reportico\Reportico\ReporticoServiceProvider::class
This is very important. Please let me know if this works.
Peter
I had the same issue.
Changing the url to below worked for me
http://localhost:8000/index.php/reportico
Hope it helps someone.