Welcome Guest, Not a member yet? Register   Sign In
Installing an old application to a new server
#91

[eluser]Rurik[/eluser]
nope Sad but enough for today, work on it tomorrow i guess
#92

[eluser]Rurik[/eluser]
So, at this line in the login model: $dynamicSalt = $this->db->query($sql, $staffid)->row();, it complains that $db is not defined. This leads me to believe that it gets this value from the non-existant database library, which gets its info from the database config file, which does exist.

And again, this is a direct copy of files and so it doesnt make sense to me why it works on the other server without a database file but not on this one. I am going to go check the files on the other server now.

But while I do that, any idea why, where, when or how it is doing this?
#93

[eluser]TWP Marketing[/eluser]
Well, since the database system is more than a single library, the code for invoking it goes through the config settings and then uses the appropriate driver files.
I'm not concerned that there is no library file named 'database', since there are multiple database types (mysql, postgres, odbc...). There is a database class, which needs to be loaded, either in each controller or globally in the config/autoload.php file.

I see some differences from the latest version, mostly having to do with the use of the Environment variable, which didn't exist in CI until (I think) V 2.1 or so. I don't think those changes were to fix this problem.

Since loading the database drivers via autoload.php seems to fail, have you tried using just the one line in the controller:
Code:
$this->load->database();

We may have tried this, but I forget...
#94

[eluser]Rurik[/eluser]
Yep, we tried that, and putting it in the controller caused it to blank page
#95

[eluser]TWP Marketing[/eluser]
[quote author="Rurik" date="1347742619"]Yep, we tried that, and putting it in the controller caused it to blank page[/quote]

And the apache log error is the same: MY_Controller not found?

What happens if you load the database in MY_Controller itself, which makes it global for the other controller that extend MY_Controller?
#96

[eluser]Rurik[/eluser]
No errors since 6:25 this morning (an hour ago) when apparently a graceful restart was requested, though I didnt do so, maybe another group member did.

And before that, we did this step yesterday:

[Sat Sep 15 07:07:58 2012] [error] [client 203.213.85.195] PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /var/www/webFiles/application/controllers/login.php on line 38, referer: http://eagle/
[Sat Sep 15 07:08:44 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:08:59 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:15 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:16 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:22 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:35 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:35 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:41 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:09:42 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:10:07 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function view() on a non-object in /var/www/webFiles/application/controllers/login.php on line 12, referer: http://eagle/
[Sat Sep 15 07:12:05 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function library() on a non-object in /var/www/webFiles/application/core/MY_Controller.php on line 53, referer: http://eagle/
[Sat Sep 15 07:14:19 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function library() on a non-object in /var/www/webFiles/application/core/MY_Controller.php on line 53, referer: http://eagle/
[Sat Sep 15 07:14:36 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function library() on a non-object in /var/www/webFiles/application/core/MY_Controller.php on line 53, referer: http://eagle./
[Sat Sep 15 07:14:45 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function library() on a non-object in /var/www/webFiles/application/core/MY_Controller.php on line 53, referer: http:///
[Sat Sep 15 07:14:55 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle./
[Sat Sep 15 07:48:37 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://e/
[Sat Sep 15 07:48:45 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle/
[Sat Sep 15 07:48:55 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle./
[Sat Sep 15 07:48:57 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle.
[Sat Sep 15 07:49:07 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle/
[Sat Sep 15 07:49:22 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle/
[Sat Sep 15 07:49:41 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer: http://eagle./
[Sat Sep 15 08:03:08 2012] [error] [client 203.213.85.195] PHP Fatal error: Call to a member function userdata() on a non-object in /var/www/webFiles/application/libraries/permissions.php on line 74, referer:

Putting that line into my controller causes a blank page also.
#97

[eluser]TWP Marketing[/eluser]
the first line:
Quote:[Sat Sep 15 07:07:58 2012] [error] [client 203.213.85.195] PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /var/www/webFiles/application/controllers/login.php on line 38, referer: http://eagle.newcastle.edu.au:8022/

is probably a typo in login.php line 38 or the line before it.
#98

[eluser]Rurik[/eluser]
That error was when I put in $this->load->database(); i think
#99

[eluser]TWP Marketing[/eluser]
It looks like CI IS reading MY_Controller, because it it finding function calls to the database library.
So was line 38 the call to $this->load->database(); ?
It's failing at some line in MY_Controller, but you'll have to look at the code to find the referenced line itself. My telescope won't work around the curve of the globe and I can't afford the satellite hookup.

[eluser]Rurik[/eluser]
hehe, yeah im guessing that was where i place that line, it looks about right. And damn... why cant they invent telescopes that look around corners? Sad

As we discoveredm the thing thats causing it to blank screen is that it doesnt know what database is, in the autoload or anywhere else we put that command. And if i try to access the database, either through autoload, or through the function call, it blank screens because it can't find it.

However this causes the problem that when trying to run a query on the database, say, to login, it fails because it doesnt have a database object.




Theme © iAndrew 2016 - Forum software by © MyBB