I am trying to migrate my osTicket v1.15.8 installation on Oracle Linux 8 (PHP v7.4) to Rocky Linux 9 (PHP v8.1) so that I can eventually upgrade to osTicket v1.17.x (PHP >=8.0 required).

osTicket v1.15.8 is not working on the new server. With "show errors" turned on, I receive the following error on the RL9 server:

Fatal error: Uncaught Error: Non-static method Misc::currentURL() cannot be called statically in /data/osticket/bootstrap.php:369 Stack trace: #0 /data/osticket/main.inc.php(23): require() #1 /data/osticket/client.inc.php(21): require_once('...') #2 /data/osticket/index.php(16): require('...') #3 {main} thrown in /data/osticket/bootstrap.php on line 369

Can someone make sense of this error and help me get my current osTicket version working before I attempt to upgrade to the newest version? Please and thanks.

  • KevinTheJedi replied to this.
  • diggy

    You don’t need to get 1.15.x working on the new server. You just need to run a full dump of the existing database (it helps turning it offline, disabling email fetching, and disabling any cron/scheduled task beforehand to prevent data loss), import the dump into a database on the new server, setup the new v1.17.2 codebase (don’t run the installer just setup the code), copy over the old include/ost-config.php from the old server to the new include/ folder, and update this file with the new MySQL information. From there you should be able to visit the site, login, and run the upgrader.

    Please note if you are currently running any plugins you must download and place the new builds of the plugins in the plugin directory on the new server first before upgrading. Please make sure the file ownership and permissions are set correctly so that the webserver can use them.

    Cheers.

    diggy

    You don’t need to get 1.15.x working on the new server. You just need to run a full dump of the existing database (it helps turning it offline, disabling email fetching, and disabling any cron/scheduled task beforehand to prevent data loss), import the dump into a database on the new server, setup the new v1.17.2 codebase (don’t run the installer just setup the code), copy over the old include/ost-config.php from the old server to the new include/ folder, and update this file with the new MySQL information. From there you should be able to visit the site, login, and run the upgrader.

    Please note if you are currently running any plugins you must download and place the new builds of the plugins in the plugin directory on the new server first before upgrading. Please make sure the file ownership and permissions are set correctly so that the webserver can use them.

    Cheers.

    I have successfully migrated and upgraded my osTicket installation. Now running osTicket v1.17.2 with PHP v8.1 on Rocky Linux 9. Thank you for your help. 🙂

    Write a Reply...