Blog

Security

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
5 (100%) 1 vote

Leave a Reply

Your email address will not be published. Required fields are marked *

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound