Web based family history software

Question Control Panel gets a 404 error

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #1 by thezfunk
Control Panel gets a 404 error was created by thezfunk
Hi,

Just like the title, I upgraded to 2.0 and now 2.0.1 and since going to 2.0 the control panel page just shows a 404 error.

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

More
4 years 3 months ago #2 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
1) what URL is giving the 404 error?

2) did you set the `base_url` correctly in data/config.ini.php

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #3 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
The URL giving me the error is: mywebsite.com/webtrees/admin

I set the base URL in config.ini.php to: base_url=" mywebsite.com/webtrees "

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

More
4 years 3 months ago #4 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
Maybe the system thinks that you are not logged in.

Try clearing the cookies in your browser?

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #5 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
I did that initially to be able to log in as it wasn't letting me after upgrading from 1.7 to 2.0.

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #6 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
I still don't have this solved but I noticed something:

admin page takes me to:
Code:
https://www.bzar.us/webtrees/admin

There is no admin folder in the webtrees folder anymore...

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

More
4 years 1 month ago #7 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
Did you enable "pretty URLs" on your site?

Pretty URLs do not correspond to folders.

webtrees receives "/admin", and runs the script to create the page.

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #8 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
I did.

Is that why it isn't working?

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

More
4 years 1 month ago #9 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
There are lots of different 404 pages.

It could be generated by your browser.
It could be generated by your server.
It could be generated by webtrees.

Can you give us more details. At the moment, we're really working in the dark.

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #10 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
I click on 'Control Panel' and I get a 404 error. Every admin level user has the same problem. I'd be happy to show more information but just need a bit of direction on what to check. This particular issue is a first for me using webtrees.

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

More
4 years 1 month ago #11 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
What does the 404 page look like?

Is it just the admin page?
Does everything else work?
Do you have any other applications installed?

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago - 4 years 1 month ago #12 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error

https://imgur.com/tpjuer4

That is what it looks like. The rest of the site seems just fine. I have trying to find other faults and so far, I haven't. This started when I went to 2.0 and has continued with 2.0.1 and 2.0.2. No other themes or applications are installed.
Attachments:
Last edit: 4 years 1 month ago by thezfunk.

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

More
4 years 1 month ago #13 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
OK - this isn't generated by either webtrees or your browser.

It looks like a custom 404 page created by your server.

You said you are using pretty URLs.
If that's true, then webtrees will redirect unknown URLs to the home page.

My guess is that you have some other server configuration that is mapping these URLs.

Here's a quick test:

Edit one line in this file, and change /admin to /foo

github.com/fisharebest/webtrees/blob/2.0...s/WebRoutes.php#L197

webtrees will now use /foo in place of /admin

Are you now able to view the admin pages?

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #14 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
I did as you suggested and changed line 197 to '/foo' and now the admin pages loads. That is weird.

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

More
4 years 1 month ago #15 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
You have something on your server that is either blocking or redirecting requests for /admin

Could this be some sort of security system?

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

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

  • thezfunk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago - 4 years 1 month ago #16 by thezfunk
Replied by thezfunk on topic Control Panel gets a 404 error
Interesting. Ok, I am doing a bit of brain storming here.

I have this running on my Synology NAS web service which is running Apache 2.4 and PHP version 7.3

I am using MariaDB 10 as the database server.

Maybe I don't have the DB user with enough permissions or something?
Last edit: 4 years 1 month ago by thezfunk.

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

More
4 years 1 month ago #17 by fisharebest
Replied by fisharebest on topic Control Panel gets a 404 error
Nothing to do with the DB.

This is (almost) certainly something in your apache configuration.

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

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

More
4 years 1 month ago #18 by kiwi
Replied by kiwi on topic Control Panel gets a 404 error
The most common culprit for these issues is the apache module "mod_security". You will need to either disable that or find the appropriate rules within it to disable. Google "apache mod_security "admin" issues" for more information.

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

Powered by Kunena Forum
}