fix error

Fatal error: Allowed memory size exhausted

Drupal can be very memory intensive CMS, especially if you have lots of menus, blocks and modules. If you exhaust the allowed memory size, you would get an error such as the following

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 41 bytes) in somefile

To fix this problem, you need to allocate more memory.

1. Open you php.ini file If you don't know where this file is, run locate php.ini. Mine is located at /etc/php.ini. Make sure you back up this file before editing it.

Vagrant error occurred while downloading the remote file


An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.


You are running vagrant init outside your virtual box


cd to your vagrant directory. If you did a vagrant box add solar, then your virtual box is in the directory solar.

$ cd solar

If there is not VagrantFile, run the following command:

$ vagrant init 

If there is a VagrantFile

$ vagrant up

Brackets /bin/sh: node: command not found


JavaScript code not running on Brackets.

Error Message

/bin/sh: node: command not found
Program exited with status code of 127

Root Cause

Brackets cannot find node binary file.


Open terminal and type the following commands and note the addressed returned:

which node
which npm

Click on Node.js > Configuration... from the main menu. Then copy/paste the paths to binary files you retrieved in the command line. For example:

Timed out while waiting for the machine to boot in vagrant

If you see the following error message, this post shows how to fix the problem.

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

Naturally, the first thing that would come to your mind would be to increase config.vm.boot_timeout value. This would work if the bottleneck is the boot_timeout. However, if something is hanging, the boot will never complete regardless of the timeout value you set.