Fix

[SOLVED] Drupal - How to fix PHP Fatal error: Call to undefined function curl_init() on Ubuntu linux

One of the Drupal sites that we got to work with had this issue. The original server that the site was hosted on did not have any issue. But the issue showed up when it was transferred over to a new server.

This usually happens when you are missing the php5-curl library.

On Ubuntu, just run the following commands in your terminal to fix this:

sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart

If not on Ubuntu, check for the correct alternative to 'apt-get' for your distribution.

[SOLVED] Error when installing modules in Drupal 7 from admin/modules/install - Exception: Invalid checksum for file...calculated, 0 expected in Archive_Tar...line 635 of modules/system/system.tar.inc

Drupal 7 provides a feature that allows you to install a new module via the Drupal interface itself, without entering your hosting server's cPanel/alternative File Manager to upload files.

That works like a charm for most hosting servers and makes installing modules/themes a breeze on Drupal.

For some others, trying to install modules that way (from admin/modules/install) might just bring up something that looks like the following:
Exception: Invalid checksum for file ... calculated, 0 expected in Archive_Tar->_error() (line 635 of .../my-site.com/modules/system/system.tar.inc).

Here's how to fix this:

Subscribe to RSS - Fix
randomness