Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Dec 2017, 02:08
Raw Sugar's Avatar
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Real name: Jennifer
Strict Standards Error

This is on vB 3.8.7, running PHP 5.6.31.

This error is showing up most recently on the memberinfo page, but has also shown up in the UserCP. I've looked at the files referenced and can't figure out what it means. I looked up the Strict Standards error in general, but I'm confused about how to fix it for vB files.

A few of the errors I've gotten:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thank you in advance for your help!!
Reply With Quote
  #2  
Old 21 Dec 2017, 02:19
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
This error usually indicates that the function signature (parameters) of both should be exactly the same.
You can also turn off error reporting in your PHP.ini file to hide the errors.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 21 Dec 2017, 02:27
Raw Sugar's Avatar
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Real name: Jennifer
Originally Posted by Dave View Post
This error usually indicates that the function signature (parameters) of both should be exactly the same.
You can also turn off error reporting in your PHP.ini file to hide the errors.
Is it bad if I just turn off error reporting?

I'm not sure that I have access to the PHP.ini file. Where would it be?
Reply With Quote
  #4  
Old 21 Dec 2017, 02:30
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Generally you want to turn off error reporting because it exposes certain information about your server that no one needs to know about.

You should ask your host about the PHP.ini file, it varies a lot per server host.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 21 Dec 2017, 02:58
Raw Sugar's Avatar
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Real name: Jennifer
Oh! I found it!
What do I put in the .ini file to turn off reporting??

Thank you, Dave!
Reply With Quote
  #6  
Old 21 Dec 2017, 03:06
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Real name: Kris
Originally Posted by Raw Sugar View Post
Oh! I found it!
What do I put in the .ini file to turn off reporting??

Thank you, Dave!
You could use something like the following:

// toggle this to change the setting
define('DEBUG', true);
// you want all errors to be triggered
error_reporting(E_ALL);

if(DEBUG == true)
{
// you're developing, so you want all errors to be shown
display_errors(true);
// logging is usually overkill during dev
log_errors(false);
}
else
{
// you don't want to display errors on a prod environment
display_errors(false);
// you definitely wanna log any occurring
log_errors(true);
}
Reply With Quote
  #7  
Old 21 Dec 2017, 03:57
Raw Sugar's Avatar
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Real name: Jennifer
Thank you!!!!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 10:28.

Layout Options | Width: Wide Color: