-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please make known work with PHP version 8 #3096
Comments
This would be important for me as well. Is this project still actively maintained? |
Fyi, I've been running Here is the content of my
|
@thierrymarianne thanks for your quick response. My problem is that composer isn't able to install the necessary packages. How did you solve that? Could you share your composer.json? |
Good day @Wunderharke, It's compatible with composer:2.3 Docker container image. |
I didn't get your composer.json working with my version of composer. But I tried the dev branch instead of the latest release tag, and it is working out of the box with composer and PHP 8. |
Sorry to hear about the incompatibilities between your composer version and this file. |
We should tag a release, then we can mark this as fixed. |
Definitely! It would help with issues triaging. |
Please note that I could not reproduce the FatalError mentioned in this issue description |
Latest version should work on 8 (eg on my site at werd.I’m). We’ll move to a supported release soon. Sorry for the delay!
Ben Werdmuller
( http://goog_1933028737 )
werd.io ( http://werd.io ) | @benwerd ( https://twitter.com/benwerd )
(he/him)
…On Sun, Jun 26 2022 at 10:32 AM, Peter Kleiweg < ***@***.*** > wrote:
------------------------
While trying to do this:
------------------------
./known.php
-------------------------
I encountered this error:
-------------------------
PHP Fatal error: During inheritance of SessionHandlerInterface: Uncaught
ArgumentCountError: Too few arguments to function
Idno\Core\Logging::Idno\Core\{closure}(), 4 passed in
/var/www/html/blog/vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php
on line 23 and exactly 5 expected in
/var/www/html/blog/Idno/Core/Logging.php:40
Stack trace:
#0
/var/www/html/blog/vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php(23):
Idno\Core\Logging->Idno\Core\{closure}()
#1
/var/www/html/blog/vendor/composer/ClassLoader.php(444): include('...')
#2
/var/www/html/blog/vendor/composer/ClassLoader.php(322):
Composer\Autoload\includeFile()
#3
/var/www/html/blog/vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php(41):
Composer\Autoload\ClassLoader->loadClass()
#4
/var/www/html/blog/vendor/composer/ClassLoader.php(444): include('...')
#5
/var/www/html/blog/vendor/composer/ClassLoader.php(322):
Composer\Autoload\includeFile()
#6
/var/www/html/blog/Idno/Data/AbstractSQL.php(87):
Composer\Autoload\ClassLoader->loadClass()
#7
/var/www/html/blog/Idno/Core/Session.php(46):
Idno\Data\AbstractSQL->handleSession()
#8
/var/www/html/blog/Idno/Common/Component.php(18):
Idno\Core\Session->init()
#9 /var/www/html/blog/Idno/Core/Idno.php(117):
Idno\Common\Component->__construct()
#10
/var/www/html/blog/Idno/Common/Component.php(18): Idno\Core\Idno->init()
#11 /var/www/html/blog/Idno/Core/Idno.php(45):
Idno\Common\Component->__construct()
#12 /var/www/html/blog/known.php(30):
Idno\Core\Idno->__construct()
#13 {main} in
/var/www/html/blog/vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php
on line 23
-----------------
Some other notes:
-----------------
php version:
PHP 8.1.2 (cli) (built: Jun 13 2022 13:52:54) (NTS)
Copyright (c) The PHP
Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend
OPcache v8.1.2, Copyright (c), by Zend Technologies
Give us some context:
* It'd also be really handy if you could tell us the contents of your version.known
file
version = '1.2.2'
build = 2020061101
revision = "bd43456"
* What database are you using? (e.g. mongo, mysql, postgres)
mysql
* Any warnings or errors in your admin/diagnostics page?
Browser gets HTTP ERROR 500
* If this is a programming bug, can you include examples of any Micropub /
API calls / webhook pings you make? Otherwise please don't worry about
what this means!
* Bonus points - are you able to illustrate the issue with a unit test? If
so, submit it as a pull request!
—
Reply to this email directly, view it on GitHub (
#3096 ) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAEYL2CQMP4CZ5ZK5SSBJHTVRCH4TANCNFSM5Z4IJMDQ
).
You are receiving this because you are subscribed to this thread. Message
ID: <idno/known/issues/3096 @ github. com>
|
Current dev branch works on php 8. Version 1.5 targets 8.1 |
Hoping that it happens sometime soon! |
Soon after taking care of #3109 (reply in thread), I've got to say that I got a bit lost in the process of figuring what was the next priority in order to help making the release happen. Thank you @AmritasyaPutra for reviving the thread. I wonder which criteria would help us close this issue.🤔 Perhaps, moving the build from travis to GitHub actions and |
I just followed the documentation for upgrading and I am now on 1.2.2 and switching to php 8.1 results in 500 Internal Server Error on shared hosting via DreamHost. Any advice?
|
I suspect that documentation contains |
This has gone on for long enough. I commit to a new release on June 1. However, for now: the core code in GitHub is fully tested on PHP 8.1.1. I'll make an effort to test on PHP 8.2 before release. |
Thanks @benwerd ! Much appreciated. @svandragt On the shared DreamHost account, install and upgrade of Known was always just dropping the files and folders on the server. I do have limited ssh access, so I can try the composer update and see if that helps. Upgrading to the developer version (1.3.1) got me a shiny new error--
I think you're correct that composer may be the issue here. Now, I just need to find some more evening time to try and update it. |
👋🏻 FYI, I've been running known with PHP 8.2.6 without issues - so far 🤞🏻 Diagnostics also seems to be fine with it: P.S. If some are interested about how to run an known instance with Docker Compose (v2), guidelines for the documentation with code snipped could most likely be drafted at some point. I've got something working with |
It does work on PHP 8.2; therefore, I'm closing this issue. |
While trying to do this:
I encountered this error:
Some other notes:
php version:
Give us some context:
version.known
filemysql
Browser gets HTTP ERROR 500
The text was updated successfully, but these errors were encountered: