We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The package was working mostly fine for us until we updated our php version to php8. Since then it seems that the helpers do not get loaded properly.
news/action.php
Line 36 in 556847f
throws the error "Error: Call to a member function has_permission() on null".
--EDIT:
On the Backward Incompatible Changes page for PHP80, they mention
Methods with the same name as the class are no longer interpreted as constructors. The __construct() method should be used instead.
__construct()
So I think that replacing
Line 24 in 556847f
public function __construct(){
I do not program in PHP so I would like someone with a bit more experience in the language to check it before making a merge pull request...
The text was updated successfully, but these errors were encountered:
Great, I probably would not have found this - I made a pull request, you can install the updated plugin "manually" from https://github.com/wolfgangasdf/dokuwiki-plugin-news/archive/refs/heads/master.zip
Sorry, something went wrong.
No branches or pull requests
The package was working mostly fine for us until we updated our php version to php8. Since then it seems that the helpers do not get loaded properly.
news/action.php
Line 36 in 556847f
throws the error "Error: Call to a member function has_permission() on null".
--EDIT:
On the Backward Incompatible Changes page for PHP80, they mention
So I think that replacing
news/action.php
Line 24 in 556847f
by
public function __construct(){
should solve it.I do not program in PHP so I would like someone with a bit more experience in the language to check it before making a merge pull request...
The text was updated successfully, but these errors were encountered: