![]() |
[Pushed] Errors Flooding Me. - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Development (https://community.mybb.com/forum-161.html) +--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html) +---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html) +----- Forum: Pushed (https://community.mybb.com/forum-183.html) +----- Thread: [Pushed] Errors Flooding Me. (/thread-173684.html) Pages:
1
2
|
Errors Flooding Me. - Predatorz - 2015-07-29 So I keep getting flooded with errors on my email but I cant seem to know what is causing these errors. These are the current errors: ---------------------- Type: 2 File: inc/functions.php (Line no. 4930) Message urlencode() expects parameter 1 to be string, array given ----------------------------- Type: 2 File: global.php (Line no. 46) Message Illegal offset type in isset or empty I'm using MyBB 1.8.5 and PHP 5.6.11 Any help is appreciated. RE: Errors Flooding Me. - KevinVR - 2015-07-29 Is it possible that you are using this plugin? https://he.wordpress.org/plugins/zingiri-forum/changelog/ In the changelog version 1.1 fixes the urlencode error. (same error could be a coincidence) RE: Errors Flooding Me. - Predatorz - 2015-07-29 (2015-07-29, 03:04 AM)KevinVR Wrote: Is it possible that you are using this plugin? https://he.wordpress.org/plugins/zingiri-forum/changelog/ Nope I dont have any wordpress plugins on my site neither do I use wordpress. RE: Errors Flooding Me. - .m. - 2015-07-29 can you downgrade php to 5.5 or 5.4 and check if those errors / warnings persist .. RE: Errors Flooding Me. - Predatorz - 2015-07-29 Now getting: Type: 2 File: inc/functions.php (Line no. 7890) Message strlen() expects parameter 1 to be string, array given Type: 2 File: inc/datahandlers/user.php (Line no. 534) Message trim() expects parameter 1 to be string, array given Type: 2 File: inc/functions.php (Line no. 7887) Message preg_match() expects parameter 2 to be string, array given RE: Errors Flooding Me. - .m. - 2015-07-29 in general, those warnings may be ignored. they are based on php version admin panel >> configuration (settings) >> Server and Optimization Options --> Use Error Handling --> On Error Logging Medium --> Log and email Errors Error Type Medium --> Errors RE: Errors Flooding Me. - Predatorz - 2015-07-29 Alright I will ignore these errors for now. RE: Errors Flooding Me. - Destroy666 - 2015-08-01 PHP warnings shouldn't be ignored. Some of them look like bugs, for example the urlencode one, which I guess is for this line: https://github.com/mybb/mybb/blob/feature/inc/functions.php#L4958 $POST['action'] (or anything else) can be an array and the code doesn't consider that, an !is_array($POST[$var]) check should be executed after the isset() verification. Moving to bug reports for further review. If you have more warnings, please share them. EDIT: the global.php warning is a bug too, https://github.com/mybb/mybb/blob/feature/global.php#L46 - $mybb->input['action'] can be an array and $nosession[$mybb->input['action']] is invalid syntax in that case. Another !is_array($mybb->input['action']) check is missing after isset(). EDIT2: the strlen() and preg_match() bugs concern these lines: https://github.com/mybb/mybb/blob/feature/inc/functions.php#L7964-L7967 Casting $input to (string) should be added before using it in these functions. EDIT3: and, similarly, profile field inputs may not be strings and will trigger warnings here: https://github.com/mybb/mybb/blob/fccaf9768c3b51280b935cb35c3ce557e079d325/inc/datahandlers/user.php#L534 or possibly here: https://github.com/mybb/mybb/blob/fccaf9768c3b51280b935cb35c3ce557e079d325/inc/datahandlers/user.php#L567 Another (string) casting would be nice. RE: Errors Flooding Me. - Jones H - 2015-09-21 @Destroy: Are there any else? Also note that some are likely fixed by this PR: https://github.com/mybb/mybb/pull/1527 RE: Errors Flooding Me. - Destroy666 - 2015-09-28 There most likely are other rare warnings, but I don't know any more currently, except this: http://community.mybb.com/thread-176562.html (I'll push all issues mentioned here and in that topic tommorow if noone has anything to add). That PR doesn't fix anything mentioned here - it's different, incomplete, it affects only 5 files and some changes are not even useful. |