Welcome Guest, Not a member yet? Register   Sign In
Cannot load any codeigniter libraries on Linux (Debian)
#1

[eluser]wizardoflodd[/eluser]
Hi,

I developed my codeigniter app on a windows environment and everything is working fine. I have moved it across onto a Debian server and have hit a problem that I have narrowed down to being unable to load any of the CodeIgnitier System libraries. Rather than use any of my code I can reproduce it with any of the CI example code.

e.g. I can reproduce the problem easily with the following example code (form validation class) from the CI user guide.

Code:
1 <?php
2
3 class Form extends Controller {
4    
5    function index()
6    {
7        
8       $this->load->helper(array('form', 'url'));
9        
10        $this->load->library('form_validation');
11                
12        if ($this->form_validation->run() == FALSE)
13        {
14            $this->load->view('myform');
15        }
16        else
17        {
18            $this->load->view('formsuccess');
19        }
20    }
21 }
22 ?>

When I execute this I get the error :

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Form::$form_validation

Filename: controllers/form.php

Line Number: 12

Fatal error: Call to a member function run() on a non-object in /var/www/mcu/system/application/controllers/form.php on line 12

The log file has the following:

DEBUG - 2009-08-25 12:32:12 --> Config Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Hooks Class Initialized
DEBUG - 2009-08-25 12:32:12 --> URI Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Router Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Output Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Input Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Global POST and COOKIE data sanitized
DEBUG - 2009-08-25 12:32:12 --> Language Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Loader Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Config file loaded: config/freakauth_light.php
DEBUG - 2009-08-25 12:32:12 --> Helper loaded: url_helper
DEBUG - 2009-08-25 12:32:12 --> Helper loaded: form_helper
DEBUG - 2009-08-25 12:32:12 --> Helper loaded: array_helper
DEBUG - 2009-08-25 12:32:12 --> Helper loaded: freakauth_light_helper
DEBUG - 2009-08-25 12:32:12 --> Helper loaded: html_helper
DEBUG - 2009-08-25 12:32:12 --> Database Driver Class Initialized
DEBUG - 2009-08-25 12:32:12 --> FreakAuth Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Session Class Initialized (db)
DEBUG - 2009-08-25 12:32:12 --> sending session cookie
DEBUG - 2009-08-25 12:32:12 --> Model Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Model Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Model Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Controller Class Initialized
DEBUG - 2009-08-25 12:32:12 --> Form Validation Class Initialized
ERROR - 2009-08-25 12:32:12 --> Severity: Notice --> Undefined property: Form::$form_validation /var/www/mcu/system/application/controllers/form.php 12

I'm running:

CI 1.7.1 with the freakauth plugin
Debian Linux 2.6.26-2-amd64
PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2
apache 2.2
mysql 5.0.51a-24+lenny1

I had a few problems moving it over with regards to case sensitivity and permissions which I have resolved. The /var/www directory and subdirs/files are all owner/group www-data the same as apache. My user is in the www-data group. I have a samba share to /var/www that I can write to.

I have a couple of screens that don't use any of the CI libraries and these are working fine.

I can't help thinking that it is still something to do with permissions, but I can't work out what. CI runs on linux and so I have something fundamentally wrong here !

Would value any help.

Cheers,

p.s. Sorry - I didn't mean to post this in bug reports and I don't know how to move it out now


Messages In This Thread
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 05:54 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 08:05 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 08:09 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 08:24 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 08:35 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 08:47 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 09:11 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-25-2009, 09:31 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-26-2009, 01:58 AM
Cannot load any codeigniter libraries on Linux (Debian) - by El Forum - 08-26-2009, 08:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB