[phpBB Debug] PHP Warning: in file /donate.php on line 57

Download and support for PhpBB3 Paypal Donation Mod
Locked
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

[phpBB Debug] PHP Warning: in file /donate.php on line 57

Post by artikkk »

Code: Select all

[phpBB Debug] PHP Warning: in file /donate.php on line 57: Division by zero
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4749: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3820)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4751: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3820)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3820)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4753: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3820)

in donate.php :D
Please help me
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

[phpBB Debug] PHP Warning: in file /donate.php on line 57: D

Post by Stoker »

Damn you! ;)

The easiest fix is to go to ACP and put some values in the donation stats fields. A zero will be fine if you dont want to use them.
But you can also open donation.php
Find and delete: 'DONATION_GOAL_NUMBER' => $donation_goal_number,
Find and delete: $donation_goal_number = ($config['donation_achievement'] * 100) / $config['donation_goal'];
Find: // Lets build a page ...
Before add:

Code: Select all

if (!empty($config['donation_goal_enable']) &&  $config['donation_goal'] > 0)
{
$donation_goal_number = ($config['donation_achievement'] * 100) / $config['donation_goal'];
$template->assign_vars(array(
	'DONATION_GOAL_NUMBER'				=> $donation_goal_number,
));
}
Board rules! No PM support
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

[phpBB Debug] PHP Warning: in file /donate.php on line 57

Post by Stoker »

Last post updated with correct fix
Board rules! No PM support
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

[phpBB Debug] PHP Warning: in file /donate.php on line 57

Post by artikkk »

Thanks, work.
Locked