Community Forums

ATutor Bug Reports

Bugs in Your Code


You must be signed-in to post.

AuthorSubject
 
Page: 1
lantram
Subject: Bugs in Your CodeQuote this post in your reply
Hi, I installed your latest ATutor software to a Windows 2008 R2 / IIS 7.5 / PHP 5.3 server.

Everything went well until after the web configuration phase was complete, and it attempted to login.

At that point an HTTP 500 error was generated, which appeared consistently after when browsing to any of your PHP files.

I finally tracked it down to line 39 of "include\config.inc.php":

define('AT_CONTENT_DIR', 'F:\thepath\thesite\content\');

I resolved the issue by changing it to:

define('AT_CONTENT_DIR', 'F:/thepath/thesite/content/');

The site then worked, however, the issue was not completely resolved, because there are places in the code (at least one that I found) that assume back rather than forward slashes.

For example, this line causes a problem in "mods/_standard/photos/get_photo.php":

if (file_exists($real) && (substr($real, 0, strlen(AT_CONTENT_DIR)) == AT_CONTENT_DIR)) {

This arises because the $real variable and the AT_CONTENT_DIR definition are at odds over the whole forward vs. backslash direction thing. I hacked it, to this (just to make it work):

if (file_exists($real)) {

However, that is a horrible kludge that has security implications.

Can you please fix this entire issue on your end?

It also seems support for IIS is a bit lackadaisical, as opposed to Apache. I can understand that, however I would request that you find a spare box to put IIS on (or at least put it in a virtual machine) and install your software on it to make sure it works properly.

Thanks for your time.

Regards, Larry Antram
Antram Technologies
Posted: 2013-01-08 20:05:06
greg

Avatar for greg
Subject: Re: Bugs in Your CodeQuote this post in your reply
Well, we gave up on IIS years ago. It is a whole lot of trouble to support. A lot of hacking is needed to make it work. Apache is the way to go when running PHP.


We've noted the content directory issue.
atutor.ca/atutor/mantis/view.php?id=5149
Posted: 2013-01-09 09:08:42
lantram
Subject: Re: Bugs in Your CodeQuote this post in your reply
Really? Come on dude. There's nothing wrong with IIS.
Posted: 2013-01-10 19:31:30
greg

Avatar for greg
Subject: Re: Bugs in Your CodeQuote this post in your reply
ATutor is open source, so if you wanted to create the work-arounds to make things work with IIS, we'd consider adding them to the code. You can find the current source code on GitHub.

https://github.com/atutor/ATutor

Supporting for IIS is not a priority for us. There are too many other things we need to put our resources into.
Posted: 2013-01-10 20:11:45
lantram
Subject: Re: Bugs in Your CodeQuote this post in your reply
Well, that's just groovy. I'm running it on IIS anyway so I guess I'll fix it myself then.
Posted: 2013-01-10 20:18:30
tifenni
Subject: Re: Bugs in Your CodeQuote this post in your reply
spammer
mefang333@gmail.com
Posted: 2013-01-12 01:15:15
 
Page: 1

You must be signed-in to post.

Related Articles