Uberspace / lab

The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
https://lab.uberspace.de
Other
316 stars 417 forks source link

[invoiceplane] improve guide and update for PHP 8.1 (#1432) #1533

Closed toddy15 closed 1 year ago

nichtmax commented 1 year ago

This does not work at all, when I open the setup page I get a lot of errors like


Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 102

Backtrace:

File: /var/www/virtual/moritz/html/index.php
Line: 329
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property MY_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 128

Backtrace:

File: /var/www/virtual/moritz/html/index.php
Line: 329
Function: require_once
toddy15 commented 1 year ago

Hi @nichtmax,

thanks for the review. That's weird -- I think that I've tested everything with PHP 8.2 and it worked. The problem is that PHP 8.2 emits deprecation warnings about dynamic properties. Did you change that recently in the uberspace setup?

Anyway, the application works well with PHP 8.1, so I've added a patch to use the default PHP 8.1 on uberspace. I've just created a new uberspace and did run all instructions by copying them from the manual. It's a working installation. If you want, I'll give you the URL, so you can have a look. If you don't need this, I'll remove that uberspace instance.

Regards, Tobias