MyBB Community Forums

Full Version: Themes does not work after updating from HTTP to HTTPS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi there

I just update the URL in the MyBB settings to point to a HTTPS domain and now our forum layout is a mess:
[Image: wings3d-mybb-page.png]

I just checked the MyBB database at our provider (SourceForge.net) and the database seems to be correctly updated:
[Image: wings3d-mybb.png]

But, taking a look at the source page it seems something is not correct with the bburl replacement. The variable {$mybb->asset_url} in the template has been translated correctly, but not the {$mybb->settings['bburl']} (see bellow).

Does anybody can give me a tip about what can be happening?
I probably would be able to replace the malfunction variable by the other one, but that can cause issues in the future updates.

[Image: wings3d-mybb-page-template.png]

[Image: wings3d-mybb-src-page.png]
set board url in acp to https

for more information around setting up to https read this doc: https://docs.mybb.com/1.8/administration...ity/https/
(2024-03-26, 05:15 PM)bv64 Wrote: [ -> ]set board url in acp to https
I did that if you saw the second image.
Or, is there another place than Board SettingsĀ»Site Details to set it?

bv64 Wrote:for more information around setting up to https read this doc: https://docs.mybb.com/1.8/administration...ity/https/
I did that.
What is relative to the server is not under my domain. I tried the "enforcing HTTPS" via .htaccess which I can set, but that is not necessary once SourceForge is already doing that (as their support told me).
If the {$mybb->settings['bburl']} was returning the https address present in the database that would not be happening. I just don't know why that is happening.
Another place to look may be the CDN settings in Server and Optimization Options.
if I visit https://wings3d.com/forum/ it looks ok, but there are two warnings left (maybe for guests only)

Also remember to clear your browser cache
CTRL-F5 on windows
(2024-03-26, 05:51 PM)bv64 Wrote: [ -> ]if I visit https://wings3d.com/forum/ it looks ok, but there are two warnings left (maybe for guests only)
Yeah. It's strange.
For a fraction of time I could checked and I could confirm. But, now I closed the page and trying to open it (even in the smartphone) it's "bugged" again. :/

The problem would be related to these recent changes they are doing at the server (???). Just before this thread be opened they are about to proceed with the "full migration" from http to https for our project.

About the warnings, I just enabled them again to check which ones were still pending. I'm going back to the other thread to get some extra help there. Smile


Thanks for take your time checking this.
I think it's the cache, try another device or browser and refresh the page

I see only https for all relevant links to your page
(2024-03-26, 06:27 PM)bv64 Wrote: [ -> ]I think it's the cache, try another device or browser and refresh the page
I'm under Edge on PC. Edge and Chrome on smartphone. Refresh is all I have be doing all day long. Clear the cache/cookies too. I'm about to shut down my network at home and see if something changes. Sad


Anyway, what is the difference between {$mybb->asset_url} and {$mybb->settings['bburl']}, since the first is getting updated and the second don't?
Would be safe I replace the 2nd by the 1st in order to fix the problem?
(2024-03-26, 06:27 PM)bv64 Wrote: [ -> ]I think it's the cache, try another device or browser and refresh the page

I see only https for all relevant links to your page

This is. The setting is completely driven by Board URL.
But additionally:
- Make hard refreshes several times (Ctrl + F5, in Win) and check.
- Purge Browser cache from browser settings and check.
- Enable "Minify Stylesheets" feature from ACP > Configuration > Settings > Server and Optimization Options : and check
- Try using different browser and check.
- If you are under Cloudflare - need to purge cache there and check
- Comment out global.php : Line 338 (following) and check
$stylesheet_url .= "?t=".filemtime(MYBB_ROOT.$page_stylesheet);
(2024-03-26, 06:53 PM)Micheus Wrote: [ -> ]Anyway, what is the difference between {$mybb->asset_url} and {$mybb->settings['bburl']}, since the first is getting updated and the second don't?
Would be safe I replace the 2nd by the 1st in order to fix the problem?

Both are same unless you have explicitly declared in settings to be using a CDN to serve your site assets.
Pages: 1 2 3