Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By pgteekensnl on
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
Addition
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.
Same error immediately after update
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.
error 500
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?
Look in your Drupal, PHP and
Look in your Drupal, PHP and Apache error logs (in that order) to find more information.
no relevant logs
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":
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
RESOLVED
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!
marked,Thanks for this post,i
marked,Thanks for this post,i have got an 500 error too.
Same error after upgrade from 7.37 to 7.39
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!
There will be something in
There will be something in your logs. 500 errors always leave a log.
I have Drupal site with all
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...
And what about your php and
And what about your php and apache logs?
I contacted with my host
I contacted with my host administrators but they say that there are not any errors...
Did you ask them why you are
Did you ask them why you are getting a 500 error? Any decent host will be able to tell you.
Replace your .htaccess file
Replace your .htaccess file with old .htaccess file and check for any difference.
Let's Drupal
No difference...
No difference...
have similar error
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
My internal server error solved
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:
this is my .htaccess file with no more errors
I'm not exactly sure why it worked, but I'm just here to report that, in my case, this worked.
Good luck.
How I Fixed It
Error Specification (Compare yours with mine)
Updated from 7.37 to 7.39, update went smoothly but site immediately showed "500 Internal Server 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.
locate access.log
orlocate 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 trysudo chmod 755 index.php
Hope I helped! Good luck guys.
Resolve error 500 Internal Server error after upgrade to 7.39
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');
}
In some case, you may have to
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.
sudo chown -R www-data:www-data /var/www
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