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 9168929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:44:58+00:00 2026-06-17T15:44:58+00:00

On my production server I have set the environment to ‘production’ in Codigniter’s index.php

  • 0

On my production server I have set the environment to ‘production’ in Codigniter’s index.php file:

define('ENVIRONMENT', 'production');

The case statement below this looks to be doing the right thing also (I haven’t changed it).

However PHP errors are still being displayed eg:

A Database Error Occurred
Error Number: 1054
Unknown column 'laassad' in 'field list'
SELECT laassad FROM contents LIMIT 1
Filename: /home/something/public_html/mysite/somemorestuff.php
Line Number: 11

This is obviously unattractive, and a security risk. Does anyone know what might be causing this behaviour and how I might fix it?

I am using ‘CI_VERSION’, ‘2.1.2’

  • 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-17T15:44:59+00:00Added an answer on June 17, 2026 at 3:44 pm

    Defining your environment as production only suppresses PHP errors – this is a DB error.

    See this thread for answer: How to turn off mysql errors from being displayed to screen in CodeIgniter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I have 2 test and 1 production server. In my global.asax file - I
Environment: SQL Server 2005 SP2 (9.0.3077) Transactional Publications (Production and Beta) I have a
All - I have recently upgraded our production environment from Sql Server Reporting Services
I have my dev environment set up as a Ubuntu Server (with LAMP installation)
I currently have a RoR application set up in a (semi-)production environment on a
In an Intranet environment, I have an FTP server set up for publishing files
I have a development environment set up in Windows using WAMP. The production environment
I have ELMAH setup on my production server and it has done a fantastic
We have problem with our Qt based production server for our business application. When

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.