Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Wed Jun 19, 2019 10:10 am

Support Request Template
What version of phpBB are you using? phpBB 3.2.7
What is your board's URL? http://itradeaims.net/forum
Who do you host your board with? ipage.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? Yes
Do you have any extensions installed? Yes
What version of phpBB3 did you update from? phpBB 3.0-B1
What MODs do you have installed? I'm not able to access ACP. Unfortunately I have not kept this list anywhere else
What extensions do you have installed? I'm not able to access ACP. Unfortunately I have not kept this list anywhere else
What styles do you currently have installed? ProSilver
What language(s) is your board currently using? English
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? I updated from 3.2.5 to 3.2.7 using Full Package Option. Previously I always used Automatic Update and it worked.
Please describe your problem. After Install was run, it was relatively quick and I got through but the forum page would be empty. Then it started showing, was able to access acp, and board view but with errors such as

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/config.php:30)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/config.php:30)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4628: Cannot modify header information - headers already sent by (output started at [ROOT]/config.php:30)

on ACP I was getting Line 137 errors pointing ot includes/functions_acp.php and etc
Now if I try to login, I get this error on a white screen

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1868: Cannot modify header information - headers already sent by (output started at [ROOT]/config.php:30)
Generated by SRT Generator

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69101
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by KevC » Wed Jun 19, 2019 10:23 am

yousafzai wrote:
Wed Jun 19, 2019 10:10 am
headers already sent by (output started at [ROOT]/config.php:30)
That's an unusual message.

What's at the end of your config.php file on line 30?
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Wed Jun 19, 2019 11:02 am

KevC wrote:
Wed Jun 19, 2019 10:23 am
yousafzai wrote:
Wed Jun 19, 2019 10:10 am
headers already sent by (output started at [ROOT]/config.php:30)
That's an unusual message.

What's at the end of your config.php file on line 30?
Hi

Thanks for your reply. Well, its a standard config file. that's the end of the file.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69101
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by KevC » Wed Jun 19, 2019 11:06 am

Post up the entire contents of that file without your database name/password.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Wed Jun 19, 2019 11:08 am

That Line No 4628 in Functions.php is

header((string) $hname . ': ' . (string) $hval);

Once you enter Username and Pass: it shows blank page with this at the top

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1868: Cannot modify header information - headers already sent by (output started at [ROOT]/config.php:30)

yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Wed Jun 19, 2019 11:10 am

KevC wrote:
Wed Jun 19, 2019 11:06 am
Post up the entire contents of that file without your database name/password.
Config.php

<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli';
$dbhost = 'Deleted';
$dbport = '';
$dbname = 'Deleted';


$db_user[] = 'Deleted';
$db_user[] = 'Deleted';
$db_pwd[] = 'Deleted';
$db_pwd[] = 'Deleted';


$db_user_id = rand( 0, ( sizeof($db_user) -1 ) );

$dbuser = $db_user[$db_user_id];
$dbpasswd = $db_pwd[$db_user_id];


$table_prefix = 'phpbb_';
$acm_type = 'file';
$load_extensions = '';

@define('PHPBB_INSTALLED', true);
@define('DEBUG', true);
@define('DEBUG_EXTRA', true);
?>






yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Wed Jun 19, 2019 11:15 am

KevC wrote:
Wed Jun 19, 2019 11:06 am
Post up the entire contents of that file without your database name/password.
Its one of those moments... You asked to put up the entire file. I went to copy and paste and noticed empty lines beyond line 29. Quickly deleted those.

and voila we are back to normal... thanks for the help.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69101
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by KevC » Wed Jun 19, 2019 11:24 am

Excellent. Yep it was either blank lines or added lines as the very last thing should be the ?>
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
canonknipser
Registered User
Posts: 1995
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by canonknipser » Wed Jun 19, 2019 6:13 pm

KevC wrote:
Wed Jun 19, 2019 11:24 am
as the very last thing should be the ?>
No, ALL php-files in phpBB are missing the closing ?> with intention (see the coding guidelines as a reference), so the ?> must have been edited in by someone...
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69101
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by KevC » Wed Jun 19, 2019 6:22 pm

Actually probably a conversion/upgrade from an earlier version so likely to be using an old appended config.php file where it's still there but yes you're right.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
canonknipser
Registered User
Posts: 1995
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by canonknipser » Wed Jun 19, 2019 7:09 pm

yousafzai wrote:
Wed Jun 19, 2019 11:15 am
Quickly deleted those.
To be future-save, just delete the line with the end tag ?> also
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

yousafzai
Registered User
Posts: 11
Joined: Mon Oct 17, 2016 10:18 am

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by yousafzai » Thu Jun 20, 2019 9:42 am

canonknipser wrote:
Wed Jun 19, 2019 7:09 pm
yousafzai wrote:
Wed Jun 19, 2019 11:15 am
Quickly deleted those.
To be future-save, just delete the line with the end tag ?> also
oh, just delete the end tag? would that still work. suppose it would if you're saying that.

User avatar
canonknipser
Registered User
Posts: 1995
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Can't Login - Can't access ACP Either (Issues after Update to 3.2.7 from 3.2.5)

Post by canonknipser » Thu Jun 20, 2019 1:37 pm

Yes, it is save to delete. No php file in phpBB has a end tag ( Except those from external libraries or vendors, maybe)
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

Post Reply

Return to “[3.2.x] Support Forum”