Solved

osTicket error when attempting to migrate db from MySQL to MSSQL

Posted on 2013-06-04
5
1,693 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 110

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 110

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 110

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
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 count occurrences of each item in an array.

710 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