Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the question so it can be answered easier.

Please choose the appropriate section so question can be searched easier.

Please choose suitable Keywords Ex: question, poll.

Browse
Type the description thoroughly and in details.

Choose from here the video type.

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs Ex: 'sdUUx5FdySs'.

    1 Answer

    1. We can show quickly all php error:

      ini_set(‘display_errors’, 1);
      ini_set(‘display_startup_errors’, 1);
      error_reporting(E_ALL);
      In WordPress we can use directly changing on one line
      Open wp-config.php file and change false to true. You can find file here: Click here

      CodeIgniter we can show error from changing of index.php
      /*
      *—————————————————————
      * APPLICATION ENVIRONMENT
      *—————————————————————
      */
      define(‘ENVIRONMENT’, ‘development’);
      /*
      *—————————————————————
      * ERROR REPORTING
      *—————————————————————
      */
      if (defined(‘ENVIRONMENT’))
      {
      switch (ENVIRONMENT)
      {
      case ‘development’:
      // Report all errors
      error_reporting(E_ALL);

      // Display errors in output
      ini_set(‘display_errors’, 1);
      break;

      case ‘testing’:
      case ‘production’:
      // Report all errors except E_NOTICE
      // This is the default value set in php.ini
      error_reporting(E_ALL ^ E_NOTICE);

      // Don’t display errors (they can still be logged)
      ini_set(‘display_errors’, 0);
      break;

      default:
      exit(‘The application environment is not set correctly.’);
      }
      }

      • 1
    Leave an answer

    Leave an answer

    Browse

    How to show php error?

    We can show quickly all php error:

    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    

    In WordPress we can use directly changing on one line

    Open wp-config.php file and change false to true. You can find file here: Click here

    CodeIgniter we can show error from changing of index.php

    /*
     *---------------------------------------------------------------
     * APPLICATION ENVIRONMENT
     *---------------------------------------------------------------
     */
    define('ENVIRONMENT', 'development');
    /*
     *---------------------------------------------------------------
     * ERROR REPORTING
     *---------------------------------------------------------------
     */
    if (defined('ENVIRONMENT'))
    {
        switch (ENVIRONMENT)
        {
            case 'development':
                // Report all errors
                error_reporting(E_ALL);
    
                // Display errors in output
                ini_set('display_errors', 1);
            break;
    
            case 'testing':
            case 'production':
                // Report all errors except E_NOTICE
                // This is the default value set in php.ini
                error_reporting(E_ALL ^ E_NOTICE);
    
                // Don't display errors (they can still be logged)
                ini_set('display_errors', 0);
            break;
    
            default:
                exit('The application environment is not set correctly.');
        }
    }
    • 0
    Answer
    Share This Article

    Leave a comment

    Browse