MyBB Community Forums

Full Version: Error Index Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am getting this error on Forum Homepage

Quote:Warning: sprintf() [function.sprintf]: Too few arguments in /home/wwwproj/public_html/index.php on line 205

Also one more error while I enter into some forum

Quote:Warning: Cannot modify header information - headers already sent by (output started at /home/wwwproj/public_html/global.php:1) in /home/wwwproj/public_html/inc/functions.php on line 1216
|
Did you edit global.php? Chances are you edited this with Notepad. Please try redoing the modifications in a text editor like Notepad++ or EditPlus instead of Notepad on a clean version of global.php (redownload from www.mybboard.net if necessary)
The index page problem is over.

Now I have this problem when i edited global.php for this purpose.

I have changed navigation variables from this;

Quote:$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";

to this:

The index page problem is over.

Now I have this problem when i edited global.php for this purpose.

I have changed navigation variables to this;

Quote:$navbits = array();
$navbits[0]['name'] = Home;
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";

For displaying Home in navigation.

But it gives me the second error .. Can u help me in this?
My previous reply was responding to the "second error" you mentioned.
Yes But I need to change that .. how can i do that if I upload a new global.php?
Ok I will simplify the post above into steps:
1) Redownload the latest MyBB package if necessary to obtain a clean copy of global.php
2) Grab and install Notepad++
3) Use Notepad++ to modify the file as you need to (don't use Notepad)
4) Upload global.php to your file.