Solved

osTicket error when attempting to migrate db from MySQL to MSSQL

Posted on 2013-06-04
5
1,614 Views
Last Modified: 2013-09-19
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
0
Comment
Question by:drew17
  • 3
  • 2
5 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39218788
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.
0
 

Author Comment

by:drew17
ID: 39224357
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
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39224398
Add error_reporting(E_ALL); right at the top and see if that helps.
0
 

Author Comment

by:drew17
ID: 39233034
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
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39234904
Good - that's a start.  Do you want PHP Strict Standards?  The man page seems to suggest that these are "suggestions" only recently added to the definition of E_ALL.

If not, you can turn this off with the error_reporting() settings shown here.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Updating ms sql with special characters 8 23
Best RAID for a BDD Oracle 4 18
Runtime 3044 error 14 15
sql sentence 2 12
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
The viewer will learn how to dynamically set the form action using jQuery.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now