Here are details about my forum to make things easier.

phpBB Version
3.0.1

Host
Servage.net

Style
fisubice2

Database type/version
MySQL 5.0.85

How did you install your board?
Using install package from Phpbb.com

Fresh install or a conversion
First I installed Phpbb2. And then upgraded to version 3

MODs installed?

NV advanced last topic titles
    http://www.phpbb.com/community/viewtopic.php?f=69&t=871075

    Instant Post Redirect
    http://www.phpbb.com/community/viewtopic.php?f=69&t=584852

    Categorize Announces and Stickies
    http://www.phpbb.com/community/viewtopic.php?f=69&t=1101445

    Mini Quick Reply
    http://www.phpbb.com/community/viewtopic.php?f=69&t=937055

    Auto Groups MOD
    http://www.phpbb.com/community/viewtopic.php?f=69&t=770205

    Post Count Requirements
    http://www.phpbb.com/community/viewtopic.php?f=69&t=937065

    Prune Users Never Been Active
    http://www.phpbb.com/community/viewtopic.php?f=69&t=1031705

    Anti-Bot Question
    http://www.phpbb.com/community/viewtopic.php?f=69&t=64507

    User Reminder
    http://www.phpbb.com/community/viewtopic.php?f=69&t=1069755

    Direct links in pm notification emails
    http://www.phpbb.com/community/viewtopic.php?f=69&t=1521555

    Anti_double_post_v2.0.3
    http://www.phpbb.com/community/viewtopic.php?f=69&t=1054155

When did this problem begin?
Few months ago. I didn't have time to do something about it because of exams.

This pic will describe my problem.
[IMG]http://i30.tinypic.com/28kli6v.jpg[/IMG]

Please help me in this. Thank you.

Harshadewa

The simple solution is to edit the forum/adm/index.php file in your PHPBB base.

At the very top, add:

ini_set('display_errors', '0');

That would make errors not display on the page. However, they will still be logged if you have error logging on.

If you are worried you won't catch other errors, which is very possible, then put:

error_reporting(E_ALL ^E_NOTICE);

That ignores notices but will display all other errors.

The third way to solve this is to actually fix the problem. It is a a but in:

includes/acp/acp_styles.php line 2422.

Add a second parameter to the fread() function so that it is:

fread($something, 8192);

Where $something is an actual variable taht is already there. The problem is that fread() expects two parameters, the second being the number of bytes to read. However, if it doesn't get a second parameter it won't break, it will just give a notice and read the default number of bytes, which is 8192.

None of the first two solutions aren't working. I mean same problem.

About the third one, I don't understand it.

Please help me.

Harshadewa

None of the first two solutions aren't working. I mean same problem.

About the third one, I don't understand it.

Please help me.

Harshadewa

Open:

includes/acp/acp_styles.php

Go to line 2422.

You should have:

fread();

It will have just one prameter, like:

fread($fp);

It should have two:

fread($fp, 8192);

This will solve the issue. The other two should also have made the issue disappear, you may have not implemented them correctly.

You can also do output buffering to stop the header() errors.

at the beginning of index.php put:

ob_start();

Note: this is a performance reduction, but I don't think it is by much.

This is what includes/acp/acp_styles.php line 2422 have:

            $template_data = fread($fp, filesize("{$phpbb_root_path}styles/$template_path$pathfile$file"));

Can you please edit it for me.

Thank you very much for helping.

Harshadewa

This is what includes/acp/acp_styles.php line 2422 have:

$template_data = fread($fp, filesize("{$phpbb_root_path}styles/$template_path$pathfile$file"));

Can you please edit it for me.

Thank you very much for helping.

Harshadewa

Please look at the documentation for fread().

http://us.php.net/manual/en/function.fread.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.