Community Forums

ATutor Bug Reports

Errors logging in and Apache error log


You must be signed-in to post.

AuthorSubject
 
Page: 1
PaddyTighe
Subject: Errors logging in and Apache error logQuote this post in your reply
Operating system ATutor is installed on -Intel MAc Server 2x quad core, 15Gb RAm
ATutor version -1.6.3
Patch #s applied -01,02,03,04,05
ATutor theme name -corporate blue 2.0
PHP version -5.3.0
MySQL version -5.05
Webserver & version -Apache 2.2.11
Copies of error messages -
Changes to default settings -none
Web browser being used -IE, Safari,FF

HI - This is a new install of Atutor (we have had a older versions running smoothly for years thank you., we are getting some problems with users from different locations (ie cities apart) logging in, then upon clicking on the course icon they are registered for - they get someone elses login name show up at the top of the page- if they refresh the page it sorts itself, but it also seems to affect refreshes when they are working with the course pages. any suggestions? - I can't reproduce the fault in Safari 4, but have done so in IE 6 and FF - just by logging in and out as two separate users, one after the other (auto-login not enabled). so it's possibly browser dependent.

I also get messages in the Apache error log - some issues, but many are related to the "the value of new by reference is deprecated" - see examples below. The timezone error is also curious, the default timezone in php.ini is set properly.

[Mon Nov 02 18:21:38 2009] [error] [client *******] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/ATutor/mods/_standard/rss_feeds/module.php on line 61, referer: server_id/Atutor/users/index.php

[Mon Nov 02 18:21:38 2009] [error] [client *******] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /Library/WebServer/Documents/ATutor/include/lib/output.inc.php on line 177, referer: server_id/Atutor/users/index.php
Posted: 2009-11-02 14:01:22
greg

Avatar for greg
Subject: Re: Errors logging in and Apache error logQuote this post in your reply
You can either revert back to an older version of PHP

or

Turn off error reporting in your system's php.ini file.

display_errors = Off

or

error_reporting = E_ALL & ~E_DEPRECATED

You can find more about error reporting at:
ca3.php.net/manual/en/errorfunc.configuration.php
Posted: 2009-11-02 14:13:10
PaddyTighe
Subject: Re: Errors logging in and Apache error logQuote this post in your reply
Hi - thanks - the php errors were only log file reporting, so not a problem, I just thought I would mention that they occur, as no doubt at some point in time they will cause problems with future PHP releases.

My main problem - which is making us think to roll back to an earlier ATutor release- is the login issue - we now have multiple users who are reporting that when they log in, the first thing they see is someone elses name at the top of the page - this resolves if they refresh the page but there is clearly a refresh problem it also happens in the course forums - I have reproduced it myself so I know it's happening- but why should it happen? We have been running some courses on ATutor 1.5.4 for some time and have never seen this - both servers are located at the same site, same subdomain IP addresses, same proxy and DNS etc. The new install is on a faster server with more RAM, Apache 2 rather than 1.3, and PHP 5 rather than 4 Is there anything I can check to see what's going on here?
Posted: 2009-11-05 07:36:18
greg

Avatar for greg
Subject: Re: Errors logging in and Apache error logQuote this post in your reply
We've never seen this problem before, so I'm guessing its something local, perhaps even a browser issue.

There has also been significant changes in php 5.3 that's causing trouble for some. I'm not sure if this is related, but you might try reverting back to a slightly older version of php.

The next release will deal with the php 5.3 changes. The first beta will be out in the next week or so if you want to test it.
Posted: 2009-11-05 09:06:19
PaddyTighe
Subject: Re: Errors logging in and Apache error logQuote this post in your reply
Hi Greg,
I'm currently looking at identifying the reproducibility of the problem - it affects logins both on and off campus (ie both sides of our proxy) however on the local network, problems only relate to seeing logins the person has used before on that machine (ie if I log in as myself (as course admin, logout and then as a test user and repeat etc etc). Users outside the local network are however reporting issues with the login of someone somewhere else in the Uk appearing when they log in? It looks like once login is clciked - the course list page shows the correct login details in the top right corner, but clicking on the course icon or name brings up the entry page of the course, but with someone elses login.

If you want to see for yourself, I can give you a few usernames to your private email if you think it will help - it would be interesting to get an informed opinion on this.

regards

Paddy
Posted: 2009-11-05 09:50:25
PaddyTighe
Subject: Re: Errors logging in and Apache error logQuote this post in your reply
If you are asking for help, provide lots of detail so problems can be reproduced.

HI - I've been looking for differences at login that might explain the issues, clearly there are changes in the login.php page, but I did notice something that I was unsure about: in the login.php source
for ATutor 1.5,.4 there is a function
function crypt_sha1() {
document.form.form_password_hidden.value = hex_sha1(document.form.form_password.value + "df3ba2d176e308abdb810a7eb321960d1905e712");
document.form.form_password.value = "";
return true;
which is clearly replaced by
function encrypt_password() {
document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "5acba2c9e3a9891474594f6ea21453f70ccd025e");
document.form.form_password.value = "";
return true;

I am just curious - is it right to be coded as ... " hex_sha1(hex_sha1(document"...
seems redundant to call the encoding twice?

regards

Paddy
looking desperately for a reason for our login issues
Posted: 2009-11-06 11:53:54
 
Page: 1

You must be signed-in to post.

Related Articles