PHP Error:0607A082:digital envelope routines:EVP_CI PHER_CTX_set_key_length:invalid key length
If you are trying to use and older version of PHP to connect MYSQL over SSL, there is a good chance that you encounter the following errors: error:0607A082:digital envelope routines:EVP_CI PHER_CTX_set_key_length: error:0906D06C:PEM routines:PEM_read_bio:no start line This is a bug in PHP, OpenSSL. This bug has been fixed in PHP versions > 7.1. In case you
Magento: Check if an admin is logged in or not
If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. //get the admin session Mage::getSingleton(’core/session’, array(’name’=>’adminhtml’)); //verify if the user is logged in to the backend if(Mage::getSingleton(’admin/session’)->isLoggedIn()){ echo "Admin Logged in"; } else { echo "You need to
Read More