I'm having some trouble with a drupal page. The website is loading and nothing is out of the ordinarty. But when you load the page with Google Chrome development shizzle (when you press F12) and put it on Network and then reload the page, you see that the first thing that happens is receive an 404 error.
It's not that big of a deal but our monitoring system says the website is offline because of this.
Does anyone knows what is going on? I have absolutely no idea why this is happening.
I'm running into this exact problem with a D7 site on a new server that has PHP 5.5.9 installed - the page loads but the HTTP header says "HTTP/1.1 404 Not Found" for all pages but the homepage. If I work out a solution I'll post it here.
Update: It turned out my problem was that mod_rewrite was not enabled, once I enabled it the site started working correctly.
Drupal allows customizing 404-403 error pages. Probably, your site (by some reason) displays content on 403/404 pages.
At first, clear cache (using web ui or drush).
This can be 1-page issue (check /user/login, admin pages, node pages). Maybe, only your front page is not found.
If this is not 1-page issue, check and disable customerror module (if you has one installed).
Related
I have wordpress multisite set up on Server 2012/IIS 8 using subdirectories rather than subdomains for each site.
I have set up 6 sites but 4 of them give 404 when I attempt to bring up the dashboard (/wp-admin/) or visit the site
I thought maybe some of the sites had somehow gotten corrupted so I created a new site but it gives a 404 as well.
I cannot see any obvious difference between the sites that work and those that don't.
The only clue I have is that the 404 requests don't even show up in the IIS log.
I have discovered what is going wrong but not why. The sites run on an internal url http:localhost:8100. On the newly created site when I go to edit page it was showing http://localhost/. This is why it was not showing up in the IIS logs.
Unfortunately, If I try to change it, it just reverts. The working sites all show http://localhost:8100/ If I change siteurl and home under settings for the non-working site they also just revert back. So I've discovered the 404 problem but don't yet have a solution
So I've just moved a Wordpress site to a new hosting provider, and the strangest thing is happening..
I have a contact form (the same contact form) at the bottom of each page on the site, each page loads fine, except for the home page. If I try and load the home page, I get a 403 Permission denied error. If i disabled the plugin, or remove the form from that page, it loads fine.
I suspect it might be a permissions issue but I have no idea where to even start looking. Everything else on the site works fine.
It's Gravity Forms btw.
Also, I know this might not be the right place to ask but I'm at my wits end here trying to work this out.
So after going through some logs etc i discovered it was php mod_security that was triggering on a false positive on an iframe that gravity forms was producing. Still not sure why it was only happening on the home page though.
I contacted the hosting provider and asked them why it was happening and they just advised they'd turn it off. Which they did and it's working fine now. If anyone wants to add anything to this please do.
Check your wordpress options table. Your old site link is still there, as it seems. Replace it with new one.
i have a really weird problem on a typo3 site.
The site currently runs on Typo3 4.6.6 (yeah i know we are in the process of upgrading it to 6.2 LTS)
In the backend we have 3 separate pages. The webspace where this site runs was currently upgraded to PHP 5.5. Nothing else has changed (as far as we know)
The problem is that on certain pages we get redirected to a https version of the same page, although the link is a http link.
See for instance here: http://www.phd-cell-signaling.at/home.html
If you open this it loads fine. But as soon as you click on a (http) link on the site, you get redirected to an https version hence the browser doesn't load all the stuff included via http (stylesheets for instance). But when you then delete the "s" from the address bar and hit enter you don't get redirected. And this is something i don't really understand.
And if that'd be a general issue shouldn't the other pages in the same typo3 environment also be affected? Or am i missing something here.
Since I'm not that familiar with typo3 it would be greatly appreciated if somebody could link me in the right direction where the problem could be.
We use realURL for example. But I checked the configuration i found and it doesn't appear to do anything that causes the redirect.
I also checked the typoscript configuration of all the pages in the backend with no success.
Are there any other plugins that might cause something like this?
Any help greatly appreciated.
When you follow a link on the page you posted, then the webserver returns the statuscode 301 (moved permanently) with the new location for that page (which is the requested page with the HTTPS scheme).
When TYPO3 is properly configured for SSL usage for single pages (so a backend user can use "Choose protocol" selectbox in the backend), then it already renders affected links with the proper scheme.
Your problem described can have multiple reasons. Please check the following:
Inspect the .htaccess file in the root directory of the TYPO3 website for any scheme redirects
Check if the webserver itself has configured scheme redirects for that virtual host
Goto the TYPO3 extension manager and search for local installed HTTPS or SSL redirection extensions
I am hosting a site locally via MAMP, but somehow while editing sidebar (tried to edit widgets), site went blank and it cannot give me access to wordpress admin panel. It shows up 500 error and blank page.
Site has multiple themes assigned to different pages, so when I try to access homepage (arcade basic theme) it works fine. But when I try to access Shop (mystile theme), it shows blank page and 500 error.
The 500 error is also received when I try to access admin panel via wordpress dashboard (on my homepage).
what can I do?
Just in case you didn't know, 500 errors mean there's a server misconfiguration somewhere.
This could easily be down to an error in coding, which clearly this sounds like.
You would be helped greatly by looking in your apache error logs (usually in your log folders), this should tell you what caused the error - or you could also try turning PHP error display on, which may display the same information but on the screen.
Once you find out where abouts in the code the error is being generated, update your answer, along with an excerpt of that area of the code, and others may be able to help you better.
Another suggestion would be to try using an IDE software application to write your code, as this will flag up any errors as you type them. Personally, I use NetBeans.
I am developing a website in php.
when a user types a page which is not in my site, i want users to redirect to a page with an error message.
how can i identify such things and how can i do this??
Thanks.
If you're using Apache web server, you get this functionality for free. No need to implement it yourself. If the web server cannot find an resource it sends the client an HTTP 404 error (not found). Actually, pretty much any web server that correctly implements HTTP (1.0 or 1.1) will behave this way. Additionally, in Apache, you can customize the 404 page.
If you're using Apache, here's instructions:
http://www.thesitewizard.com/archive/custom404.shtml
This is not really a php feature, but more of a feature of your web server. In IIS you can configure the error page to go to a custom url. In apache i think you can usr mod_rewrite to achieve the same thing
Other than what others said this might be of some help too "Custom 404 Error" if you are using Apache.
If some script is launched on all of your pages (it can me unit, which is always included) you can make a check there. You should write there all of your available pages and if the required page is not in the list - you can show person, that he/she was wrong.
Sometimes the list of pages is jept in database. Most CMS-systems are based on that.