Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Upgrading from 1.6 ST

I've inherited osTicket v1.6 ST from a very technically minded predecessor and it's run so well I've
never had to touch it before. Now, though, we've moved it to a new
server with PHP v5.6 and while everything else about it appears to run perfectly there,
our scheduled task to fetch mail using api/cron.php is failing. Running this script
in command line I see a slew of warnings and strict standards notices, along with a deprecated notice:

> php.exe [osTicket]\api\cron.php
PHP Strict Standards:  Non-static method Misc::currentURL() should not be called statically in [osTicket]\main.inc.php on line 101
PHP Strict Standards:  Non-static method Sys::getConfig() should not be called statically in [osTicket]\main.inc.php on line 146
PHP Strict Standards:  Non-static method Cron::run() should not be called statically in [osTicket]\api\cron.php on line 20
PHP Strict Standards:  Non-static method Cron::MailFetcher() should not be called statically in [osTicket]\include\class.cron.php on line 39
PHP Deprecated:  Assigning the return value of new by reference is deprecated in [osTicket]\include\pear\Mail\mimeDecode.php on line 335
PHP Strict Standards:  Non-static method MailFetcher::fetchMail() should not be called statically in [osTicket]\include\class.cron.php on line 24
PHP Strict Standards:  Non-static method Misc::decrypt() should not be called statically in [osTicket]\include\class.mailfetch.php on line 346
PHP Warning:  mcrypt_decrypt(): Key of size 15 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in [osTicket]\include\class.misc.php on line 51
PHP Strict Standards:  Non-static method Misc::decrypt() should not be called statically in [osTicket]\include\class.mailfetch.php on line 346
PHP Warning:  mcrypt_decrypt(): Key of size 15 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in [osTicket]\include\class.misc.php on line 51
PHP Strict Standards:  Non-static method Misc::decrypt() should not be called statically in [osTicket]\include\class.mailfetch.php on line 346
PHP Warning:  mcrypt_decrypt(): Key of size 15 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in [osTicket]\include\class.misc.php on line 51
PHP Strict Standards:  Non-static method Misc::decrypt() should not be called statically in [osTicket]\include\class.mailfetch.php on line 346
PHP Warning:  mcrypt_decrypt(): Key of size 15 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in [osTicket]\include\class.misc.php on line 51
PHP Strict Standards:  Non-static method Misc::decrypt() should not be called statically in [osTicket]\include\class.mailfetch.php on line 346
PHP Warning:  mcrypt_decrypt(): Key of size 15 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in [osTicket]\include\class.misc.php on line 51
PHP Strict Standards:  Non-static method Cron::TicketMonitor() should not be called statically in [osTicket]\include\class.cron.php on line 40
PHP Strict Standards:  Non-static method Ticket::checkOverdue() should not be called statically in [osTicket]\include\class.cron.php on line 30
PHP Strict Standards:  Non-static method TicketLock::cleanup() should not be called statically in [osTicket]\include\class.cron.php on line 31
PHP Strict Standards:  Non-static method Cron::PurgeLogs() should not be called statically in [osTicket]\include\class.cron.php on line 41
PHP Strict Standards:  Non-static method Sys::purgeLogs() should not be called statically in [osTicket]\include\class.cron.php on line 35
PHP Strict Standards:  Non-static method Sys::log() should not be called statically in [osTicket]\api\cron.php on line 21

So
the first question (which I'd have asked in a v1.6 category if there was one
is) - is there likely to be an easy way to fix this without upgrading? This would buy me some time to get more familiar with the system, figure out if any mods were installed, line up some support in case the database stuff is beyond my skillset, etc...

Otherwise, can we reasonably upgrade from 1.6 ST directly to 1.9, or should we do it in stages?

Thanks very much!

Deborah
Tagged:

Comments

  • You should probably downgrade from 5.6 to 5.5.  There are a few known issues that have been posted about at github.  You should shut off Strict Standards in your php.ini.  PHP recommends that it be off on production servers.  1.6 is ancient at this point and no longer supported.  PHP has changed a lot of things since 1.6 came out and a lot of the code is now deprecated in the newer versions.  I personally have osTicket running 

    If it were me I would just upgrade to 1.9 directly. There are a LOT of new features. Also make sure that you back up your database first.
  • Thanks very much! Will definitely shut off Strict Standards, and will have a go at the upgrade. Am a little hesitant to downgrade PHP just because it's taken us a while to iron out all the kinks in the first place, but good to know that if we have problems it may be something to try.
Sign In or Register to comment.