Warning: ini_set() has been disabled for security reasons

You might see this error “Warning: ini_set() has been disabled for security reasons” when you install a fresh copy of Joomla. You don’t need to panic by seeing this error actually your Website-Hosting-server might have disabled the PHP Function ini_set() . You can solve the issue by taking to your Web host [or] by following the steps mentioned below:

 

Warning: ini_set() has been disabled for security reasons in the Joomla 

Steps:-

  1. Log into your cpanel
  2. Edit the configuration.php file in the website root directory .[Public-html/websitename/configuration.php]
  3. In between lines <?php and class JConfig add the below code
    error_reporting(0);
    @ini_set(‘display_errors’, 0);
  4. The code should look like this
    <?php
    error_reporting(0);
    @ini_set(‘display_errors’, 0);
    class JConfig {
  5. save the file
  6. Reload the joomla backend . Now you can signin with admin login details

Note:- Evem after following the above steps on some websites error keeps on showing it will not allow you to make changes in the administrator.To rectify this issue you need to edit session.php file.

  1. Goto [Joomla-website-root-folder]/libraries/joomla/session/session.php
  2. Edit the session.php file
  3. Search for ini_set in the file
  4. Add “@” before every ini_set line
  5. i.e “@ini_set”
  6. save the file
  7. That’s it
Warning: ini_set() has been disabled for security reasons
5 (100%) 5 vote

Deepak

Deepak the CTO of Innovative Hosting has over 5 years of expertise in the hosting and datacenter Industry! He likes writing blogs for simplifying latest technologies so that everyone can understand and relate to them in a better way. He loves learning about latest techie things.

Leave a Reply