Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes

Image CAPTCHA requires FT fonts support

For docker users - update for Magento 2.4, for those using official php docker images - I had to use --with-freetype rather than @cgalvaojr answer --with-freetype-dir, like this: FROM php:7.4-fpm ARG ...
John O'Rourke's user avatar
5 votes
Accepted

Image CAPTCHA requires FT fonts support

you need to change the php configure script to include --with-freetype-dir=/usr/lib64/ where /usr/lib64 contains the libfreetype.so file. My final configuration so far looks like: ./configure --with-...
user3338098's user avatar
5 votes
Accepted

Add database getting error SQLSTATE[HY000] [2002] No such file or directory

Try to replace localhost to 127.0.0.1 and check This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might ...
Manthan Dave's user avatar
  • 9,826
5 votes

How to configure Magento 2 Theme/Design via the Command-Line?

This does not accomplish OP's goal of utilizing the Magento CLI, however it does work for usage in automation which is what OP (and myself) was looking to achieve. Edit: 2022.08.02 A "Magento way&...
Darren Felton's user avatar
4 votes

How to configure Magento 2 Theme/Design via the Command-Line?

I was not able to find a direct Magento CLI command so far, I could work around with a Bash and Magerun: $ THEME_ID="$(n98-magerun2.phar dev:theme:list --format=csv \ | grep 'Vendor/code' | cut -d, ...
hakre's user avatar
  • 2,831
4 votes
Accepted

How can I install Magento on Ubuntu 16.04 XAMPP with PHP version 7.1.1?

Yes The error shows correct . Because Magento 2 won't support PHP version 7.1.1. Both Magento 2.0.x and Magento 2.1.X both Support PHP 7 Version but with limited version Edition. Magento 2 ...
Manthan Dave's user avatar
  • 9,826
4 votes

How do I clear all tasks queued in the Magento Cron, specifically emails?

There are a few things you can do. The first thing is to clear the email queue table. The is stored in the core_email_queue table so truncating this table should clear the backlog of emails along ...
Colin Murphy's user avatar
3 votes
Accepted

How to Disable Inventory Management In Magento 2.x

You need to run below command to disable MSI modules in Magento 2.3+ versions. To disable modules run below command php bin/magento module:status | grep Magento_Inventory | grep -v List | grep -v None ...
Kishan Savaliya's user avatar
3 votes

Image CAPTCHA requires FT fonts support

I found fix for development environment, because I use Mac OS and the apache php doesn't support these fonts and it's a lot of work to get it working and not mess up my system. open vendor/...
Yoan Arnaudov's user avatar
3 votes
Accepted

Magento 2 - After adding to cart, cart page showing empty

You should enable this: Magento Admin > Stores > Settings / Configuration > General / Web > Default Cookie Settings
Saphal Jha's user avatar
  • 1,873
3 votes

Magento 2 installation & Linux file folder permission

Give 775 permission to your var and pub/media directory. Run below command for the same. sudo chmod -R 775 /var/generation sudo chmod -R 775 /pub/media If in case in your server 775 not work then ...
Manthan Dave's user avatar
  • 9,826
3 votes

Installing Magento 2.4 in Linux Mint

You should change --elasticsearch-host=es-host.example.com to --elasticsearch-host=localhost Elasticsearch for Magento 2.4.x must be 7.x version Latest Elasticsearch version Hope that it resolves ...
Neverland's user avatar
  • 101
2 votes

How to fix One or more indexers are invalid. Make sure your Magento cron job is running?

To work with XAMPP installed on Windows, First redirect to PHP folder in XAMPP by : cd C:\xampp\php Then enter following command : php C:\xampp\htdocs\magento2\bin\magento indexer:reindex This ...
Ganesh Aher's user avatar
2 votes

Check for updates didn't work in Magento Connect Manager ver. 1.9.3.0

