I'm trying to upgrade from 1.14.2 to 1.16.1 yet I do get this error even though I tried it with php 8.0.x as well as with php 8.1.x.:
From phpinfo();
Core
PHP Version 8.0.16
/var/www/localhost/htdocs/osTicket.new # php8.1 index.php
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/localhost/htdocs/osTicket.new/include/class.osticket.php on line 438
PHP Fatal error: Uncaught Error: Non-static method Misc::currentURL() cannot be called statically in /var/www/localhost/htdocs/osTicket.new/bootstrap.php:343
Stack trace:
#0 /var/www/localhost/htdocs/osTicket.new/main.inc.php(23): require()
#1 /var/www/localhost/htdocs/osTicket.new/client.inc.php(21): require_once('...')
#2 /var/www/localhost/htdocs/osTicket.new/index.php(16): require('...')
#3 {main}
thrown in /var/www/localhost/htdocs/osTicket.new/bootstrap.php on line 343
Since 1.16.1 is for php >8 I thought, that shouldn't happen.
So why is it happening, something I missed while doing the upgrade?