|
#1
|
|||
|
|||
|
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 197Strict Standards: Non-static method Format: hone() should not be called statically in C:\Inetpub\wwwroot\support\include\staff\viewticke t.inc.php on line 79Source: Web |
|
#2
|
|||
|
|||
|
Solved. It was my php.ini settings. Thanks
|
|
#3
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
I did corrected that error.......
Thanks to sharing..... Last edited by Corey; 07-17-2012 at 04:44 PM. Reason: Removed links. |
|
#9
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
Thank you for posting your solutions here to help other people. It's much appreciated.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|