MyBB Community Forums

Full Version: Problems After Restoring From Backup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I restored from a backup after coming back to MyBB from IP.Board. I imported the database and got it all reconnected again, but my index page won't load, neither will it load if I go to /index.php. I can't login or login to my AdminCP (it logs me right back out). I've checked my cookie settings, they're correct.

I'm also getting a load of Warning [2] Cannot modify header information - headers already sent errors.


Warning [2] Cannot modify header information - headers already sent by (output started at /home3/site/public_html/inc/plugins/mrd.php:577) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File Line Function
[PHP] errorHandler->error

Please help.
Did you edit any of the files with notepad? If so, notepad probably put special characters before the "<?php" line that can't be seen with a normal text editor. That is one possible cause of the issue.
Try disabling all plugins.

Go to .inc/settings.php and find the following:

 $settings['no_plugins'] = "0";

Change it to

$settings['no_plugins'] = "1";

Does it help?
(2013-08-01, 10:29 PM)Arbaz Wrote: [ -> ]Try disabling all plugins.

That worked!
Now my pages load fine, but I still can't login.

None of my plugin files were edited, so I don't believe there is any special character. I checked, too.
Great. You can't keep all your plugins disabled permanently. I will provide you some instructions later on how to remove that error but first we need to work on helping you log in to your forum.

Can you provide me the link to your forum and your cookie settings in your .inc/settings.php file?

The cookie settings function should be something like this

$settings['cookiedomain'] = ".example.com";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = ""; 
My site: http://ow.ly/nynTO

Cookie setting:
$settings['cookiedomain'] = ".haxorz.net";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "db_";


And my site is completely dependent on plugins, including my theme. Without the plugins my site wouldn't function correctly.
Nothing personal but god damn you have hell of a lot forums. Correct me if I'm wrong, you have more than 90 forums with just 120 members of which 40% of them are active? Try reducing the amount of forums you have.

For cookieprefix, remove the db_ so it becomes

$settings['cookieprefix'] = "";
Yeah, we do have a lot of forums, I agree. I'll lessen the amount later.

Ok, I removed the cookie prefix and now I can login and access my AdminCP.
Great. Now go to ACP>Confirguration>Settings>General Configuration>Remove db_ from cookieprefix and leave it empty>Save.

Then go back to your .inc/settings.php and find

$settings['no_plugins'] = "1";

Change it to

$settings['no_plugins'] = "0";

After that, you should be able to see the error again about the plugins. Post a list of all the activated plugins you have.
When I made the cookie prefix change with the plugins still disabled, I got a headers already sent error in the AdminCP, but the configuration update was successful.

I have re-enabled the plugins. Now my index page won't load, but there's no more errors on the memberslist, staff page, news portal, etc.

Plugin List:

ErrorProfileBan (1.0)

Admins can log into Users' accounts (1.2)

Akismet (1.2.2)

Announcement Go (1.0)

April Fools Plugin (1.2.4)

Additional Usergroup Images (1.1)

Auto Redirect (BETA)

Guest warn (3)

Ban Button On Postbit (2.0)

Board Messages (2.0.1)

Classic Author Column (1.0.8)

CSS Buttons (1.0)

Default Avatar (1.0)

DyMy Hide Non Activated Users (1.0)

Fit on Page (2.3)

Game Section (1.2.3-1)

Group Notice (1.0)

MyBB GoMobile (1.1)

Google SEO (1.6.5)

Hello World! (1.0)

Highslide 4.1.9 Zoom-Slideshow-Watermark (4.0)

Image Resizer & Optimizer with GD (1.1.1)

Image Magnify (1.0)

Advance ads on index. (1.0)

IP Manager (0.1)

Multiple Registrations Detector (1.1)

My Advertisements (2.0.3)

MyNetwork (1.1.2)

MyShoutbox (1.7)

MySubscriptions (1.00)

Nickstyles (1.0)

Stop Theme Changes (1)

Page Manager (1.5.2)

PluginLibrary (11)

Plugin Uploader (1.1.2)

Private Message Log (1.0)

Portal Redirect (1.1.0)

ProjectX theme (beta 0.1.5)

ProStats (1.9.5)

Registration Security Question (1.2)

Reputation Bars (0.2)

RSS Feed Poster (1.5)

Shadowbox.js (1.5)

Spoiler BBCode (1.6)

Disable Special Characters in Usernames (1.2)

Strict Username (1.5)

Style Usernames (1.6)

Thanks (3.9.1)

User Profile Hotlinking (1.0)

VIP Membership (1.5)

While you were typing (1.3)

I've tried to deactivate some plugins but it won't let me. I get a headers already sent error.
Pages: 1 2 3