-
Notifications
You must be signed in to change notification settings - Fork 784
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
PHP8.1 compatibility #831
PHP8.1 compatibility #831
Conversation
…he pre PHP81 default to avoid unexpected behaviour. see https://php.watch/versions/8.1/html-entity-default-value-changes
…nt methods will no longer be supported if this change is merged InvoicePlane#798
…making successful API calls
Is a new offical release with PHP8 support planned any time soon? Looking forward to it otherwise we'll have to drop Invoiceplane from NixOS :,( |
Although we do not have a schedule or a date just yet, we are planning on releasing a new version that is compatible with PHP8 and we plan on staying compatible with the latest PHP releases going forward. I know that doesn't really answer your question, but at least letting you know that we do plan on releasing a new version, just not scheduled yet. |
@onny thank you for your question. This PR is that PHP 8.1 compatible version. |
Hi, is it safe to use this version? My provider is stopping php 7.4 support. |
Hi there, Testing would be great if you can take a look. Based on my testing it's working well but it would be good to get some more testers - I should have time to fix any specific issues identified. I don't have time right now to do thorough testing myself. The only exception is online payments - I haven't had time to implement online payments for PHP8. It could take some time. I'll do my best to resolves issues identified by testers, but unfortunately I've been very busy lately so haven't been able to thoroughly test myself. I've been using this version myself with no issues for several months. If anyone needs online payments, maybe post which provider you use. Without more help, I won't be able to implement all the current supported payment providers. |
Hi, I'm not using payments functions, I'll test standard function as deep as possible :-) |
Thanks guys, really appreciate it! |
I don't use payments too and would be happy to use InvoicePlane with PHP8. I'm trying to package this pull request on NixOS for easier testing in maybe upgrading to this unstable release to avoid dropping it due to missing PHP8 support: NixOS/nixpkgs#194059 I build it from source with
When opening Invoiceplane in the browser I get Fatal error: Uncaught TypeError: Dotenv\Dotenv::__construct(): Argument #1 ($store) must be of type Dotenv\Store\StoreInterface, string given, called in /nix/store/fvcmmirjs4434624jbr0rlmla266q22q-invoiceplane-localhost-unstable-2022-08-08/index.php on line 18 and defined in /nix/store/fvcmmirjs4434624jbr0rlmla266q22q-invoiceplane-localhost-unstable-2022-08-08/vendor/vlucas/phpdotenv/src/Dotenv.php:60 Stack trace: #0 /nix/store/fvcmmirjs4434624jbr0rlmla266q22q-invoiceplane-localhost-unstable-2022-08-08/index.php(18): Dotenv\Dotenv->__construct() #1 {main} thrown in /nix/store/fvcmmirjs4434624jbr0rlmla266q22q-invoiceplane-localhost-unstable-2022-08-08/vendor/vlucas/phpdotenv/src/Dotenv.php on line 60 |
@onny did you make a copy of the |
Thank you for the fast feedback. Should be present. It is the kind of config I used in Invoiceplane 1.5.11. Not sure if something changed in the meantime
|
Config looks good. phpdotenv has changed (quick Google search) |
@onny can you move phpdotenv back to an older version?
|
Hi, I cannot find the vendor-folder in the repository. Is it safe to use the folder from V 1.6.11? |
@WalleBE usually these types of questions go on the forums or in the slack channels, but I'll let it slide for this time. I've created a github issue #857 for you, so you can receive your answer. Right now, here, we comment on the Pull-request, that gets us to PHP8 compatibility. Let's keep it that way |
Oh sorry it seems it was my mistake. I patched index.php file in my NixOS module to override custom options/settings https://github.com/NixOS/nixpkgs/blob/fd54651f5ffb4a36e8463e0c327a78442b26cbe7/nixos/modules/services/web-apps/invoiceplane.nix#L42 There I used the dotenv function which doesn't seem to be compatible with the latest version of it. I need to fix this myself. On the other side Invoiceplane seems to work with PHP8.1 using this branch. Hope the development gets merged into master soon so we can start testing and fixing bugs :) |
I'll merge into The plan is to put phpdotenv back to 3.4 and then merge this PHP 8.1 branch. Soon, soon.
|
For me it works with phpdotenv at the latest version. Version 3.4 won't probably work because it doesn't support PHP8 |
@vtq221 @onny could you guys please contact me on our slack channels this weekend? I would love to go over some things with you |
Thank you for merging :) Is this already in master or develop branch? |
@onny it's in the branch https://github.com/InvoicePlane/InvoicePlane/tree/feature/issue-798 for now. |
PHP8.1 compatibility changes - see #798
https://php.watch/versions/8.1
Testing progress against PHP8.1
Pull Request Checklist
Issue Type (Please check one or more)