Ошибка 500 drupal

Аватар пользователя liveb


13 августа 2013 в 20:20


Доброго времени суток! Спустя несколько дней после установки Drupal и несольких модулей, я вдруг получил ошибку 500 Internal Server Error. Ни в какие php скрипты не залезал, ничего кроме модулей не устанавливал. Хочу отметить, что облазил весь интернет на руссском и английском. Спрашивал у хостинг-провайдера, выяснилось, что ошибка в файле .htaccess (точно), но решить ее не могут. Вот логи ошибки, если помогут (error_log): PHP Fatal error: Call to undefined function menu_load() in …/public_html/includes/menu.inc on line 579(593) ; Прошу Вашей помощи, Друзья! Спасибо!

  • Drupal7
  • Есть вопрос
  • Решение проблем

Is your Drupal site showing “500 Internal Server Error” all of a sudden?

In our role as Support Engineers for web hosts, this is a common error we see in Drual websites.

Drupal 500 internal server error

We’ve seen this happen during:

  • Drupal core update,
  • Module or Theme update,
  • Website feature additions (code update),
  • PHP upgrade or reconfiguration,
  • Web server (eg. Apache) updates,
  • Website migration, or
  • New website setup

What is Drupal 500 internal server error?

500 Internal Server Error is a web server’s way of saying, “Something has gone wrong when I tried to display the page. Not sure what.

Almost always it means that there is a configuration error in either the web server settings, PHP settings or website settings.

Some of these errors are temporary (eg. due to resource limits), and might go away when you refresh the site.

But if it doesn’t, it might indeed be a server issue.

How to troubleshoot Drupal error 500

The standard way to troubleshoot error 500 is to analyze the web server log files.

An error log might look something like this:

[Thu Jul 19 11:01:33.126782 2018] [:error] [pid 31931] [client xx.xx.xx.xx] PHP Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 17120 bytes) in /var/www/drupal7/includes/module.inc on line 503

It won’t make much sense if you aren’t a developer.

So, let’s see what else can be done.

Troubleshooting using error display in Drupal

All web hosts supress PHP errors by default.

So, when there’s an Error 500, you’re not likely to see the reason on the site.

However, you can enable error reporting by adding these lines in index.php.

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

And when the page is refreshed, you may see an error such as this:

PHP Fatal error: require_once(): Failed opening required '/home/username/sitename/docroot/sites/all/modules/contrib/rules_dev_comments/includes/rules_dev_comments.plugin.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /home/username/sitename/docroot/includes/bootstrap.inc on line 3157

Again, that one can also be a bit difficult to understand if you aren’t a Drupal developer.

Drupal error 500 troubleshooting for humans

For those who do not want a PhD in Drupal, and wants this error fixed, we’ll list here the most common causes for this error, and how to fix them.

1. Misconfigured .htaccess

The number one reason we’ve seen for this error is incompatibility of .htaccess settings with the server environment.

Some hosting accounts will be set to single site environment, while others will be set to multi-site.

Some will allow directory listing and soft links, while others may not.

But Drupal packages and installation instructions assume a basic set of hosting settings to be present.

We’ve seen enabling or disabling these settings (differs from one server to another) can fix this error:

  • RewriteBase /
  • Options -Multiviews
  • Options +FollowSymLinks
  • Options -Indexes

