Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

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

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9074265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:35:42+00:00 2026-06-16T18:35:42+00:00

I have currently set my Codeigniter root index.php ‘s environment variable to development .

  • 0

I have currently set my Codeigniter root index.php‘s environment variable to development.

And I haven’t also enabled tiny URL mode.

I don’t like to check /var/log/apache2/error.log every night and day!

Want my PHP errors back to the page. 500 Internal error is really the *HARD*est method that can be used to show the error.

Note that we are working on an Ubuntu 12.04 LTS server with default config.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:35:43+00:00Added an answer on June 16, 2026 at 6:35 pm

    As mentioned in the comment I’m doubtful that this is CodeIgniter’s issue. It’s more likely that you simply have display_errors set to off in your php.ini.

    If I remember correctly, CI’s index.php contains a call to ini_set('error_reporting', ..); to change the default behaviour anyway, so you could always look in there first and see what’s going on.

    Just had a look, here’s the default:

    /*
    |---------------------------------------------------------------
    | PHP ERROR REPORTING LEVEL
    |---------------------------------------------------------------
    |
    | By default CI runs with error reporting set to ALL.  For security
    | reasons you are encouraged to change this when your site goes live.
    | For more info visit:  http://www.php.net/error_reporting
    |
    */
        error_reporting(E_ALL);
    

    If you simply add under there ini_set('display_errors', 1);, it should start working just fine. Obviously the best bet would be to add a switch for your environment to set these variables, I’m not sure why it’s not like that already, but here’s an example:

    if (defined('ENVIRONMENT'))
    {
        switch (ENVIRONMENT)
        {
            case 'development':
                error_reporting(E_ALL);
                ini_set('display_errors', 1);
                break;
            case 'production':
                error_reporting(0);
                ini_set('display_errors', 0);
                break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have Magento set up on a development server (remote, SSH access) and
I currently have a .htaccess file set up with this rule: RewriteRule ^([a-zA-Z0-9_-]+)$ user\.php?user=$1
I currently have a web project developed with Codeigniter. My production environment works as
I currently have a Multi step form set up in my CodeIgniter app and
I currently have this set up and working fine inside a users folder. RewriteEngine
I currently have a set of tabs, each tied to a fragment, and I've
I currently have my code set to disable the submit button when the field
I currently have a MySQL dual master replication (A<->B) set up and everything seems
Currently I have a site that is set up using a masterpage and a
Currently I have this: [SomeCustomAttribute] public string Name { get; set; } However, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.