zend-stratigility debug message after composer update
Hi,
I have the same issue and therefore can't install the forum. I have run the composer command "composer require zendframework/zend-stratigility 1.2.1" but it didn't help. I just installed Beta version 6 today.
Any idea what else I can do?
Thank you,
Philip
I'm on serverpilot, used composer7.0-sp to install the flarum. How can I fix the issue?
I have alaready added
"zendframework/zend-stratigility": "1.2.1"
in the require section of the composer.json file.
now when I run
composer7.0-sp require zendframework/zend-stratigility: 1.2.*
I get
[InvalidArgumentException]
Could not find package 1.2.* at any version for your minimum-stability (beta). Ch
eck the package spelling or your minimum-stability
This helped me a lot...Thanks!
I did everything like wwwill said, but composer update just gives me a parse error. composer7.0-sp install doesn't seem to work either.
[Seld\JsonLint\ParsingException]
"./composer.json" does not contain valid JSON
Parse error on line 49:
...-discord": "1.0" "zendframework/zend-...
---------------------^
Expected one of: 'EOF', '}', ':', ',', ']'
Please paste your composer.json here. It seems you have an error in it.
There was a , missing on line 49, it's fixed now. But composer update didn't do anyting, just said that there was nothing it could update.
What does composer require zendframework/zend-stratigility": "1.2.*
do for you?
Thank you, everything works fine now ? .
- Edited
I've got the same problem. I tried all the above mentioned things and I still get the message when trying to install the flarum. Stratigility is on 1.2.1
I installed via PHP56. I did edit the JSON-file, deleted the lock file and then tried to update Composer. But it tells me "You are already using composer version 1.3.1 (stable channel)"
My JSON-File:
{
"require": {
"zendframework/zend-stratigility": "1.2.*"
}
}
I save it. Then I delete the lock-file and in the SSH Terminal I execute "php56 composer install", right? (I have to execute Composer locally, because I don't have the permission to make changes to /usr/local/bin
Phoara that json file is missing a lot of information. What you probably didn't do is run in the (empty) directory you want Flarum installed into:
composer create-project flarum/flarum -s beta .
composer require zendframework/zend-stratigility:1.2.*
composer install
If you are not a developer you might replace the last with:
composer install --no-dev --prefer-dist
- Edited
luceos Thank you for your input. I can't access composer globally, because I don't have access to the /usr/local/bin folder. If I keep the composer file locally, I can execute it via
"php56 composer ..."
If I try to enter the first line, it of course says "InvalidArgumentException Project directory ./ is not empty"
I'm a real newbie to SSH and doing stuff that is not WYSIWYG. I installed composer locally and then installed Flarum.
EDIT: Ok, I managed to tell composer to create a directory so that it can install flarum in an empty directory. I did all the commands you mentioned above. Still the same error as before, still the same JSON-content.
EDIT2: I even pasted the contents of the composer.json-file found in the flarum github project into my composer.json and added the "zendframework" via command. Still the same error. ?
If I get these errors on the error_log file, but nothing is present on the website and my installation works fine, no errors, can I just leave it like it is?
PHP Deprecated: Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /home/rostream/public_html/vendor/zendframework/zend-stratigility/src/Next.php on line 436
PHP Deprecated: The third argument to Zend\Stratigility\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /home/rostream/public_html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101
staion can I just leave it like it is
Yes you can. Your error log might be increasing in size though. It's a notification message. Some webservers are configured to show errors on the page, thus parsing the string you quote on every page requested, even API requests and thus breaking the JSON response and javascript. If outputting is disabled for these messages you can safely continue using the version of this package.