MyBB Community Forums

Full Version: Must refresh to do just about anything and can't log out.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This morning I got this new issue and would appreciate any help. Any new post users make doesn't show until they refresh, if they try to log out, they must refresh, if they want to log in, they must refresh. So basically my forum is pretty much useless until the users "refresh." I tried it myself and sometimes the refresh doesn't even seem to work! Like now, I cannot logout at all no matter refreshing 10 times in a row. I get this message: "you were already logged out or have not logged in yet. you will now be taken back to the forum". So back I go to the forum and I am still logged in.  I searched the forum for some helps and this is what I did do far:

went to admin panel >> configuration >>settings >> site details --> Board URL and added www didn't work and then removed www and still didn't work. 

went ot  ACP->Config->Server & Optimization settings. Tried to put Yes for Friendly Redirect Pages, but there's no friendly redirect pages option to start with, so that didn't help.

Any help is greatly appreciated! I have a forum for people with sick dogs so my users get quite frustrated after some time!

my URL is:
(2015-08-11, 08:34 PM)forumlove Wrote: [ -> ] Tried to put Yes for Friendly Redirect Pages, but there's no friendly redirect pages option to start with,

That is an indication that something is wrong. Standard settings should normally be shown.

Start with running "File Verification" from AdminCP -> Tools & Maintenance".

Did you recently install/uninstall a plugin? Sometimes plugins can destroy certain settings (guess how I know this).

But perhaps a member of the Technical Staff can look at this in more detail.
Thank you so kindly for replying.I didn't install plugins, install anything or touched anything. It just happened overnight. 

I ran a file verification and it says:

"found problems: install/resources/upgrade13.php"

status says "changed" but I didn't touch anything recently.

Any idea what it means?

Edited to add: I am noticing that my main page has the code after the URL "index.php" I don't recall seeing this before. Does anybody know if this part of the problem?

OK, found Friendly Redirect Pages, it was in another place. I put yes for friendly redirect, no changes, same problem. Sad Not sure what else to try. I still need to repeatedly refresh to see new posts, log in and log out.

OK just noticed this message "Your user ID could not be verified to log you out. This may have been because a malicious Javascript was attempting to log you out automatically. If you intended to log out, please click the Log Out button at the top menu."

Problem is, if I click on log out, I never get to log out. I do occasionally only when I refresh multiple times. 

I already cleared all my cookies, and this issue is happening also on another computer.

I find a guide for a similar issue here:

But the links that are supposed to help are not working! I am talking about these links:

"Or, you have some cookies remaining from a previous session (when the Cookie settings were different) and also a set of cookies for this session (with the new cookie settings). In this case, MyBB will clear your new cookies, but not the old ones so you will appear unable to logout.

Please see Cannot login or Cookies to find your correct cookie settings."

Can somebody explain what to do? I am trying to figure it out from this morning.  Many thanks!
The upgrade13.php is part of the install directory, and it is not necessary to look at these.

So this looks like a javascript problem. Can you show your headerinclude template (part of ungrouped template set here?

Else I hope somebody of the Technical Staff will find a solution.

By the way, can you check your cookie settings in inc/settings.php:

$settings['cookiedomain'] = "";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

Note the dot (.) before http:

When these have to be corrected, Login in your AdminCP and go to Configuration (settings) -> Site Details and correct and save these data also there.
Thank you so kindly for replying so I went to the php code and removed the dot before http.  Saved and went back to the forum. I tried to log out and didn't get the malicious javascript error (this sort of pops up only every now and then), but it keeps saying "you have successfully logged out" when  I am still showing logged in. Here is the headerinclude:

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script type="text/javascript">
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var cookiePrefix = "{$mybb->settings['cookieprefix']}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
var my_post_key = "{$mybb->post_code}";
var imagepath = "{$theme['imgdir']}";
// -->
This is for 1.6, Because this forum is for 1.8 we expect that your forum operate om 1,8!!

(2015-08-12, 04:23 PM)forumlove Wrote: [ -> ]Thank you so kindly for replying so I went to the php code and removed the dot before http.

No, you should not have removed the dot (.) before http. I did not write that!!
^ That's not a valid cookie domain. It should never contain the protocol or www:
$settings['cookiedomain'] = "";

And the forum is 1.8, but the theme isn't compatible with it. Either download a 1.8 theme here:, fix that theme or recreate the default theme:
(2015-08-12, 06:45 PM)Destroy666 Wrote: [ -> ]^ That's not a valid cookie domain. It should never contain the protocol or www:

Completely right, stupid copy/paste action Angry Blush

(2015-08-12, 06:45 PM)Destroy666 Wrote: [ -> ]And the forum is 1.8, but the theme isn't compatible with it.

But the headerinclude he shows is 1.6, isn't it?
Yes, and headerinclude is a part of the outdated theme.
That's odd. I updated the forum from 1.6 to 1.8.5 about 6 months ago and I used the default theme for 1.8.5. How can it be incompatible if what I am using is the default theme?

Ad Baker, I am sorry, when I read "note the dot (.) before http" followed by "when these need corrected log in, etc" I thought you meant it was something that wasn't supposed to be there.

So if I change the theme, will that fix the problem? I am really new to mybb so trying to learn as much as I can.
Thank you all for your patience.
Pages: 1 2