Web based family history software

file Question Webtrees 2.0.16 no graphical layout of the home page

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #1 by Mikeko
Hello

What could be the reason that when I type kowalewski.ct8.pl it's textual - as if without a layout?
This wasn't there until recently. I didn't change anything on the page.
On the other hand, when I click on e.g. ‘Default individual’ or ‘Default chart’, the normal appearance loads
kowalewski.ct8.pl/index.php?route=%2Ftre...%2FMaciej-Kowalewski

Regards

Please Log in or Create an account to join the conversation.

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
1 month 1 week ago - 1 month 1 week ago #2 by bertkoor
The css style sheet won't load.
The problem is protocol http versus https.
On the server the file config.ini.php should have a variable 'base_url'.

See www.webtrees.net/index.php/forum/help-fo...do-i-implement-https

stamboom.BertKoor.nl runs on webtrees v2.2.1
Last edit: 1 month 1 week ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #3 by Mikeko
Thank you very much for your helpful reply.
In this file is
>>base_url="http:// ... etc."<<
I changed it to >>base_url="https:// ... etc."<<
Now it works.

Why was this not needed before (a few months ago) and the page loaded normally?

Please Log in or Create an account to join the conversation.

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
1 month 1 week ago #4 by bertkoor
Well, your hosting provider may have switched off http. The whole internet is supposed to be https these days.

http is like sending postcards. Any one working in postal services can read it.
https is like sending sealed letters. Only the receiver has access.

stamboom.BertKoor.nl runs on webtrees v2.2.1

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #5 by Mikeko
http still works.
There are other sites at this provider that work via http:
maksymilian-domeracki.ct8.pl/
grzegorj.ct8.pl/lingwpl/migracje.html
emsoft.ct8.pl
genealogia.ct8.pl/obrazki/Rogozinski-Antoni/
etc.
My site still goes in via http too, just without the layout.
It's a bit strange.

The site is public, so it's like a postcard or a newspaper - anyone can read it.
Of course, the login to the site should be encrypted.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #6 by Franz Frese
simply replace the setting. (from http to https). that has nothing to do with the reachibility.

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #7 by Mikeko
Yes, that's already changed.
I'm just wondering why up until a few months ago the site would load normally via http with the layout, but now it won't.
Only the change to base_url="https:// ..."
caused it to load via https and http.
Previously this change was not needed.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #8 by Franz Frese

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 6 days ago #9 by Mikeko
I asked my domain maintenance provider if anything had changed from his side.
He stated that the problem is on my side because the site is mixed http with https.
Such situations are currently blocked by browsers.
I checked this.
In fact, in older browsers the page loads normally.
That is, it is webtrees using both http and https on the site.
It used to be that browsers accepted this, but now it doesn't.
So the problem is not with the provider, but with Webtrees.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
1 month 6 days ago - 1 month 6 days ago #10 by bertkoor
This is not just a webtrees problem, but mainly a server config problem.

webtrees runs fine on pure http, but then the base_url must be specified as http.
webtrees also runs fine on pure https, but then the base_url must be specified as https.

The common approach to prevent mixing http with https, is to force all request go via https. If you are on a Apache server, then this can be done with the following .htaccess file:
Code:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
This will make any visitor that requests via http to be redirected to the same page on https.

stamboom.BertKoor.nl runs on webtrees v2.2.1
Last edit: 1 month 6 days ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 6 days ago #11 by Mikeko
This is interesting. The creator of webtrees says it's the server provider's fault, the provider says it's the website's fault, i.e. Webtrees.
That is to say, there are no culprits, and in my case it stopped working.

How do you explain the fact that nothing has been changed on the server and an older browser e.g. Firefox 70 loads the page fine and the new 135 does not?

Please Log in or Create an account to join the conversation.

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
1 month 6 days ago - 1 month 6 days ago #12 by bertkoor
Do you want to only look back and argue until the cows come home, or look forward and simply have it fixed?

It's a combination of things: using a web application is a delicate dance between the browser, the server config and the php application. Sometimes while dancing toes get stepped upon, which happens not on purpose but is the risk of dancing. Usually not worth a big drama or investigation.

stamboom.BertKoor.nl runs on webtrees v2.2.1
Last edit: 1 month 6 days ago by bertkoor.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #13 by Franz Frese

This is interesting. The creator of webtrees says it's the server provider's fault, the provider says it's the website's fault, i.e. Webtrees.
That is to say, there are no culprits, and in my case it stopped working.

