The main problem with MyBB

Jason76

Madly Diligent
Joined
Nov 27, 2016
Messages
7,207
Reaction score
959
FP$
572
I like MyBB software, but he problem is those login errors - when the theme isn't compatible with newest upgrade. It's so irritating - that I'm moving over to phpBB for some my free forum software projects.

Anyhow, this is regrettable as I like MyBB better in most cases.
 
My main problem with mybb is slow development, activity at the support forum has slowed, they act more corporate then community.

I use to be a large fan of mybb.
 
As many users have moved to paid forum software from MyBB, few developers, contributors also left. So slow growth and improvement
 
When I ran MyBB i had this same exact issue. It just wasn't for me.
 
I like MyBB software, but he problem is those login errors - when the theme isn't compatible with newest upgrade. It's so irritating - that I'm moving over to phpBB for some my free forum software projects.

Anyhow, this is regrettable as I like MyBB better in most cases.
Well, that can have a lot to do with the theme & its creator. I don't know if we should jump the gun and blame MyBB devs even if they are slower than in the past. It is after all a really nice free software.
Sometimes major upgrades are required and unfortunately theme developers aren't always around or interested enough to upgrade the themes to the new versions. Of course fixes can be made, but it's the same across other forum software as well - Any time a major upgrade occurs the plugin and theme developers need to be quick.
 
My main problem with MyBB is that my themes won't auto-update in Chrome. I was working on my project last night around midnight and now it is 1pm and the theme still hasn't updated in Chrome. Also, the theme I'm using for some reason won't display images.

I'm about to switch hosts so I will probably switch software at that point. I'm just not sure what software I will use.
 
Did you save the theme settings and templates to update the theme. Plus make sure cache folder has right permissions
 
Did you save the theme settings and templates to update the theme. Plus make sure cache folder has right permissions
Yes, cache is 777 and saved everything and rebuilt the cache even. I did everything I could think of. It updates in Microsoft Edge immediately but Chrome Incognito or regular Chrome it updated ONCE over the last 13+ hours. That is even with closing out Incognito mode and reopening it to make sure it didn't save cookies/cache or anything.

I just realized I have a spare XF license sitting around not doing anything so I may switch over to that and eventually upgrade it.
 
Yes, cache is 777 and saved everything and rebuilt the cache even. I did everything I could think of. It updates in Microsoft Edge immediately but Chrome Incognito or regular Chrome it updated ONCE over the last 13+ hours. That is even with closing out Incognito mode and reopening it to make sure it didn't save cookies/cache or anything.

I just realized I have a spare XF license sitting around not doing anything so I may switch over to that and eventually upgrade it.

It is better to do the switch, MyBB has certain problems like this. XenForo has a converter and it will help you
 
Yes, cache is 777 and saved everything and rebuilt the cache even. I did everything I could think of. It updates in Microsoft Edge immediately but Chrome Incognito or regular Chrome it updated ONCE over the last 13+ hours. That is even with closing out Incognito mode and reopening it to make sure it didn't save cookies/cache or anything.

I just realized I have a spare XF license sitting around not doing anything so I may switch over to that and eventually upgrade it.

Can you try hard refreshing in Chrome?
Are you using CloudFlare or anything similar for caching that could be overriding your own server / account settings?

Here's how you can fix Chrome caching issues though if you want...
Normally, we just go to the file that includes the style, and you should see something like this:
<link rel="stylesheet" src="theme/style.css" type="text/css" />

We would change this to:
<link rel="stylesheet" src="theme/style.css?version=2" type="text/css" />

The ?version=2 won't do anything to your stylesheet, but it will cause Chrome to reload the file & update the cache because it's a "different file" in the eyes of Chrome. This is why you sometimes see JS & CSS files being included with ?version= or ?ver= at the end. It's to avoid this exact caching issue, and it's NOT the fault of MyBB. I understand XF and other software might have workarounds to fix cache issues for Chrome, but it's really not MyBB's fault that Chrome doesn't have better cache-override abilities. 🙂

But we can accomplish this all with a simple stylesheet file name change, and MyBB makes it super easy to do so without ruining parts of your site. 🙂

Go to your Admin CP
-> Templates & Style
-> Click the theme link
-> For each stylesheet:
------> Click Options button
------> Click Properties option
------> Change stylesheet name (ex: global.css becomes global2.css)

This will now update the theme stylesheet include in all of the headers. This will then force Chrome & every other browser to re-cache the stylesheet and override any saved ones 🙂
 
Can you try hard refreshing in Chrome?
Are you using CloudFlare or anything similar for caching that could be overriding your own server / account settings?

Here's how you can fix Chrome caching issues though if you want...
Go to the template that includes the style, and you should see something like this:
<link rel="stylesheet" src="theme/style.css" type="text/css" />

Change this to:
<link rel="stylesheet" src="theme/style.css?version=2" type="text/css" />

The ?version=2 won't do anything to your stylesheet, but it will cause Chrome to reload the file & update the cache 🙂

HOWEVER, this is not really possible with MyBB because of how the stylesheets are included.
But we can accomplish the same 🙂


Go to your Admin CP
-> Templates & Style
-> Click the theme link
-> For each stylesheet:
------> Click Options button
------> Click Properties option
------> Change stylesheet name (ex: global.css becomes global2.css)

This will now update the theme stylesheet include in all of the headers. This will then force Chrome & every other browser to re-cache the stylesheet and override any saved ones 🙂
No cloudflare or anything like that enabled. My hosting does have litespeed but I don't think that has anything to do with it as it updates fine in Edge just not Chrome.

Hard refresh as in clear cookies/cache? I shouldn't have to do that EVERY TIME I make an update to a theme. Also, probably won't help as I'm trying in incognito mode which does exactly that every time you close and open the window. I have closed and reopened incognito mode 50+ times since last night.

Do I have to keep changing the name every time I do an update to the theme? Cause again, that's a workaround, not a solution.
 
No cloudflare or anything like that enabled. My hosting does have litespeed but I don't think that has anything to do with it as it updates fine in Edge just not Chrome.

Hard refresh as in clear cookies/cache? I shouldn't have to do that EVERY TIME I make an update to a theme. Also, probably won't help as I'm trying in incognito mode which does exactly that every time you close and open the window. I have closed and reopened incognito mode 50+ times since last night.

Do I have to keep changing the name every time I do an update to the theme? Cause again, that's a workaround, not a solution.

Oh okay, well if it updates fine in Edge & not Chrome it's probably not Litespeed.
No, you will not need to hard refresh each time. Although a hard refresh just forces Chrome to reload things like cached JS & should usually take care of CSS too, but there have been other people on the web having issues with Chrome not refreshing stylesheets - not just on MyBB.

The other way to update user caches is to use meta tags with Cache-Control:

You can basically do this:
-> Admin CP
-> Templates & Style
-> Click Templates link on left
-> Click your theme link
-> Click the Index Page Templates link
-> Click the 'index' link

You should see something similar to this:
HTML:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}

Right before {$headerinclude} you can add your cache-control meta tags.
HTML:
<meta http-equiv="cache-control" content="max-age=0" />

This would be pretty aggressive because it basically means "look for a new version of cached files after 0 seconds" so it would never cache.
You can change it to any amount (it's in seconds). So, 3600 = 60 minutes meaning the client will look for new versions of files every 60 minutes. You could do 86,400 seconds so that each client only stores cached files for 24 hours max.

You could add this META tag into your template for MyBB when you're making changes and then once you settle on your CSS for a long period of time just change the max-age or remove the meta tag completely so you can benefit from caching.

It won't take you long and will stay in place even when you update your files 🙂

However, meta tags will fix the issue for real visitors, but still not override caches for proxies & certain services. Basically the meta tags only work because browsers are specifically looking for meta tags. You can use .htaccess / HTTP Headers to have a more stable & full on anti-cache fix. I recommend trying both, but I know the first example I just gave will work & the easier meta tag example will work too 🙂 Even the htaccess isn't hard, but it might depend on your web host because some override these settings with master files.
 
Back
Top Bottom