Here the situation :
- running OSticket 1.9.5.1 on a server with PHP 5.5
- planning to do migration + update to 1.12 on a new server running PHP 7.3

I copied the files from old server to new server, I have imported the Db, I have updated the include/ost-config.php with the username and password of the new MySQL.

When I tried to load the new install, I got : error 500

my /var/log/apache2/error.log ends with :

tail /var/log/apache2/error.log

[Thu Jul 04 10:32:50.365962 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Warning: Declaration of Response::create($vars, &$errors) should be compatible with ThreadEntry::create($vars) in /var/www/osticket/include/class.thread.php on line 1241
[Thu Jul 04 10:32:50.365968 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Warning: Declaration of Response::add($vars, &$errors) should be compatible with ThreadEntry::add($vars) in /var/www/osticket/include/class.thread.php on line 1241
[Thu Jul 04 10:32:50.365986 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Warning: Declaration of Note::create($vars, &$errors) should be compatible with ThreadEntry::create($vars) in /var/www/osticket/include/class.thread.php on line 1284
[Thu Jul 04 10:32:50.365991 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Warning: Declaration of Note::add($vars, &$errors) should be compatible with ThreadEntry::add($vars) in /var/www/osticket/include/class.thread.php on line 1284
[Thu Jul 04 10:32:50.371446 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Warning: Declaration of RandomSequence::save() should be compatible with VerySimpleModel::save($refetch = false) in /var/www/osticket/include/class.sequence.php on line 234
[Thu Jul 04 10:32:50.372290 2019] [:error] [pid 7425] [client 255.255.255.255:50299] PHP Fatal error: Cannot declare class Error, because the name is already in use in /var/www/osticket/include/class.error.php on line 43

Any pointer as to what I am doing wrong here?

Thanks

  • RBGE replied to this.

    Memes Is this error appearing before you've uploaded the 1.12 files? (you mentioned "copied the files from old server to new server", but I'm not sure if "load the new install" refers to the new server or new files) If so, osTicket 1.9.5 won't be compatible with PHP 7.3, so will chuck up a lot of errors. If you replace the files with the 1.12 ones (keeping your ost-config.php) it should ideally prompt you to upgrade the database then you're good to go.

    If it's still happening in 1.12, I'm a bit stumped here ? While it shouldn't be necessary, maybe an incremental upgrade would help (going to 1.10 first), although you'd have to watch PHP versions if doing this.

    Hi, What I did :
    - dump the database from old server
    - copy the files from old server to new server (i.e. the 1.9.5.1 install)
    - restore the database on new server
    - amend include/ost-config.php with the new server MySQL credentials

    Got that problem, there was not even any attempt to update

    What I then did (on a good hunch)
    - dump the database from old server
    - upload the 1.12 files to new server
    - copy the file include/ost-config.php from old server to new server
    - restore the database on new server
    - query the http://example.com/setup/upgrade.php, followed the upgrade process.

    It all worked out and my system is now migrated and upgraded.

    Write a Reply...