Knowledge Base - Articles

Posted 18 Aug 2017

After upgrading to PHP 7.1 (from any PHP version, including 7.0), you may find a fatal error in your logs that looks something like this:

ArgumentCountError: Too few arguments to function your_function(), 0 passed in /mnt/www/html/yoursite/docroot/sites/all/modules/custom/yourmodule/yourmodule.module on line 527 and at least 1 expected in your_function() (line 169 of /mnt/www/html/yoursite/docroot/sites/all/modules/custom/yourmodule/yourmodule.module). request_id="[request_id_here]"

Posted 26 Jul 2017

If you are connecting to an external service or are setting up SimpleSAML and need to store a private key in a persistent and secure location, it's recommended to create a directory off your home directory. In the example below, we use a directory named "private_keys", but you can change the name to best suit your needs:

Replace [SITENAME] with your application's site name.

/home/[SITENAME]/private_keys
Posted 20 Jul 2017

Since CloudFlare acts as a reverse proxy, the IP address in Apache logs will show the CloudFlare IP address instead of the visitor's true IP address. To restore the true IP address of the visitor:

  1. Install and enable the CloudFlare module
  2. Add the following code to your settings.php file:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {  $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];}
Posted 18 Jul 2017

When attempting to SSH into your server, you might encounter an error like the following:

Permission denied (publickey). Couldn't read packet: Connection reset by peer

If you see the error above, answer the following questions to determine the issue:

Posted 03 Jul 2017

In this article, we are going to cover the Drupal 8 configuration lifecycle. We will start by making a simple configuration change in our local environment, then export the change to code, and eventually deploy it to different environments on Acquia Cloud.

Posted 03 Jul 2017

By default, Drupal 8 uses the sync configuration directory type for Configuration Management. This type defines the configuration directory located under the path/to/docroot/sites/sitename/files/config_HASH path. Acquia Cloud introduces an additional configuration directory type named vcs to allow you to track Configuration Management changes under version control.

Posted 03 Jul 2017

To use Drupal 8 trusted host patterns feature with Acquia Cloud, just add all the possible domain names used for the site to settings.php:

$settings['trusted_host_patterns'] = array(
  '^www\.example\.com$',
  '^.+\.acquia-sites.com$',
  '^exsite.dev.dd$',
);
Posted 30 Jun 2017

Acquia’s Remote Administration service provides proactive security updates for customers. We use a streamlined 3 step process to help get these updates onto production quickly, keeping sites secure.

To facilitate this process customers are required to test updates to ensure that they do not break functionality on their site. All testing of updates is the responsibility of the customer, however the RA team can assist with troubleshooting when required.

Posted 30 Jun 2017

If part of your web application's functionality relies on HTTP requests made from your web servers to an external web service (commonly known as external calls), the performance of your site's server may be impacted by a performance issue with this external service. If you expect that a problem with an external web service is causing performance issues on your site, you can use the following methods to identify these misbehaving services:

Posted 29 Jun 2017

Acquia Drupal was a Drupal 7 distribution that packaged several recommended modules together to make setup of new sites easier. Acquia Drupal has been deprecated in favor of Lightning (https://docs.acquia.com/lightning, https://www.drupal.org/project/lightning). Fortunately, uninstalling the Acquia Profile is a simple process.

Create a new development branch locally using git.

Contact supportStill need assistance? Contact Acquia Support