Comment (by adding a #) or uncomment these settings one by one to see if it’ll clear the error.

If it is an error with .htaccess, that should fix it.

2. PHP configuration errors

The next big source of error is PHP config issues.

We’ve seen this range from un-installed PHP extensions & wrong PHP paths to incorrect PHP.ini & obsolete PHP handlers.

By default, Drupal requires these PHP extensions to function, but misconfigurations can prevent access to these libraries.

  • OpenSSL
  • Curl
  • GD
  • PDO
  • XML
  • JSON
  • Mbstring

In addition to these modules, PHP also requires certain PHP settings to be set right.

For eg. “allow_url_fopen”, “magic_quotes_gpc”, and “register_globals” needs to be set to “off”.

We’ve seen cases where this is either not set right, or the website uses an incorrect version of php.ini, that had the settings configured wrong.

To fix this, we use a two step method:

  • Verify PHP config path – We check if the PHP handler, PHP program file, and the PHP configuration file are all set correctly.
  • Verify PHP settings – We then look at the settings to make sure everything is as per Drupal’s requirement doc.

The list of individual specs are a bit too long for this article. However, if you need help fixing your site, click here to talk to our Drupal experts.

3. Resource limits

In VPS and Shared hosting servers, a big cause of errors is the memory limit.

Drupal core only requires 32 MB of memory to execute, and most hosting accounts provide a minimum of 128 MB or 256 MB of memory for Drupal processes.

However, when modules are added, the memory requirement of Drupal processes can exceed the allocated quota. The operating system will kill such processes, and the visitor gets a 500 error.

Here’s one way that we’ve seen to be working for many:

  • Login to your FTP account.
  • Download .htaccess file.
  • Add the line php_value memory_limit 512M in the file, and save
  • Re-upload the file.

If you are not sure how to do this, or if editing is disallowed in your account, our Prestashop experts can help you fix this. Click here to submit a support request. We are online 24/7.

4. File ownership or permission errors

Site migrations or new site setup can be hard.

A lot of settings need to be changed to make an app compatible to the new environment.

We’ve seen file and folder permissions set wrong in Drupal installations, causing the PHP execution to fail.

The right permissions for files is 644 and folders is 755.

If you see anywhere in the log files that the permissions (user, group, world) is not set right, these commands could help:

find /home/USERNAME/public_html -type d -exec chmod 755 {} ;
find /home/USERNAME/public_html -type f -exec chmod 644 {} ;

Replace /home/USERNAME/public_html with the path to your web directory.

You might also do this from an admin front-end (if you are provided with one).

Warning : Take a backup of your site before you execute any command.

If you are not sure how to reset the file and folder permissions, click here to request support. Our Drupal experts are online 24/7.

5. Errors in Drupal modules or themes

Not all modules are created equal.

Some have code errors, like a missing “;” or a wrong module path.

We’ve seen Drupal sites go down after an upgrade, or a code update, or a backup restore.

In such cases, you can disable the Drupal modules and themes one by one to find out which one caused the error.

A faster way is to analyze the log files and figure out the error’s origin. Here at Bobcares, that’s our favored method, and helps us resolve issues within minutes.

If you are in a hurry and need the issue resolved right now, click here to talk to our Drupal experts. We’re online 24/7.

6. Web server or FastCGI config issues

Many settings in webservers can conflict with each other.

For eg. since Apache 2.2, the config option “SymLinksIfOwnerMatch” is available that is more secure than the older “FollowSymLinks”.

We’ve seen sites where both these options are enabled in .htaccess, causing the site to fail.

This usually happens after a migration where the site owner tries to retain the old settings while adding the new ones.

Similarly, FastCGI has many limits such as Process Execution Time, Request Length, etc. which we’ve found to limit Drupal execution.

In such cases, there are no cookie-cutter solutions. We follow the log trail, find out what the conflicts are, and fix the offending setting.

7. Stale cache, security settings, and others

Temporary issues like resource bottlenecks or server load can cause Drupal error 500.

But the Drupal or server cache will store them for a while more even after the error has passed.

So, in many cases, we’ve solved the issue just by clearing the cache.

Similarly, we’ve seen this error displayed when a script execution is blocked by a firewall such as mod_security.

In such cases, we identify which exact security rule is being triggered and add an exemption for that site.

More causes for Drupal error 500

There can be way more reasons such as Database errors, Brute force attacks, etc. for this error to happen.

If none of the above could help you fix this error, you’ll need to get a Drupal expert to look into this issue.

Here at Bobcares, we resolve hundreds of these issues everyday in our role of Support Engineers for web hosts, and other online companies.

We should be able to fix this error for you fairly quickly. Click here to submit a support request. We’re online 24/7.

Conclusion

Drupal 500 internal server error is caused by resource limits, PHP misconfiguration, .htaccess errors, and more. Here we’ve gone through the top 7 reasons for this error and how our Support Engineers fix it for web hosting providers.

When using Drupal your browser returns the following error


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@******.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

An «Internal Server Error» is an error on the web server that you’re trying to access. That server is misconfigured in some way that is preventing it from responding properly to what you’re asking for.

An «Internal Server Error» often occurs due to:

  • Misconfigured Drupal core file or folder read and write permissions.
  • Misconfigured web server file or folder read and write permissions.
  • Corrupted file(s).

To fix this click on one of the below possible causes.

You are currently viewing How To Fix Drupal Internal Error 500?

Updated

  • 1. Download ASR Pro
  • 2. Run the program
  • 3. Click «Scan Now» to find and remove any viruses on your computer
  • Speed up your computer today with this simple download.

    Here are some simple methods that can help you fix the Drupal 500 Internal Error issue. Nonspecific staining is caused by ionic interaction between the main antibody or a secondary antibody with a molecular structure, which can lead to high background noise, so that the position of expression of the relevant protein in the tissue can no longer be tracked.

    < tr>

    Possible causes

    Solutions

    How do I fix 500 internal error?

    Primary antibody and second set of antibodies are compatible

    How can I fix 500 error in php?

    … do not make sure you are consuming a secondary antibody with a high level of resistance to primary antibodies (for example , primary antibodies can be high in rabbits, use secondary anti-rabbitantibodies).

    How do I troubleshoot IHC?

    First, find the problem with your immunohistochemical tone from the following options:Insufficient essential antibodies:Primary and secondary antibodies are incompatible:Fabrics benefit from:Cells are impermeable:Dewaxing is not enough:

    • Make sure the most important and secondary isotypes are compatible.

    • Make sure you are consuming secondary antibodies derived from primary antibodies.
    • Ensure that these specific elemental and secondary isotypes can be compatible. Enough
    No antibodies are bound to the actual protein
    • Add more high concentration primary antibodies
    • Incubate sample with antibody longer (eg, overnight) at 4 ° C.
    Antibody. This may not always be appropriate for IHC procedures that allow you to locate the protein in its native state
    • Check the antibody data to ensure that our antibodies to the type of IHC you are using have been confirmed ( e.g. formalin / PFA binding, deep freezing, etc.).
    • Test the antibody that appears in the native (undenatured) Western blot to make sure it is not damaged.
    Antibodies or amplification devices may have lost their activity due to improper storage and handling I.
    • Read the instructions for storing your products in the data sheet.
    • li>
    • Avoid excessive swallowing / thawing.
    • Execute positive control
    The protein of interest is not present in your current tissue
    • Enter positive control.
    • Consult the surgical literature to see if the protein is only present in a tissue type.
    Recently, the protein of interest has a low frequency
    • Use signal gain to increase the signal, for example, biotin conjugated to another antibody. Fluorophore
    which (when using fluorescence detection) could be damaged by too light exposure
    • Always store fluorophore-conjugated secondary antibodies in the dark; too much light can eventually lead to photobleaching.
    Dewaxing may be absent (if the fabricembedded in paraffin)
    • Dewax the sections much longer and use fresh xylene.
    The method of fixation (when using formalin-paraformaldehyde fixatives) may affect epitope protection
    • Use various antigen recovery methods that unmask the epitope (eg thermal mediation with buffers at pH 6 or 9, enzymatic, etc.).
    • Repair partitions in less time.
    The antibody could not enter the cell nucleus (if the target protein is also a nuclear protein)
    • Add a strong permeability such as Triton X to the blocking screen and antibody dilution buffer. See our feed on permeation methods.
    permeability damages cell filters (if the target protein is a protein membrane layer)
      < li> Use a less aggressive cleaning agent (eg Tween 5 instead of Triton X). Or simply remove the permeation stabilizer from the swabs. See Our Protocol for Permeation Methods.
    The tampon may be contaminated with bacta By side
    • Add 0.01% azide to help buffer for antibody storage.
    • Use a fresh sterile swab (eg most sterile PBS ).

    Updated

    Are you tired of your computer running slow? Annoyed by frustrating error messages? ASR Pro is the solution for you! Our recommended tool will quickly diagnose and repair Windows issues while dramatically increasing system performance. So don’t wait any longer, download ASR Pro today!

    Follow our immunohistochemistry troubleshooting guide to quickly determine the potential cause of a problem with your protocol and view solutions.

    drupal 500 internal error

    First, identify the problem with your amazing immunohistochemical staining using options or below:

    Low without coloring
    • Use a higher concentration of antibodies.
    • Incubate longer
    • Additional antibodies must be generated against your current primary antibody host. To illustrate, if the primary antibody is mouse anti-HSP70, use a secondary anti-mouse antibody (such as goat anti-mouse antibody)
    • Isotypes must also be compatible.
    • Samples must be covered with liquid during staining.
    • Methanol and acetone st increase cell permeability, fixing
    • When using formaldehyde to increase cell permeability, use 0.2% Triton X-100.
    • Longer dewaxing sections
    • Always use the latest xylene.
    • Confirm that the IHC antibodies have been validated, or rather, what type – formalin, paraffin-embedded, fresh frozen, etc.
    • Test the antibody with excellent Western blotting to make sure it hasn’t affected information technology.
    • Shorten the duration at the same time as commit.
    • Use various antigen recovery techniques to uncover the epitope.
    • Increase the incubation time of most primary antibodies with the sample.
    • Samples should be vividly illustrated shortly after processing as display quality degrades over time. If necessary, store slides in the dark at 4 ° C.
    • Freeze / thaw cycles are harmful and can lead to quality degradation. It is best to create the smallestNo quantities from aliquots as soon as you receive the product.
    • Antibody was not stored optimally. Unfortunately, this may require the use of a beginner vial.
    • If the abutment is not stored in the dark (if using immunofluorescence alone), a new vial should be used.
    • Conduct Positive Control
    • When the most important protein is present but not abundant, use the amplification step to maximize the overall signal.
    High background
    • Longer dewaxing sections
    • Always use semi-smoked xylene.
    • When using the HRP detection system, also endogenous peroxidase activity with 3% H 2 O 2 before performing the staining process
    • If the biotin detection system is used in samples with elevated endogenous biotin concentrations (e.g. kidney, liver organ, spleen), perform biotin blocking when incubating avidin samples, with and after a regular blocking step with biotin set and thus removed first No incubation of antibodies
    • Further dilution of the primary and / or secondary antibody.
    • Test for secondary antibodies without using primary antibodies. If staining is present, replace the secondary antibody or consider a conjugated primary antibody instead.
    • Extend the difficult incubation period and consider changing the limiting agent.
    • Reduce the incubation time for amplification and further dilute all secondary antibodies.
    • It is very important to thoroughly wash the areas between the steps. Make sure you are likely to follow the following protocol instructions for the wash steps
    • Consider using thinner fabrics as the flesh stain under the focal plane will remove unnecessary background stains.
    Non-specific staining
    • Try to reduce the specific concentration and incubation time.

    drupal 500 internal error

    Primary tissue is usually worn out in the same way that this tissue is dyed (for example, a mouse in a mouse):

    • Try Use a main product bred against another specific species. If not, try blocking some of the endogenous IgG with the above serum as a byproduct. You can even try incubating the sections with 1% newt to cleanse the tissue. Or use TBS-Tween 20 as wash buffer instead of PBS-Tween 20.

    How do I fix Drupal errors?

    Speed up your computer today with this simple download.

    What causes background staining in immunohistochemistry?

    Background staining is thought to be the incredible result of the uptake of nonspecific antibodies (Ab) by endogenous Fc receptors (FcR) or a novel combination of ionic and hydrophobic interactions.

    Błąd Wewnętrzny Drupala 500
    Drupal 500 Internt Fel
    Erreur Interne Drupal 500
    Drupal 500 Interne Fout
    Drupal 500 Interner Fehler
    Внутренняя ошибка Drupal 500
    Errore Interno Drupal 500
    Error Interno De Drupal 500
    Erro Interno Do Drupal 500
    Drupal 500 내부 오류

    Richard Frost

    Tags: ajax, api, drupal core, drupal org, drupal site, fix, htaccess, htaccess file, joomla drupal, module, php, response, rest api, status code 500, windows server, wordpress

    After using drush up on my drupal installation to update from drupal version 7.34 to drupal 7.35, I get Internal Server Error 500.

    I have moved away .htaccess file and move it back without any result.

    I have uploaded /overwritten the files with the ones downloaded for 7.35 without any result.

    I have deleted everything from my server except for sites/* and themes/* and re-uploaded without any result.

    I am running out of ideas. Please help!

    P.S. Other websites on the same server still work properly so the server itself is not causing the issue.

    P.P.S. I have also updated Ctools — From Chaos tools 7.x-1.6 to 7.x-1.7 in the same time.

    asked Mar 19, 2015 at 20:35

    Angelin Calu's user avatar

    Angelin CaluAngelin Calu

    1,8958 gold badges24 silver badges44 bronze badges

    In my case was not a .htaccess file error. Drush makes also backups when updating, and after the error I have copied back all the old overwritten files and I still got the error.

    Drush messes some file write permissions so, the problem was actually fixed by changing the permissions for index.php from 664 to 644. (Grup write permission has to be off and for some reason drush changes that when updating).

    answered Mar 21, 2015 at 13:04

    Angelin Calu's user avatar

    Angelin CaluAngelin Calu

    1,8958 gold badges24 silver badges44 bronze badges

    This just happened to me as well, and it turns out it was a file/folder ownership problem, which drush does not account for. I ran ‘drush up drupal’ with the root user; however, the server was set up to need the specific user for that directory set to the owner. Running drush up with the root user had changed some key files/folders ownerships.

    In my case, all owner/groups had been set to ‘root’, which caused the 500 error. In filezilla you can see the owner/group of each file/folder in the far right column. If these are set to root, you need to change them back to the correct owner — I used ssh and did the following command on the drupal root folder for the site:

    chown -R CORRECTUSER:CORRECTUSER DRUPALROOTFOLDER
    

    Not sure if this is your issue, but hopefully it helps someone.

    answered Apr 1, 2015 at 17:30

    Eric Schmidt's user avatar

    I received an Internal Server Error as well after a Drush update. Changing file permissions on the index.php file from 664 to 644 fixed my issue.

    answered Apr 3, 2018 at 3:03

    Steven's user avatar

    1

    Понравилась статья? Поделить с друзьями:
  • Ошибка 500 django
  • Ошибка 500 ddos
  • Ошибка 500 csbans
  • Ошибка 500 canon g2400
  • Ошибка 500 asp net core