
10-10-2013, 07:17 PM
|
|
|
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by artman_hacker
i have 2 errors with vbulletin 4.2.2 :
Warning: Illegal string offset 'postid' in ./includes/functions_post_thanks.php on line 135
Warning: Illegal string offset 'post_thanks_amount' in ./includes/functions_post_thanks.php on line 141
|
See vBulletin 4.2.2 FULL has been released. - vBulletin Community Forum by Paul M.
Quote:
Some further information on error displays in 4.2.2 ;
As part of the php compliance changes, error reporting in 4.2.2 was fixed to take account of the new strict & deprecated errors added in php 5.x
A side effect of this is that old (existing) errors that were not showing up may also now get displayed.
All of the errors we encounter during testing were corrected, but there may be more.
If you encounter such an error, then please log it in the vB4 Jira project, so we are aware of it.
If you need to disable error displays, there are several methods, depending on your circumstances and technical ability.
1. Add this line to your php.ini file (production sites should run like this anyway)
Code:
display_errors = Off
2. If you cannot access your php.ini file, add this line near the top of your config.php
Code:
ini_set('display_errors', 'Off');
3. Use the option added in 4.2.2 to suppress messages if you have products or hooks in use that still generate errors.
Goto : Settings > Options > Plugin/Hook System and then set the "PHP Compatibility" setting to 'Yes'.
This will change the error reporting options within vBulletin on the first hook that is run.
If you have vBulletin Suite (i.e. Blogs / CMS) or you have the Panjo Product enabled, this setting will pretty much disable the Strict & Deprecated messages anywhere.
This is because all three of those products use the "init_startup" hook.
If you don’t actually have any of those running, you can create a dummy plugin yourself - use the "init_startup" hook, and just put a comment in the php section.
This will cause the option to suppress errors after init_startup has been called (which is at the start of almost all pages)
4. This is for those who feel comfortable with editing files.
In class_core.php locate lines 5683-5685
Code:
case E_NOTICE:
// Just ignore these completely //
break;
Add lines for Deprecated and/or Strict errors as required ;
Code:
case E_NOTICE:
case E_STRICT:
case E_DEPRECATED:
// Just ignore these completely //
break;
This will bypass the additional error reporting.
|
|