2xbass Posted July 12, 2023 Share Posted July 12, 2023 Hi there! I'm a bit stumped by a ProcessWire site which has suddenly, apparently without any changes to the site or the environment, stopped working. What's happening is that although the root site is working, all links to other paths, including the admin URL, are all resulting in 404 errors. As far as I know, nothing has changed at all. I'm an experienced PHP developer but know very little about ProcessWire. As far as I can see, the errors are coming from inside ProcessWire. There's nothing in the Apache or ProcessWire logs that I could see and I even enabled $config->debug in site/config.php. If I create an index.html in a directory that is a sibling of the site directory, it is served up fine by Apache. Thanks for any pointers anyone can provide to help me debug this or get the the site working again. Link to comment Share on other sites More sharing options...
teppo Posted July 12, 2023 Share Posted July 12, 2023 The symptoms make it sound like your .htaccess file is somehow erroneous or Apache is not using/processing rules from it correctly. I would start debugging from there. You could, for an example, try to access one of the files that are normally protected by .htaccess rules, just to see if those rules are working as expected. (Root URL working properly is a typical sign of this as well: PHP is working and requests for the index.php file are apparently being processed, but .htaccess rules are not passing requests for non-root paths to it.) 1 Link to comment Share on other sites More sharing options...
da² Posted July 13, 2023 Share Posted July 13, 2023 5 hours ago, 2xbass said: I'm a bit stumped by a ProcessWire site which has suddenly, apparently without any changes to the site or the environment, stopped working. Is it possible that your provider changed the network configuration? It happened to me few months ago, provider migrated my server to another server rack and then I wasn't able to reach external URLs, a single file_get_contents() to a remote URL wasn't working anymore. Reason was: new network config used IPv6 but it wasn't available. Dunno if your symptoms are compatible with this scenario, but something must have been modified. ? Link to comment Share on other sites More sharing options...
bernhard Posted July 13, 2023 Share Posted July 13, 2023 If teppo's suggestion doesnt work it might also help if you create a new vhost at the same provider and then upload and install a fresh copy of processwire there. During installation you'll get some system checks and they might have some helpful warnings that might be the same for your other system as well. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now