modified this file: /downloader/lib/Mage/HTTP/Client/Curl.php (line 371) protected function makeRequest($method, $uri, $params = array(), $isAuthorizationRequired = false, $https = true) { to ...
MHK Developer's user avatar
2 votes

how to solve Dirty COW Linux OS Vulnerability Dirty COW (CVE-2016-5195)?

See below references might helps: https://magento.com/security/vulnerabilities/new-linux-operating-system-vulnerability https://goo.gl/WyzMdF
Shyam Krishna Sreekumar's user avatar
2 votes

how to export large sql file to phpmyadmin in kali linux?

It's so simple. You can export the database to any directory which you want. To do so: Open terminal (CTRL + ALT + T) and put the following command first: cd /opt/lampp Now run the mysqldump ...
Mohit Kumar Arora's user avatar
2 votes

Image CAPTCHA requires FT fonts support

For me (using docker) solves problem with: FROM php:7.2.0-fpm-stretch RUN apt-get update --fix-missing libfreetype6-dev && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-...
cgalvaojr's user avatar
2 votes

n98-magerun.phar not working - PHP Fatal error: Class 'Phar' not found

Check if the phar.so extension is present in your PHP installation. It has to be enabled in your php.ini file. If it is not, you can either change your php.ini file, or should be able to call n98-...
simonthesorcerer's user avatar
2 votes

Magento 2.3 - LEMP Localhost - How to configure Nginx for Multi-Website store on Localhost (Centos 7)

Can you follow below blog they have setup this. https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/ms_nginx.html
ParulThakkar's user avatar
  • 1,147
2 votes

Magento 2.3 - LEMP Localhost - How to configure Nginx for Multi-Website store on Localhost (Centos 7)

for installation please follow the link, Magento 2: How to configure Nginx to use multiple websites with sub-folder you can also check the below link for your problem. Magento 2: How to configure ...
Smita Kagwade's user avatar
2 votes

Installing Magento 2.4 in Linux Mint

You can follow this video which help you into installation. https://www.youtube.com/watch?v=2y5OMAFLAZU
Dhiren Vasoya's user avatar
2 votes

No alive nodes found in your cluster

Did anyone have success fixing this error? I have the same error, indexing via cli is working but the Storefront and Admin have the error "No alive nodes found in your cluster" Update: I ...
Matt R's user avatar
  • 31
2 votes

Elasticsearch 7.11 connection refused using Devilbox

Search for the line that contains network.host, uncomment it, and change the value to 0.0.0.0. Set the network host to 0.0.0.0 to listen on all interfaces and make it available publicly, Incase you ...
Afzal Arshad's user avatar
1 vote
Accepted

Install Magento 2 in Linux Mint

Add below code on the top of your index.php(of Magento) file then you will get the exact error: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
Saphal Jha's user avatar
  • 1,873
1 vote
Accepted

Operation not permitted

The issue is with permission with var and generation folder. Use the below command chmod -R 777 var generated Then run your setup:upgrade command.
Sourabh Kumar Sharma's user avatar
1 vote

Best server configuration for Magento 2 small application

My recommendations: Use Apache2 or Nginx (Both web servers, in their latest versions, can compete with each other in most areas) Use php-fpm and opcache for improving performance Use varnish cache ...
Bilal Usean's user avatar
  • 9,987
1 vote

Image CAPTCHA requires FT fonts support

This is almost definitely caused by the underlying system not having FreeType installed (if FreeType is already installed then @user3338098's solution should fix it). If you come across this problem ...
Bathmat's user avatar
  • 111
1 vote
Accepted

Why Magento is preferable with LAMP?

Magento itself officially only supports a Linux based stack - see the System Requirements here. I have heard of others using Windows for Magento so my suggestion is to go with whatever works best ...
Kristof at Fooman's user avatar
1 vote
Accepted

Ubuntu 16.04 boot loader corrupt

For this you have to use alternative option as this is also happen for me you should boot your system from a usb drive then back your data and if there is problem of boot loader then it will be fixed ...
Rishu Singh's user avatar
1 vote
Accepted

read error ubuntu 16.04

For this you have to use alternative option as this is also happen for me you should boot your system from a usb drive then back your data and if there is problem of boot loader then it will be fixed ...
john doe's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible