Solved

osTicket error when attempting to migrate db from MySQL to MSSQL

Posted on 2013-06-04
5
1,678 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

756 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