Giulio_.

ADMIN - Pages not working

Recommended Posts

Hello everyone,

I'm having an issue in the ADMIN side of my processwire. I login as admin and I immediately receive the message in the attachment.

"Unknown error, please try again later". 3 browsers, 2 computers, 2 IP, same error...

It's strange because I can see the other parts of the ADMIN side, like SETUP, MODULES... But when I click on PAGES i see this error.

Any ideas of what can I do to solve the problem?

All the pages of the website are working correctly

 

Thank YOU!

1.jpg

Share this post


Link to post
Share on other sites

The pagelist does issue an ajax request, which when met with an unexpected result (not json) will show this error. Take a look in the browser devtools network tab to see what's being returned. Most likely it's some kind of php error or notice.

Share this post


Link to post
Share on other sites

Green just tells you that the request itself completed, but not if the returned content is valid. You have to click on the last entry there (the request for /processwire/page/list/) and look at the returned content. You'll likely find some kind of error output in there that can give you a better clue at what's going wrong on the server side.

  • Like 1

Share this post


Link to post
Share on other sites

The interesting information is (or should be) in the Risposta tab on the right.

Share this post


Link to post
Share on other sites
3 minutes ago, Giulio_. said:

THANK YOU SO MUCH !!! solved :-)

How exactly did you solve it? I'd like to know why those other lines were there in the first place.

  • Like 2

Share this post


Link to post
Share on other sites
11 minutes ago, Giulio_. said:

Maybe a wrong copy/paste. Without those lines it works perfectly!

But what file were those line in?

  • Like 1

Share this post


Link to post
Share on other sites

I also had the "Unknown error, please try again later" problem, when trying to access the pagelist. For me, it came in combination with the "Warning: touch(): Utime failed: Operation not permitted in /var/www/html/wire/core/FileCompiler.php" error on practically all pages in the admin area.

Both problems could be solved with deleting the /site/assets/cache/FileCompiler/ folder. An explination could be this: https://processwire.com/talk/topic/14825-error-on-new-server-warning-touch-utime-failed/?do=findComment&comment=133045

Share this post


Link to post
Share on other sites

I have the same problem here, only on prod site. On my local machine, I have no problem. I deleted the cache folder entirely, made PW up to date, even with the DEV version, removed ProCache, but to no avail.

I get this network error : Unknow problem, please try later.  The console tells me this:

?id=1&render=JSON&start=0&lang=0&open=undefined&mode=actions 404 xhr JqueryCore.js?v=1507602825:2 9.1 KB 284 ms

And I repeat, the local installation which is exactly the same has not this problem.

Share this post


Link to post
Share on other sites

This seems to be a different problem as you get a 404 http status code instead of 200. Does the cited line contain the whole path (there should be something in front of "?id=1...")? Does the body of the xhr call contain some more information? Does the web server log show any PHP error messages? Is $config->debug enabled in site/config.php?

Share this post


Link to post
Share on other sites

Hi BiyPoet, this is the same problem as I can't see the Page tree. This happens when I log into the site... The official call is then 

http://www.guyverville.com/pw/page/?login=1&id=1

http://www.guyverville.com/pw/page/list/?id=1&render=JSON&start=0&lang=0&open=undefined&mode=actions

for which I receive: Failed to load resource: the server responded with a status of 404 (Not Found)

Here what I receive in the console

image.thumb.png.1bc8f2f0517a87e164d8ea54152b97ce.png

No Ajax call seems to be allowed, on every page. For example, I cannot see the logs... or refresh the module page. Nothing works while, the same installation works in local...

image.png.fcb789eba39ceaacba5b244c86109d4a.png

Share this post


Link to post
Share on other sites

Hello,

I am not sure what you are talking about. I have done nothing special except trying to create a new page, and suddenly, this problem. I think the DB is corrupted some way.

Share this post


Link to post
Share on other sites

A database corruption is highly unlikely. I noticed that even the request to your login page returns a 404 status code while still delivering the login form. In fact, any request to a page in a path below / returns a 404 status code, which is wrong. My bet is also a broken rewrite rule. I'm not familiar enough with LiteSpeed to venture a guess at where exactly to look, though.

  • Like 1

Share this post


Link to post
Share on other sites

It is so mysterious. When I am logged, I notice that the session is not preserved. For example, if I click on a module settings, I'm just returned to the module page with this message : No module specified...

image.png

Share this post


Link to post
Share on other sites

This is very strange and timely @Guy Verville - I just upgraded to High Sierra and my homebrew AMP stack broke. After getting everything working again, I was also getting a 404 for the admin page. Turns out I didn't have the mod_rewrite apache module loaded. Not sure if that's what is going on for you, but definitely something to check.

Share this post


Link to post
Share on other sites

Thank you Adrian,

The problem resides on my prod site, hosted by Greengeeks. I have changed nothing there. Perhaps they? I use MAMP Pro on local and everything is fine. 

 

Share this post


Link to post
Share on other sites

I found the culprit.

I commented out the RewriteBase / line in my htaccess...

  # -----------------------------------------------------------------------------------------------
  # 11. OPTIONAL: Set a rewrite base if rewrites aren't working properly on your server.
  # And if your site directory starts with a "~" you will most likely have to use this.
  # -----------------------------------------------------------------------------------------------

   RewriteBase /
 

  • Like 2

Share this post


Link to post
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


  • Recently Browsing   0 members

    No registered users viewing this page.