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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:52:55+00:00 2026-06-12T16:52:55+00:00

So I has a small problem as I outlined here. I have made a

  • 0

So I has a small problem as I outlined here.

I have made a new question because this is more general and will perhaps help others.

So essentially, I integrated the Facebook SDK Into Codeigniter as a library.

The SDK requires Json and Curl.

In the base_facebook.php file there is the following code:

    if (!function_exists('curl_init')) {
  throw new Exception('Facebook needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
  throw new Exception('Facebook needs the JSON PHP extension.');
}

If these functions are not available I expect an error to be fired to tell me such. Then I can install the correct packages and continue.

What actually happened is that even when I had error reporting set to E_ALL a blank page was returned.

This made it impossible to debug and after lots of playing I worked out it was because CURL was not installed on my server.

My question is why does codeigniter show blank pages rather than library based exceptions?
Furthermore even if there is an exception in a library why does the rest of the page not continue executing.
Essentially CI is seemingly making the use of exceptions worthless..

COuld anyone advise?

THanks

  • 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-12T16:52:56+00:00Added an answer on June 12, 2026 at 4:52 pm

    My question is why does codeigniter show blank pages rather than library based exceptions?

    Most likely because display_errors is set to “off”.

    While this is recommended for a production environment (web site users are not supposed to see internal error messages – it might give them info about internals, that they are not supposed to have) – it’s not very helpful while developing, where you as the developer want to be informed about what went wrong.

    So check if CI has a “debug” setting for this, or if it’s maybe already set to off in your PHP configuration.

    (Maybe CI or your config are set up in a way that errors are logged to a file instead. Also recommended for production; while developing, you’d have to keep an eye on this file then.)

    Furthermore even if there is an exception in a library why does the rest of the page not continue executing.

    Because that’s how exceptions are supposed to work – if they are not being caught when they reach the “top level” of your app, they cause a fatal error, and scripts die when those occur.

    Familiarize yourself with the concept of try { … } catch(…) { … } to handle exceptions that might occur in script flow.

    (Actually, it’s kinda surprising you don’t know all this already, if you’re working with an advanced PHP framework …)

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

Sidebar

Related Questions

I've got a small Cocoa problem. I have a StatusBar application that has an
I have a small problem. My app has a database which stores lazy loaded
I have a small problem with an Xpage Application and hope that someone has
I have a small problem, which I think it will be easy for you
I recently encountered a small problem with Storyboards. I have a UINavigationController than has
I am facing a small problem. I have a struct, which has a vector.
I have a small problem parsing json response because it constantly keeps on getting
I have a small problem. I am making a site that has Tags and
I have a small webcrawler that sometimes has to crawl twitter and pull out
I've made a small program which has 2 buttons and each does certain thing.

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.