Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-16-2012, 01:23 PM
rshumaker rshumaker is offline
Junior Member
 
Join Date: Mar 2012
Posts: 4
Default Strict Standards Errors

I just installed osTicket and am getting Strict Standards errors/messages all over the place when going into the admin page in order to do post-install steps.

What did I do wrong and how do I address?

here are a few of the messages:

Strict Standards: Non-static method Misc::currentURL() should not be called statically in C:\Inetpub\wwwroot\support\main.inc.php on line 101

Strict Standards: Non-static method Sys::getConfig() should not be called statically in C:\Inetpub\wwwroot\support\main.inc.php on line 143


Strict Standards: Non-static method Format::htmlchars() should not be called statically in C:\Inetpub\wwwroot\support\include\staff\viewticke t.inc.php on line 52
Support
Create Date:
Strict Standards: Non-static method Format::db_datetime() should not be called statically in C:\Inetpub\wwwroot\support\include\staff\viewticke t.inc.php on line 56

Strict Standards: Non-static method Misc::db2gmtime() should not be called statically in C:\Inetpub\wwwroot\support\include\class.format.ph p on line 143

Strict Standards: Non-static method Format::userdate() should not be called statically in C:\Inetpub\wwwroot\support\include\class.format.ph p on line 143

Strict Standards: Non-static method Format::date() should not be called statically in C:\Inetpub\wwwroot\support\include\class.format.ph p on line 152

Strict Standards: Non-static method Format::htmlchars() should not be called statically in C:\Inetpub\wwwroot\support\include\staff\viewticke t.inc.php on line 64
osTicket Support
Email: support@osticket.com (1)
Phone:
Strict Standards: Non-static method Format:hone() should not be called statically, assuming $this from incompatible context in C:\Inetpub\wwwroot\support\include\class.ticket.ph p on line 197

Strict Standards: Non-static method Format:hone() should not be called statically in C:\Inetpub\wwwroot\support\include\staff\viewticke t.inc.php on line 79

Source: Web
  #2  
Old 03-19-2012, 09:45 AM
rshumaker rshumaker is offline
Junior Member
 
Join Date: Mar 2012
Posts: 4
Default

Solved. It was my php.ini settings. Thanks
  #3  
Old 03-21-2012, 12:56 PM
ntozier's Avatar
ntozier ntozier is online now
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,793
Default

You might want to post what you changed in your php.ini in case someone else runs into the same problem.

Glad that you got it working.
  #4  
Old 03-21-2012, 01:50 PM
gripon gripon is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Default PHP Strict Standards:

Hi,
I see that you solved this problem by changing some configuration in php.ini. I am also facing this issue. It will be great if you post your solution here. Thank you in advance.

THIS IS THE ERROR :

PHP Strict Standards: Non-static method Misc::currentURL() should not be called statically in C:\Inetpub\wwwroot\F3kTicket\main.inc.php on line 101
PHP Strict Standards: Non-static method Sys::getConfig() should not be called statically in C:\Inetpub\wwwroot\F3kTicket\main.inc.php on line 143
  #5  
Old 03-21-2012, 02:04 PM
rshumaker rshumaker is offline
Junior Member
 
Join Date: Mar 2012
Posts: 4
Default Strict Standards Errors

I wish I could tell exactly what the solution was. I would have included in my response had I known.

I ended up swapping out my php.ini file with another that I had before I began "tinkering" with several areas such as error_reporting. Swapping the php.ini file out was what ultimately solved the problem.

I suspect it had to do with the change in settings on one of the following lines although I'm simply speculating (These are the settings that are currently set in my working php.ini):

display_errors = Off
display_startup_errors = Off
log_errors = On
track_errors = Off
date.timezone = America/New_York
  #6  
Old 03-21-2012, 04:24 PM
gripon gripon is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Default

Hi
Thank you for your mail and quick replay. This is tittle bit strange how i solved it. I tried your solution in php.ini but could not solve it. But i did commented out on line in main.inc.php that is error_reporting(E_ALL ^ E_NOTICE); and it works.

Thank you
  #7  
Old 03-21-2012, 04:29 PM
rshumaker rshumaker is offline
Junior Member
 
Join Date: Mar 2012
Posts: 4
Default Strict Standard Errors

Nice! You may have found it. I, too, remember adjusting those settings based on research I found that involved these same errors. I do seem to remember doing what you state as well so maybe that was the solution after all and I mistakenly associated it to swapping out php.ini. Thank you for posting. That helps clear things up.

The solution may very well be:

main.inc.php change error_reporting statement to:
error_reporting(E_ALL ^ E_NOTICE);
  #8  
Old 03-28-2012, 12:35 AM
smithdavid smithdavid is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Default

I did corrected that error.......


Thanks to sharing.....

Last edited by Corey; 07-17-2012 at 04:44 PM. Reason: Removed links.
  #9  
Old 07-17-2012, 02:14 PM
asmcmrr asmcmrr is offline
Junior Member
 
Join Date: Dec 2010
Posts: 7
Default

Quote:
Originally Posted by rshumaker View Post
Nice! You may have found it. I, too, remember adjusting those settings based on research I found that involved these same errors. I do seem to remember doing what you state as well so maybe that was the solution after all and I mistakenly associated it to swapping out php.ini. Thank you for posting. That helps clear things up.

The solution may very well be:

main.inc.php change error_reporting statement to:
error_reporting(E_ALL ^ E_NOTICE);
In PHP 5.4.x E_STRICT became part of E_ALL and the default PHP error_reporting values were updated to:

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

These options would include better error logging than (E_ALL ^ E_NOTICE) and still exclude the strict errors.
  #10  
Old 07-19-2012, 02:07 PM
ntozier's Avatar
ntozier ntozier is online now
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,793
Default

Thank you for posting your solutions here to help other people. It's much appreciated.
__________________
ntozier
OST Forum Mod - tmib.net - System Admin


Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:00 PM.