Here are some of the common Magento errors and their possible solutions:
Unable to allocate memory for pool” in PHP?
SOLUTION: This is Memory related error linked to APC. To resolve this error, specify you .ini settings, specifically your apc.mmap_file_mask setting.
For file-backed mmap, it should be set to something like:
apc.mmap_file_mask=/tmp/apc.XXXXXX
For POSIX-compliant shared-memory-backed mmap, use:
apc.mmap_file_mask=/apc.shm.XXXXXX
While Installing Magento, you might get the following error code:
Fatal error: Maximum function nesting level of '100' reached, aborting!
SOLUTION: To resolve this issue, you can:
Disable the xdebug extension.
Set the value of xdebug.max_nesting_level to a value of 200 or more. Then restart the Apache server and this should resolve the error.
Another common installation error is “Installation fails; cannot create install.log“:
Review your setting for open_basedir
in php.ini
. The Setup Wizard uses the sys_get_temp_dir ( void ) PHP call to get the value of the temporary directory. If open_basedir is set to refuse connections to a directory specified by sys_get_temp_dir
, the installation fails.
To resolve the issue, change the value of open_basedir
and restart the web server.
Another installation error is fatal PDO error displays:
PHP Fatal error: Class 'PDO' not found in /var/www/html/magento2/setup/module/Magento/Setup/src/Module/Setup/ConnectionFactory.php on line 44
SOLUTION: Check and make sure you have installed all required PHP extensions. This error usually occurs due to missing some extensions.
Magento install error There has been an error processing your request
There has been an error processing your request
Exception printing is disabled by default for security reasons.
SOLUTION: check for the “errors” folder–> Change local.xml.sample to local.xml –>Open magento/lib/Zend/Cache/Backend/File.php and look for:
‘cache_dir’ => ‘null’,
‘cache_dir’ => ‘tmp/’,