MyBB Hacks

Full Version: Help needed to fix these errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
These are the errors being generated when we access them.

First is openinviter error

Code:
Type: 2
File: front_end.php (Line no. 220)
Message
Cannot modify header information - headers already sent by (output started at /home/remosd/public_html/forum/inc/functions.php:92)

[attachment=258]

Next is with shoutbox and similarthreads plugins

Code:
File: inc/plugins/myshoutbox.php (Line no. 571)
Message
Cannot modify header information - headers already sent by (output started at /home/remosd/public_html/forum/inc/plugins/benzerkonu.php:139)

[attachment=260][attachment=259]

Other error is with undodelete

Code:
File: inc/plugins/undodelete.php (Line no. 1043)
Message
array_walk() expects parameter 1 to be array, null given

[attachment=261]

Cant figure out what causing the error. Any help is appreciated.

Why aren't you asking the authors of the plugin?
these are like some outdated plugins probably mybb. authors have released them on mybb and now they arent active.

as they are related to the mybb core files, and some are familiar with mybb, i'm expecting they can solve these.
Quote:Cannot modify header information - headers already sent by...

thist can be a BOM (Byte Order Mark) problem.
i had this problem sometimes.

Download the php-files, for example your "front_end.php", open with notepad++, and when saving the files,
you'll have to save it as UTF8 (without BOM) or some other format that accepts your language's characters.
Upload the new saved php, and perhaps the problem is solved...
There doesn't appear to be a BOM in front_end.php

The code is this:

PHP Code:
$result=output_page($contents);
if (empty($result)) {header("Location: index.php");exit;}

Which I'm guessing should be

PHP Code:
if (empty($contents)) {header("Location: index.php");exit;}
else
$result=output_page($contents);


For your second plugin, it's echo'ing stuff, and from my very quick scan of it, I'm not exactly sure what it's exactly trying to do.  My guess is that it needs some check before it does that.

I don't know about the 3rd one from a quick glance, but I think the person is still supporting that plugin?

1 error fixed Smile

Not sure what to do with 2 and 3rd.

I searched for the support thread at mybb, but there is no thread regarding undodelete Frown

Its sad that author release plugins and discard those threads after few days.
Damn, the 2 and 3 bugs are very annoying. Flooding the inbox with error messages. Dont know how to fix them. Authors are also out of reach.
You can suppress errors by appending the function causing the error with a @ : http://php.net/manual/en/language.operat...http://php.net/manual/en/language.operators.errorc

Probably not what you want to do, but it'll stop the messages.
atleast it helped me out in keeping my inbox empty, but having errors may get into trouble if any exceptional cases occurs.
i think learning php is best Smile
Reference URL's