Page 1 of 1
[phpBB Debug] PHP Warning: in file /donate.php on line 57
Posted: 22 Nov 2011, 22:41
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
Please help me
[phpBB Debug] PHP Warning: in file /donate.php on line 57: D
Posted: 22 Nov 2011, 22:55
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,
));
}
[phpBB Debug] PHP Warning: in file /donate.php on line 57
Posted: 22 Nov 2011, 23:08
by Stoker
Last post updated with correct fix
[phpBB Debug] PHP Warning: in file /donate.php on line 57
Posted: 22 Nov 2011, 23:53
by artikkk
Thanks, work.