How do you explain the fact that nothing has been changed on the server and an older browser e.g. Firefox 70 loads the page fine and the new 135 does not?
there is nothing more to explain.
do like Bert said at  www.webtrees.net/index.php/forum/help-fo...the-home-page#110567

For sure your provider changed the handling of mixed content, when your site worked ok formerly. And the solutions by Bert works. Alternative your provider could make handle that situation on a higher level than you can do. But if the provider is not willing to do (and help you) do as Bert proposed or change your provider.

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 6 days ago #14 by Mikeko
Thanks to you, I know how to fix it: change http to https, for which I thank you very much.

I would also love to know what the problem is and who is telling the truth.
On the one hand there is the claim that it is the server's fault, but if I use an older browser it works.
On the other side is the claim that it's not the server's fault, but the site, which uses both http and https.

However, assuming that my provider has changed support for mixed content, which they don't admit and deny, then why does the site work in older browsers?
When I use an older browser and have base_url='http:// ... etc.' it works.
It does not work on the new browser.
However, when I change to base_url='https:// ... etc.' it works on the new browser.

I would like to find out the truth. To find out what the causes were. Just out of curiosity and to find out something I don't know.
After all, it's not some magic and it can be explained in an understandable way.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #15 by Franz Frese
ask the browser developers.
security is the magic word.

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago #16 by Sir Peter
@Mikeko
Neither your base_url configuration nor your rewrite rule seem to be effective.
For https your base_url needs to be precisely:
Code:
base_url="https://kowalewski.ct8.pl"
For the rewrite rule @bertkoor suggested:
Code:
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
I am using a slightly different one:
Code:
RewriteRule ^/?(.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Furthermore make sure you are using an appropriate (no longer supported) php version for your no longer supported webtrees 2.0.16, see webtrees.net/download - if your provider updated your php version then some things might no longer work as expected. Better upgrade all components to supported versions. Otherwise you might suffer from code rot.

Peter

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #17 by Mikeko
So it is the browser that is causing the problem after all.
It follows that webtrees uses http and https in a mixed way all the time.
Of course I know that I can force the use of https.
My point is that as it used to be, it still is.
So it is not my provider (server space and domain) that has contributed to the fact that the webtrees page with my family tree now displays badly.

I've had PHP version 8.1 since 2023 and it worked fine with webtrees 2.0.16 for all that time.

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago - 1 month 5 days ago #18 by Sir Peter

It follows that webtrees uses http and https in a mixed way all the time.
because you most probably misconfigured something a long time ago, but the old browser was more tolerant than the new browser. The only one who can fix that is you.

EDIT: One more thing. webtrees CANNOT be run successfully with both http and https. You MUST decide for one or the other. Because providers usually offer both protocols it is better to only use https and configure webtrees as suggested, i.e. base_url and a rewrite rule.

Peter
Last edit: 1 month 5 days ago by Sir Peter.

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago #19 by fisharebest
> Why was this not needed before (a few months ago) and the page loaded normally?

1) I guess that until now, you only visited your site using http:, even though your webhost also provides HTTPS.

Now, you visited your site with https: and it does not work because you have the wrong URL in your configuration. The page is in HTTPS, but all the CSS and JS are sent using HTTP.

2) webtrees sends a HTTP header that sas "if you load this page once using HTTPS, then you must use HTTPS on future visits".

Specifically, it sends this HTTP header:
Code:
strict-transport-security: max-age=31536000

So, now you cannot go back to HTTP due to browser security rules.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Mikeko
  • Mikeko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 3 days ago #20 by Mikeko
Have I configured something wrong?
The webtrees installer is very simple. You enter a few details and that's it.
I don't think there is any way to configure anything there, including http/https.
Am I mistaken?
I haven't changed anything after that

Do I understand correctly that it is as below?

I installed webtrees in 2021. I accessed the web site via HTTP.
I didn't change anything in the webtrees configuration.
In 2025, I entered this web page via HTTPS and the web page displays wrong.
Can I now only enter via HTTPS on subsequent visits?

It's a bit strange, because over HTTP it still works correctly, but over HTTPS it doesn't.
Furthermore, when I change base_url=‘http...’ to base_url=‘https...’, it loads the page correctly, both over http and over https.

I would add, what I wrote about, that older browsers, despite the base_url=‘http...’ being set, display the page correctly via both http and https.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum