I've set up a Drupal 7 site locally and have ftp'd the site over to my ISP's server which is a linux box running PHP and MySQL.
I've never successfully logged into the site before and I have locked myself out. When I go http://www.example.com/?q=user and click on request New Password then I get this error:
Not Found
The requested URL /user/password was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
One thing I've been confused about and that is the .htaccess file. I never had one locally on my Mac and I did not need it (I know it is hidden) - so I downloaded one and deployed it to the web site but then I got 500 errors, it made it worse. I've since deleted that file and at least I get some content - but not very much - just the front page. I overrode the themes name in settings.php as I have user access errors there. I changed it back to one of the default themes and that allowed me to get some content and not the 'white screen of death'
Advice welcome!
Related
Im have a opencart 2.3 installed with a custom theme along with a custom module that shows a product slider. The problem is that i setuped the site on my localhost and everything seem to be working perfect.
But when i uploaded it to my VPS the home page gives an internal server error when i add the module the to the home page. When i remove it, the page loads fine. This happens only on my VPS. When i uploaded it to a differnt host and my localhost everything works fine.
The main problem is that i cannot find the actual error which is causing the problem because the apache error logs doesnt log any php related errors.
so far,
i removed the htaccess
enable error reporting through htaccess
removed extra php.ini file which might be conflicting
added the error reporting code on the index.php file
checked the opencart error logs
none of these seem to work. It shows the internal server error instead of the actual error. For almost 2 weeks i have been struggling and tried almost all the methods in SO but none seems to be working in my case
Can someone let me know how can i get it show the actual error or log it instead of the internal server error?
I have a wordpress app based on PHP7 catridge on Openshift. I added two alias to the app(e.g, www.xyz.com & xyz.com) and I also updated the CName in my Zone file. When I enter www.xyz.com, it redirects me to www.xyz.com/app and throws a 404 NOT FOUND error (nginx/1.11.6).
But I can access the administration page without any problem (www.xyz.com/wp-admin)
Can anyone please help?
Enter the www.domain.abc first. Use CloudFlare to configure your domain. Make things pretty easy.
After this you will get the pretty permalinks error related to ngnix.
I am too getting the same error. I can access the home page and most of the things. This error only arises when I decide to use Pretty Permalinks in WordPress.
Till now I have figured it out that we have to edit the ngnix file. But there are several files out there.
Has made me even more confused.
This may not be the solution but you can access post and other stuff in plain permalinks.
Sorry, this is question don't have a code snippet but a situation. I've a Laravel application which was running fine on my localhost and server. Today I made some updates to the controllers and some views. The changes was working fine in the localhost. So I uploaded the files to the server. But when I tried to login in the server, I could see the home page, login pages and all. But getting a white blank page after login.
When I manually try to navigate to other pages in the logged in section, it redirects to the dashboard and blank page comes. Everything is working fine in the localhost. I didn't make any updates to the server configuration. Everything was as before.
OS: CentOS 6.6 (Final)
PHP version: 5.6
Laravel 4.2
Server version: Apache/2.2.15 (Unix)
I checked several answers from other similar questions such as this one and this one. But they all had some updating situation. But in my case not so.
What would be the problem? If you need any additional information, just let me know.
I can give some more information:
When I access a course page (which I need to login to see), it shows a 302 Found status code in the Network tab and then redirects to the Login page where it again shows a 302 Found status code and then to the dashboard with a 200 ok code. Session is being created. Thats' why it's redirecting back to the dashboard page. But the page is still empty.
A blank white screen usually means either
Your'e rendering a template with no content
A fatal PHP occurred before Laravel could completely bootstrap itself
The "right" thing to do here is to check your web server error logs, or your PHP error logs. I'm going to guess you don't know where those are or if they're setup properly. If that's the case you'll want to temporarily change PHP's display_error ini setting. In Laravel 4.2 I'd do this by setting the ini in the following file
#File: boostrap/start.php
<?php
ini_set('display_errors','1');
//... rest of file
This should result in the error being displayed on the screen, and from there you can debug further.
This might be something easy, but it drives me crazy right now.
Joomla 1.5.26 -> site was running until this morning. Now I get an Internal Server Error 500 for the frontpage(html source shows nothing), backend(admin panel) works just fine.
A single editor has worked on some articles, nothing suspicious to me there.
What I have tried so far:
Unpublished all recently created articles
Unpublished modules with dynamic content (calendar, news feeds, recent photos)
reset .htaccess to the original state
reset permissions (all directories 775, all files 644)
enabled all PHP error reporting in configuration.php ( ini_set( 'display_errors', true ); error_reporting( E_ALL ); ) - no error, just a few warinings "PHP Deprecated: Function split()", but I can even get rid of those warings by unpublishing one plugin, after which page is still blank
backend still works
index.php exists and contains the original code, template exists and is assigned
database works, no waiting processes
deleted cache in browser as well as the Joomla cache in the backend
As I have only FTP access to the server, I cannot access any apache logfiles, except the PHP error log. What other options are there to track down such an issue? My hosting company tells me the webserver is working fine, they also told me that they have restarted the server with no changes in site behaviour.
This usually happens when your host upgrades PHP and/or MySQL on the server hosting your website.
Check this post: http://www.itoctopus.com/are-you-suddenly-seeing-an-error-on-every-page-of-your-joomla-website . Your problem is most likely 2.2 (point #2, subpoint #2).
I'm pretty sure that the Apache error logs will reveal something.
I'm having issues with my Joomla installation.
It's a rather vanilla J! 2.5 (latest version) installation with K2 (I don't think it is related to my problem).
The problem is that any URL I make up (such as http://www.mysite.com/No-Such-URL-At-All) gives me the following error:
Error
Article not found
You are not authorised to view this resource.
I created an error.php file that should handle it in the template, but it is not used at all by Joomla, as I don't think it is really handled as error but as a permission redirection :\
So I tried adding this code to my template:
Code:
if (($this->error->code) == '404') {
header('Location: /404.html');
exit;
But no error was detected and the code was also ignored.
I inspected the response headers from the server, but I actually get a response 200, OK response :.
Some additional data that could be usefull
- It's hosted on a godaddy dedicated centos server
- SEF is enabled (problem continues also when disabled)
Let me know if any other information could help...
I really have no other direction I can think of, maybe someone has any idea why any 404 is turned into a permission redirection?
Check to see if when you have a 404 if Joomla is hitting the "com_content" component ( check the $_REQUEST variable). I had this problem and it turned out that it wasn't, it was hitting one of my custom components. If this is the case, here is what you need to do to fix it. For this example, lets say that its hitting 'com_home' instead of 'com_content'.
1). Copy components/com_content/router.php into components/com_home
2). Open components/com_home/router.php and replace all instances of "Content" with "home"
3). Open components/com_home/home.php and add the following lines near the top of the file:
JHtml::_('behavior.tabstate');
require_once JPATH_COMPONENT.'/helpers/route.php';
4). Copy the entire components/com_content/helpers into components/com_home
When that's done, the url mysite.com/does-not-exist should redirect to the error.php page you've set up in your template.