Any ideas on a possible cause for this error? I tested the upgrade on my own site first, which worked like a charm. The second site I upgraded (other provider) is stuck with a 500 internal server error.

Comments

pgteekensnl’s picture

And by the way: the -/update.php routine still responds, displaying the administration page afterwards. Navigating away from this page results in a 500 error.

tsssystems’s picture

Got same error on D6 site. After putting site into maintenance mode via the web, decided to use drush to do both the ctools and core updates. Problem was I was logged in as root and not as the site owner, so all the file ownership was wrong, and that's what caused the 500 error. Chown'd everything back to normal, and now site is working fine.

Markus64289’s picture

Hi,
I`ve updated my core 7.38 to 7.39. After this I can´t edit any content, because of a Error 500 ["Failed to load resource: the server responded with a status of 500 (Internal Server Error)"]. I din´t change the permissions of any files (all files are 640, all folders are on 755, /sites is on 777). .htaccess, web.config, .gitignore are equal to the older one.

Does anybody knows a solution?

Jaypan’s picture

Look in your Drupal, PHP and Apache error logs (in that order) to find more information.

Markus64289’s picture

Hi,
I activated the module "Database logging" at /admin/modules to switch on the error reporting. And I configure that module at /admin/config/development/logging to "display all messages". But there are no relevant messages for error 500. I´ve got this message only by using that browser developer-tools on clicking "Console". THEN I put that code at the top of my settings.php (directly under the "<?php":

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

And there I get the error-log: Fatal error: Call to undefined function media_browser_js() in [...]/htdocs/sites/all/modules/ckeditor/includes/ckeditor.lib.inc on line 893.
After a little search in www, it was clear, that the newest module media doesn´t work well with ckeditor (https://www.drupal.org/node/2533084). Both I´m using. So I downgraded media to version 7.x-1.38.

Now everything works as it should.

I hope, i´ll help you with this explanation. :)

Markus64289

bikoa’s picture

Bingo!

Downgraded Media module from "7.x-2.0-beta1" to "7.x-2.0-alpha4" and everything works fine again!

Thanks! Thanks! Thanks! Thanks! Thanks! Thanks!
Everybody!

shyman159’s picture

marked,Thanks for this post,i have got an 500 error too.

bikoa’s picture

Hi!

Same error after upgrade from 7.37 to 7.39.
I cannot edit any node on the web.

Administration options and Web working normally.

I cannot see any relevant in the logs...

Any ideas? I need to add new content quickly!

Thanks!

Jaypan’s picture

There will be something in your logs. 500 errors always leave a log.

bikoa’s picture

I have Drupal site with all errors and warnings activated.

And added the following line on index.php:

error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);

But any error on logs...

Jaypan’s picture

And what about your php and apache logs?

bikoa’s picture

I contacted with my host administrators but they say that there are not any errors...

Jaypan’s picture

Did you ask them why you are getting a 500 error? Any decent host will be able to tell you.

narendraR’s picture

Replace your .htaccess file with old .htaccess file and check for any difference.

Let's Drupal

bikoa’s picture

No difference...

aev_fly’s picture

if I try to change something in views I've got an ajax error

"An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/structure/views/ajax/add-item/taxonomy_term/page_2/sort
StatusText: Internal Server Error
ResponseText:
500 Internal Server Error
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request."

but this happens only in multi domain site,
only main domain is everything ok, I think it's Major changes since 7.38 - wrote here https://www.drupal.org/drupal-7.39-release-notes

milkmanhoth’s picture

Jump to MY SOLUTION to skip my backstory.

I've been trying to upgrade from 7.32 to 7.39, and have been getting the following error when navigating to any page other than the homepage, or update.php:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Apache Server at [website] Port 80

i checked the error logs in my server root, error log folder, and it showed the same error over and over again:

[error] [client (ip address)] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: (my website)

after searching for THAT error above, i found:

https://www.drupal.org/node/378524

*I finally found a solution to my problem. hopefully by posting this solution from the above link here, will help others in need.

MY SOLUTION:
In the .htaccess file, uncomment the # RewriteBase / row (line 110 for me). In my case, both of those rewrites were originally commented out.

this is my .htaccess file while getting errors:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

this is my .htaccess file with no more errors

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
   RewriteBase /

I'm not exactly sure why it worked, but I'm just here to report that, in my case, this worked.

Good luck.

neta.alon’s picture

Error Specification (Compare yours with mine)
Updated from 7.37 to 7.39, update went smoothly but site immediately showed "500 Internal Server Error".

  • I've noticed that the error page was black text on white background, very basic looking so I assumed the error was in Apache and not Drupal (whose error messages clearly show Drupal).
  • I couldn't get to any page at all on the domain, they all showed the error.

Tracking Down Apache Logs
If your error is similar to mine it is most likely an Apache error. Try finding the Apache error logs.

  • If you have cPanel - log in and look for "Errors" under "Metrics". This page shows the last 300 error messages (of some log). I saw the error here.
  • Assuming you have Linux (if not, sorry guys), Apache access logs can be found either in /var/log (default log location) or in the location set in the Apache config file. If you can't find the config file, try using the following commands (as root) - locate access.log or locate access_log

Hope you managed to find the logs.

Fixing the error (I had)
Here is a copy & paste of the error I had from the log:
[Mon Oct 26 08:27:48.509636 2015] [:error] [pid 29679] [client **My_IP**] SoftException in Application.cpp:256: File "/home/**My_Username**/public_html/index.php" is writeable by group

The solution is easy. All you need to do is change the permissions on the file to 755.
Go with the terminal to the location of index.php, in my case: cd /home/**My_Username**/public_html/.
Once there, enter following command: chmod 755 index.php, if the owner is root (should not be the case) then maybe you can't change it so try sudo chmod 755 index.php

Hope I helped! Good luck guys.

aloknarwaria’s picture

I try below code it works for me inside the file "rules.module"

CODE:

// Include our hook implementations early, as they can be called even before
// hook_init().
// require_once dirname(__FILE__) . '/modules/events.inc';

/**
* Implements hook_init().
*/
function rules_init() {
require_once dirname(__FILE__) . '/modules/events.inc';
rules_invoke_event('init');

}

chipway’s picture

In some case, you may have to change .htaccess:
sed -i 's/Options +FollowSymLinks/Options +SymLinksIfOwnerMatch/' /path/to/website/.htaccess

Drupal Consultancy, Development & Training, Lyon, Paris, France, Suisse. https://chipway.com.

riopiedra’s picture

In Ubuntu  i just changed the owner of the /var/www directory to the user www-data, and everything came back to normal:

sudo   chown   -R   www-data:www-data    /var/www