Problem: run, then error occurred composer require drush/drush: Solution: run composer with the following pattern instead: php -d memory_limit=-1 /usr/local/bin/composer update  ….. 

Problem: Change directory to Drupal 8/9 instance, and run composer require drupal/console  Then, this error occur: Solution: Install 2 missing modules by running the below composer commands: composer require symfony/filesystem:”4.4.8 as 3.4.35″ composer require symfony/finder:”4.4.8 as 3.4.35″ Then run the composer require drupal/console  again.

Problem: After install Drupal 8, and install Drush for that Drupal 8 instance. The error below occur after running drush cr Solution: sudo mkdir /var/mysql cd /var/mysql sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock Related Issue: https://blog.kylehuynh.com/sqlstatehy000-2002-no-such-file-or-directory/

When you run a command in Drupal console, ie. drupal gm and encounter the error: [ERROR] SQLSTATE[HY000] [2002] No such file or directory                                                                   […]

When install Drupal with composer by command: composer create-project drupal/recommended-project ./drupal Then, these output is encountered: Installing drupal/recommended-project (9.0.3)     Failed to download drupal/recommended-project from dist: The zip extension and unzip command are both missing, skipping. Your command-line PHP is using multiple ini files. Run `php –ini` to show them.     Now trying […]

Problem: Solution: I have selected >Configuration > Performance> OR {{ base_url }}/admin/config/development/performance Deselect Aggregate CSS files Deselect Aggregate JavaScript files

Enable VirtualHosts The first thing you’ll need to do is open the file /Applications/XAMPP/xamppfiles/etc/httpd.conf in your favourite text editor. Look for the following lines: # Virtual hosts  #Include /etc/httpd-vhosts.conf Replace /etc/httpd-vhosts.conf with /Applications/XAMPP/etc/extra/httpd-vhosts.conf and Uncomment the second line by removing the hash (#), so that Apache loads your custom VirtualHosts configuration file. Follow exactly the following page. https://www.drupal.org/docs/7/multisite-drupal/multi-site-on-windows-using-xampp

Open “sites/default/settings.php” and added the following line: ini_set(‘max_execution_time’, 0);

In Drupal 7, it is not necessary to call drupal_install_schema(), or drupal_uninstall_schema(); that is automatically done from Drupal. It is enough to implement hook_schema(), and the database table is created. There are many modules for Drupal 7 implementing that hook, and their database tables are created. Two possible causes for the database table not being […]

Introduction Drupal is a popular content management system (CMS) that is used to quickly deploy websites on sites in an easy to use framework. This guide will cover how to deploy multiple sites from within a single Drupal installation. We will be installing the latest version of Drupal as of this writing (7.23), on an […]

In a case after you install a module, try to access admin page (http://localhost/drupal/admin/modules), but keep getting this error : How to Fix: Add the following to the end of httpd.conf to increase the Apache stack size to 8MB. <IfModule mpm_winnt_module>    ThreadStackSize 8388608 </IfModule> Restart services and your good to go using any version […]

After a bit of researching, I stumbled on the idea that, perhaps, the file extensions were not migrated during the upgrade. Here’s how to do that on a Mac: Choose NetNeans > Preferences > Miscellaneous > Files Next to File Extension, choose New… Enter module for the File Extension. Select text/x-php-5 for Associated File Type […]

Install Homebrew: ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” brew install PHP56 brew install composer brew install –HEAD drush brew switch drush HEAD cd /usr/local/Cellar/drush/HEAD/libexec composer install ls -l /var/mysql rm -rf /var/mysql/mysql.sock (make sure directory /var/mysql exists) sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock /var/mysql/mysql.sock