Welcome Guest, Not a member yet? Register   Sign In
Install CI on Brinkster
#1

[eluser]justmelat[/eluser]
Has anyone successful installed CI on Brinkster.net. I am getting the CGI/headers errors. I have tried just about every fix, but nothing has worked so far.

Any guidance would be appreciated.
#2

[eluser]Derek Jones[/eluser]
If you can specifically tell what errors you are referring to by "the CGI/headers errors", and list, specifically, what you have tried, you are more likely to be able to receive assistance. Short ambiguous questions tend to receive short ambiguous answers, or none at all.
#3

[eluser]justmelat[/eluser]
I was hoping to find someone who user Brinkster who could give me specifics.

Go here. http://www.mywebgenius.net/ci/

this is my default controller page


i have changed the config files various times, these are my current settings.
$config['base_url'] = "http://www.mywebgenius.net/ci/";
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "PATH_INFO";
$route['default_controller'] = 'purestaff';

if i removed the ? in the index_page and set the uri_protocol to auto i get the following error
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
#4

[eluser]Derek Jones[/eluser]
PATH_INFO (and on some servers AUTO )are not likely to work on PHP run as a CGI process. I would try REQUEST_URI, and if that fails, you may need to run with query strings.
#5

[eluser]justmelat[/eluser]
Ok, i checked with my host provider and found the following:

Server API CGI/FastCGI

so I am trying REQUEST_URI,


http://www.mywebgenius.net/ci/index.php?...ontractors

i now get the following error from my view
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: query

Filename: views/contractors_view.php

Line Number: 14


Fatal error: Call to a member function result() on a non-object in C:\Sites\premium4\justmelat1\webroot\ci\system\application\views\contractors_view.php on line 14


it is not grabbing the query data from the controllers. I don't know how to handle this.

this is the line in the view file that's throwing the error.
<?php foreach($query->result() as $row): ?>
#6

[eluser]Derek Jones[/eluser]
You shouldn't have to be using query strings with REQUEST_URI.

Are you sending the query object to your view file? Show us the code from your contractors() method please.
#7

[eluser]justmelat[/eluser]
Sorry for the delay in replying, work has been a killer.

Ok I am back to this project
You can view exactly what's happening by going here: http://www.mywebgenius.net/ci/index.php - click on any of the links so see what happens.

config.php has the following settings now:
$config['index_page'] = "index.php";
$config['uri_protocol'] = "PATH_INFO";

A portion of my controller is below, per the page above - the contractors and client functions are near the top of the controller named accordingly.

<?php

class Purestaff extends Controller{

function Purestaff()
{
parent::Controller();


$this->load->helper('url');
$this->load->helper('form');
$this->load->library('table');
}

function index()
{

$data['title']="PureStaff";
$data['heading']="Welcome to Purestaff";

$this->load->view('purestaff_view.php', $data);
}

function contractors()
{
$data['title']="PureStaff-Contractors";
$data['heading']="View Contractors";

$data['query']=$this->db->get('contractors');

$this->load->view('contractors_view.php', $data);
}
function clients()
{
$data['title']="PureStaff-Clients";
$data['heading']="View Clients";

$data['query']=$this->db->get('clients');

$this->load->view('clients_view.php', $data);
}
function jobs()
{
$data['title']="PureStaff-Jobs";
$data['heading']="View Current Jobs";
$data['query']=$this->db->get('jobs');

$this->load->view('jobs_view.php', $data);
}
#8

[eluser]justmelat[/eluser]
? Help. Anyone?
#9

[eluser]justmelat[/eluser]
Help. Anyone?




Theme © iAndrew 2016 - Forum software by © MyBB