Jump to content

'Unrecognised path' Error at admin login and page deletion


prestoav
 Share

Recommended Posts

Hi folks,

PW 3.0.210
PHP 7.4.33
DB MariaDB

I know others have had similar issues with this error displaying and I have worked through all proposed solutions (I think....).

Here's the issue, on admin login I see this error:
1921830644_Screenshot2023-09-07at09_59_01.png.d4f95de97953e79d2690e76cdf881784.png

Looking at the network tab of browser tools I only see 2 files which are not status 200 when login has completed:

494655506_Screenshot2023-09-07at09_59_52.thumb.png.c1dd8929c1dd98892f27692b47f5fb14.png


I also see the issue when trying to delete pages either via the Lister (Find) or in the page specific admin (example here from Lister after the 'Trash' button is clicked in Pages > Find - note I do not have ListerPro installed). Thsi means I can no longer delete pages in admin!


882591995_Screenshot2023-09-07at10_02_14.png.5c409c8d965f8a85681a9fdcb4503986.png

There are no errors in console and no errors in PW logs or the hosting's PHP log file. 

Finally, deleting pages via the API completes with no issues or errors.

To try and diagnose the situation further I have also:
1) Installed a brand new version of the whole 'wire' folder
2) Brought in a known-working, version correct, version of the .htaccess file with only the no.9 'https' directive active.
3) Checked there is a valid 'Profile' page under Admin in the page tree and that page has the correct 'ProcessProfile'

Would any of you super people out there have any other ideas I could try to correct this?

Thanks in advance!

Link to comment
Share on other sites

@prestoav Is it possible you've turned off URL segments for your admin template? 

That error comes from /wire/core/ProcessController.php (here) when it can't match up the current URL segment to a method in the Process module. It would be worth looking at the Network tab in your browser to see what the full URL is when it's failing. 

Link to comment
Share on other sites

20 hours ago, ryan said:

@prestoav Is it possible you've turned off URL segments for your admin template? 

That error comes from /wire/core/ProcessController.php (here) when it can't match up the current URL segment to a method in the Process module. It would be worth looking at the Network tab in your browser to see what the full URL is when it's failing. 

Thanks for your help @ryan.

I checked the admin template and segments were not allowed (I assume this is the default as I didn't even know this section of admin existed)! I also checked my MAMP copy of eth site and that does not have segments allowed either and that's working fine.

I've allowed segments on the live site (the one with the issue, see config image below) but the problem remains:

1641841700_Screenshot2023-09-08at15_11_51.thumb.png.c573c997518a742e856a4ef8b342219d.png

I did look at the browser Network tab and only two redirects were noted (see original post).

Looking further at where the issue happens, when I login to the MAMP site (that works) the page you get to is '/admin/page/?login=1'. However, on the version of the site that is live the login process directs you to '/admin/template' which, I'm guessing is where the issue is?

Another thing I've noticed with further investigation is that, if I switch to the Reno or Default themes the 'Pages' menu is completely missing. It's there in UiKit but not in the others. Again, checking my local copy of the site, the Pages menu is present in all themes?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...