echo 'adm_page_header';
here: https://github.com/phpbb/phpbb/blob/rel ... cp.php#L35It should be printed on every page in the ACP. Does it show on the page where you see that error message?
echo 'adm_page_header';
here: https://github.com/phpbb/phpbb/blob/rel ... cp.php#L35adm_page_header[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_acp.php:35)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_acp.php:35)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_acp.php:35)
adm_page_header()
, the non-ACP version page_header()
is called, even though you're in the ACP.Code: Select all
if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin'])
{
adm_page_header($page_title);
}
else
{
page_header($page_title);
}
IN_ADMIN
needs to be defined and the user session must have session_admin
enabled (that second condition failed in wads24's case).IN_ADMIN
is defined is here: https://github.com/phpbb/phpbb/blob/rel ... ex.php#L49session_admin
is enabled is here: https://github.com/phpbb/phpbb/blob/rel ... n.php#L754Code: Select all
echo implode(',', [
defined('IN_ADMIN') ? 'IN_ADMIN_DEFINED' : 'IN_ADMIN_NOT_DEFINED',
defined('IN_ADMIN') && IN_ADMIN ? 'IN_ADMIN_TRUE' : 'IN_ADMIN_FALSE',
$user->data['session_admin'],
]);
59test wrote: IN_ADMIN_DEFINED,IN_ADMIN_TRUE,0
Warning: Cannot modify header information - headers already sent by (output started at /home/sportf5/public_html/59test/includes/functions.php:4142) in /home/sportf5/public_html/59test/includes/functions.php on line 4522
Warning: Cannot modify header information - headers already sent by (output started at /home/sportf5/public_html/59test/includes/functions.php:4142) in /home/sportf5/public_html/59test/includes/functions.php on line 4522
Warning: Cannot modify header information - headers already sent by (output started at /home/sportf5/public_html/59test/includes/functions.php:4142) in /home/sportf5/public_html/59test/includes/functions.php on line 4522
session_admin
enabled, same as wads24. When you log in to the ACP, do you re-authenticate? Is this line executed? https://github.com/phpbb/phpbb/blob/rel ... ex.php#L37 Add an echo
there to make sure.// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
echo implode(',', [
defined('LOGIN_ADMIN_CONFIRM') ? 'LOGIN_ADMIN_TRUE' : 'LOGIN_ADMIN_FALSE',
defined('LOGIN_ADMIN_SUCCESS') && LOGIN_ADMIN_CONFIRM ? 'LOGIN_ADMIN_SUCCESSFUL' : 'LOGIN_ADMIN_UNSUCCESSFUL',
$user->data['session_admin'],
]);
// Mark notifications read
LOGIN_ADMIN_FALSE,LOGIN_ADMIN_UNSUCCESSFUL,0IN_ADMIN_NOT_DEFINED,IN_ADMIN_FALSE,0[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4522: Cannot modify header information - headers already sent by (output started at [ROOT]/index.php:35)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4522: Cannot modify header information - headers already sent by (output started at [ROOT]/index.php:35)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4522: Cannot modify header information - headers already sent by (output started at [ROOT]/index.php:35)
To administer the board you must re-authenticate yourself.
before entering the ACP, even after logging out completely and logging back in?adm/index.php
? Upload a fresh copy from the phpBB 3.2.1 package and try again.session_admin
enabled, yet you don't because page_header()
is called instead of adm_page_header()
. board root/includes
and board root/phpbb
are not modified in any way.echo $user->data['session_admin'];
and log out and in again, then go to the ACP. Expected output:
Meanwhile, I'm comparing code in root/includes and root/phpbb to the 3.2.1 source, where I see the date in my production board is different than the last upgrade date. (I have the problem in production too - I copied code from there to produce my test environment.) Looking for something that may have changed, other than the modded code (now back to 3.2.1 in test).acp wrote:0adm_page_header[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/adm/index.php:33)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/adm/index.php:33)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/adm/index.php:33)
Code: Select all
if ($user->data['username'] == 'YourUsername')
{
debug_print_backtrace();
}
// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
//login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
}