ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Course home pages disappear on login


  • 2008-07-05 17:06:28

    Course home pages disappear on login

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system - linux
    version of ATutor - 1.6.1
    versions of php - 5.3.4
    version of mysq l - 4.1.2
    webserver & version - apache 1.3.9
    copies of error messages - Warning: strpos() [function.strpos]: Empty delimiter. in /home/cotw/public_html/isensei/include/classes/UrlRewrite/UrlRewrite.class.php on line 227
    changes to default settings - prettyURLs on
    web browser being used - Firefox 3
    and anything else relevant -


    I installed as usual then configured the preferences for pretty URLs. When I got the error message I turned off the pretty urls. But I still got the errors.

    I did a fresh install. Same problem.

    I changed the folder name and reinstalled 1.6.0 for production purposes.

    Tried 1.6.1 under the new folder name. No error messages but I couldn't login in as an instructor.

    I switched folders again and the error messages reappeared. I'm totally baffled. I've never had such problems before.

  • 2008-07-05 18:00:10

    Re: Course home pages disappear on login

    Can you check if FF2 give you the same error please? Thanks.

  • 2008-07-05 19:45:59

    Re: Course home pages disappear on login

    Harris,

    Thanks again.

    I don't have Firefox 2 and I'm not sure it's available any more but I can try.

  • 2008-07-05 20:01:06

    Re: Course home pages disappear on login

    I did find a copy of Firefox 2 and the errors don't appear on it. Only of version 3. What does that mean?

  • 2008-07-07 10:08:57

    Re: Course home pages disappear on login

    FF3 might handles headers request/response with php differently than FF2. I have to investigate more to find out what the exact problem is.

    In the mean time, try turning pretty url off.

    [b]Edited[/b]:
    Just tried with FF3 and it's working fine with me.

  • 2008-07-07 12:38:51

    Re: Course home pages disappear on login

    More, this warning:

    Warning: strpos() [function.strpos]: Empty delimiter. in /home/cotw/public_html/isensei/include/classes/UrlRewrite/UrlRewrite.class.php on line 227

    will only appears when $_SERVER[PHP_SELF] is empty or null. Did you set permission to block off ATutor in retrieving the $_SERVER variable?

  • 2008-07-07 12:46:10

    Re: Course home pages disappear on login

    Try also, logging into our demo site with your FF3 and see if the problem persists. If so, then try reinstalling your FF3 to the latest one, or it could be some addons with your FF3 that's affecting its functionality.

    If your FF3 works well with our demo, then it could be something wrong with your local apache or php settings.

  • 2008-07-07 17:08:52

    Re: Course home pages disappear on login

    The demo looks fine on FF3, and no I did not set any permissions. I simply downloaded and installed as is.
    Problem occurred when I set pretty URLs to on, but it does not go away when I turn that setting off. Nor did it go away when I reinstalled. I wondered if it might be configured in the database, but I couldn't find anything.

  • 2008-07-07 17:12:36

    Re: Course home pages disappear on login

    What's your admin settings for pretty url?

    pretty url - on
    course dir name - on
    apache mod rewrite - on

    ?

  • 2008-07-07 17:28:17

    Re: Course home pages disappear on login

    [ pretty_url ] (Default: Disable)
    Enable
    [ course_dir_name ] (Default: Disable)
    Enable
    [ apache_mod_rewrite ]
    [ mod_rewrite ] (Default: Disable)
    Enable

    With these settings I caused the problem.

    When disabled pretty URLs it also disabled mod rewrite
    but not course directory name.

    [ pretty_url ] (Default: Disable)
    Disable
    [ course_dir_name ] (Default: Disable)
    Enable
    [ apache_mod_rewrite ]
    [ mod_rewrite ] (Default: Disable)
    Disable


    so I still had the problem.

    [ pretty_url ] (Default: Disable)
    disable
    [ course_dir_name ] (Default: Disable)
    disable
    [ apache_mod_rewrite ]
    [ mod_rewrite ] (Default: Disable)
    disable



    with the default setting in course directory name it goes away.

    Thank you for your help.

  • 2008-07-07 17:32:13

    Re: Course home pages disappear on login

    Thanks for the details. Is ATutor hosted on your local system or is this from a hosting company?

  • 2008-07-07 17:59:46

    Re: Course home pages disappear on login

    It's at open source host.

  • 2008-07-08 09:57:24

    Re: Course home pages disappear on login

    Can you open include/classes/UrlRewrite/UrlRewrite.class.php

    Change line 189 from
    [php]
    $url_parts = explode('/', $_SERVER['PHP_SELF']);
    [/php]
    to
    [php]
    $url_parts = explode('/', $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
    [/php]

    and tell me if that fixes the problem please?
    thanks

  • 2008-07-09 10:54:21

    Re: Course home pages disappear on login

    Hi, patch 0002 is created to fix this problem. Please go ahead to install. Thanks.

    Please let me know otherwise.

  • 2008-07-09 15:37:04

    Re: Course home pages disappear on login

    Thank you, Harris, I will give it a try. Sorry not to get back to you before.

    The issue has been on the back burner since the weekend.

  • 2008-07-09 16:04:26

    Re: Course home pages disappear on login

    That seems to have done the job, thank you, Harris.

  • 2008-07-09 16:06:04

    Re: Course home pages disappear on login

    Good to know, thanks.

  • 2008-07-11 02:56:35

    Re: Course home pages disappear on login

    Hello Harris,

    This somewhat describes my problem, I am only having trouble getting the admin home page and the patch page to show. I have listed it as a bug. It seemed to have stagnated there.

    I notice that there are a lot of comments for users to switch to Apache, that is an option I don't have, I could have someone from support reinstall my 1.6.1, but I doubt that it would change the problem.

    Without having the patcher page show up, is there any way to apply the patch 0002? I did try the code insertion mentioned earlier in this topic. No luck! :(

  • 2008-07-11 08:42:12

    Re: Course home pages disappear on login

    It could very well be a webserver problem. We've given up trying to support windows IIS if thats the webserver you're using. The problems you describe are typical of IIS.

  • 2008-07-11 10:09:28

    Re: Course home pages disappear on login

    Hello,

    The insertion only fixes this error:
    Warning: strpos() [function.strpos]: Empty delimiter. in /home/cotw/public_html/isensei/include/classes/UrlRewrite/UrlRewrite.class.php on line 227

    [reply][b]In reply to:[/b]
    I did try the code insertion mentioned earlier in this topic. No luck! :(
    [op]forums/view.php?fid=7;pid=14348;page=2#14470[/op][/reply]

  • 2008-07-11 16:31:45

    Re: Course home pages disappear on login

    If ATutor's development team has given up on supporting IIS, then the documentation should be changed on http://www.atutor.ca/atutor/docs/requirements.php

    And on SourceForge also. Would have saved me two months of wasted time trying to go to 1.6 and 1.6.1.

    I am sure that potential users would like to know.

  • 2008-07-11 19:36:12

    Re: Course home pages disappear on login

    We're not saying ATutor won't run on IIS, some people have managed. Our focus is Apache, which a vast majority use (and its open source). If there were more demand for IIS support, and funds to pay for it, we'd certainly consider taking it on.