Password must include both numeric and alphabetic characters - Magento
By: Emiley J
While installing a fresh Magento installation, some users are stuck at the 'Create Admin Account' step, with this error: 'Password must include both numeric and alphabetic characters.'. Follow this simple step to resolve this issue.
The reason for this error is in the following code in the file app/code/core/Mage/Admin/Model/User.php
if (!preg_match(’/[a-z]/iu’, $this->getNewPassword())
|| !preg_match(’/[0-9]/u’, $this->getNewPassword())
) {
$errors[] = Mage::helper(’adminhtml’)->__(’Password must include both numeric and alphabetic characters.’);
}
The preg_match() function is the culprit. It fails because the PCRE extenion in perl is not installed properly. This can be easily resolved by running the following command in your linux
yum install pcre
#if yum doesn't work use apt-get (depends on your linux variant)
Archived Comments
1. Michaelkex
View Tutorial By: Michaelkex at 2017-03-22 02:57:55
2. Thanks it worked. Just remember to restart apache after you install pcre.
View Tutorial By: Raj at 2014-02-08 08:42:26
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
PHP convert string to lower case
PHP code to write to a CSV file for Microsoft Applications
PHP code to write to a CSV file from MySQL query
PHP code to import from CSV file to MySQL
Password must include both numeric and alphabetic characters - Magento
Error: Length parameter must be greater than 0
PHP file upload prompts authentication for anonymous users
PHP file upload with IIS on windows XP/2000 etc
Multiple File Upload in PHP using IFRAME
Resume or Pause File Uploads in PHP
Exception in module wampmanager.exe at 000F15A0 in Windows 8