Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I get a 500 Internal Server error if I try to register a new user. This user will be created successfully, but I don't want that my users will see the error page and, therefore, think that something went wrong.

My WordPress is hosted in a subdirectory of my institutions web page (e.g., www.page.com/path/WordPress). The installation itself is in the /var/www directory on an Ubuntu in a VirtualBox image.

It seems that 500 Internal Server errors are quite common, but I didn't found a working solution for me in the web. Most discussions recommend to do one of the following things:

  • Disable all plugins
  • Change to default theme
  • Checked Apache2 log
  • Checked PHP log

I tried them all, bot none works for me. Has somebody an additional recommendation?

share|improve this question
    
Try turning on printing errors to the frontend via WP_DEBUG and changing the log level –  Tom J Nowell Feb 26 '13 at 14:15
    
also check with htaccess removed –  Tom J Nowell Feb 26 '13 at 14:16
add comment

1 Answer

Internal Server errors are usually thrown when there's an error somewhere in the code. You did the right thing searching the logs, but depending on your hosting configuration not all errors can be written there.

I like using WordPress's own logging facility. Here's what you need to do:

Stick the following lines in your wp-config.php file

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

Next time you get an Internal Server error, check your wp-content folder. You should have a file called debug.log that lists all the errors and warnings that your server has thrown. The last line usually tells you what the problem was (unless someone else has hit your site in the meantime)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.