Welcome Guest, Not a member yet? Register   Sign In
loader error messages?
#1

[eluser]cgeisel[/eluser]
I'm trying to run CI in a subdirectory. Here's the base_url from config.php:

Code:
$config['base_url'] = "https://scrapit.ca/service";

For some reason I'm able to load views, but not helpers and libraries.

Here's the code from my Welcome page:
Code:
class Welcome extends Controller {

  function Welcome()
  {
    parent::Controller();
  }

  function index()
  {
    if ($this->load->library('email')) {
      echo "ok";
    }
    else {
      echo "blarg";
    }
    $this->load->view('welcome_message');
  }
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */

If you go here, you can see that the email library doesn't load (from the "blarg"):
https://scrapit.ca/service/index.php

My site structure is like this:
Code:
docroot/
* service/
* system/
* etc... all the standard CI install.

The version of CI I'm using is 1.7.1

I suspect this is a permissions issue, but I can't figure it out because when I set the error threshold to 1, I get a 500 server error. Sad
#2

[eluser]WanWizard[/eluser]
$this->load->library doesn't have a return value, so you can't use it in an if like you do here... How do you know it's not loaded?
Set the log_threshold in your config file to 4, and check the log for error messages.
#3

[eluser]cgeisel[/eluser]
I wish I could. When I set log_threshold to any value other than 0, I get a 500 server error.

However, you've got me curious, so I'm going to make certain that the library is the problem before proceeding.
#4

[eluser]cgeisel[/eluser]
This is interesting. It appeared as though the permissions on the entire install were seriously borked, so I deleted my entire installation and started over. Sorry to waste your time.




Theme © iAndrew 2016 - Forum software by © MyBB