Link to home
Start Free TrialLog in
Avatar of drew17
drew17

asked on

osTicket error when attempting to migrate db from MySQL to MSSQL

Hello,

I migrated my osTIcket db from MySQL to MSSQL and receive the following error.

PHP Strict Standards:  Non-static method Misc::currentURL() should not be called statically in \main.inc.php on line 102

This migration has been done successfully before (based on postings), but I am stuck at this error.

Any help would be greatly appreciated.

Drew
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

It's not an error; it's a "violation" of strict standards.  If the only symptom of failure is the message, you can suppress the message by changing the error reporting.

error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

I usually do not recommend this because it's a little like putting a piece of black electrical tape over the warning light on your dashboard, but inside the osTicket application it might be easier to hide the messages than it would be to try to fix the underlying issue.
Avatar of drew17
drew17

ASKER

I have tried that, but when I do there is a white page (errors not being displayed. I have  added:

    ini_set('display_errors',1);
    ini_set('display_startup_errors',1);

But still no luck.

Thanks,

Drew
Add error_reporting(E_ALL); right at the top and see if that helps.
Avatar of drew17

ASKER

Hello Ray_Paseur,

I am getting the following eorror:

PHP Strict Standards:  Non-static method Misc::currentURL() should not be called statically in D:\WebData\main.inc.php on line 107

Do you have any suggestions?

Thanks!

Drew
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial