ATutor

Learning Management Tools







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


Image Paths


  • 2005-02-18 11:23:13

    Image Paths

    I know this issue has been mentioned in previous posts, but I have not had any luck resolving. Any ideas are greatly appreciated.

    My evnironment:
    ATutor 1.4.2
    Apache/1.3.29 (Unix)
    PHP 4.3.6
    MySQL4.0.20

    I have atutor installed and pointing to a subdomain, ie http://atutor.mydomain.com which points to folder path /atutor.
    My root, it http://mydomain.com points to a different folder /cms. (So in this case /atutor and /cms are at the same peer level.)

    I have successfully imported the atutor welcome course, when I right click on the blanked-out images, I get the following:
    http://atutor.mydomain.com/get.php/atutor_howto_1.4.3/images/name_image_file_here.jpg

    That would be correct if get.php were to only modify the path to include /content/ directory in the path (since http://atutor.mydomain.com already points to the /atutor directory), as my content directory is located at /atutor/content. I am working in a hosted environment, so I did no place the content outside of the installation.

    I have tried modifying the AT_CONTENT_DIR variable, which I assume should be the full server path to the directory, ie something like:
    /homepages/something/something/htdocs/atutor/content/
    Since get.php seemed to missing just a single folder level, I tried editing AT_CONTENT_DIR to things like:
    /content/
    /content
    content/

    So....any ideas?

  • 2005-02-18 13:14:04

    no symbolic links in content path

    On hosted systems it is common to create a symbolic link between a user's home directory and the webserver document directory. I suspect this is the problem.

    The AT_CONTENT_DIR path must not have symbolic links in it. Use the full real path to your content directory, instead of the one with the symbolic link.

  • 2005-02-18 17:56:41

    symbolic links

    Not being familiar w/unix, how would I know if that was the case?

    When I run phpinfo(), the path I get is something like:
    /homepages/something/something/htdocs/atutor/content/
    My provider has verified that this is correct when I ask what my full path is, but I have not asked them if they use symbolic links.

    That seems like a full path to me, but I'm not really sure.

  • 2005-02-18 19:08:18

    run this script

    Create the following php script (replacing the somethings with actual values), upload it into your web space, then open it in your browser. The path that gets displayed is the realpath to the file or directory. It has a symbolic link in it if the one displayed in your browser is different from the one you enter in the script.

    <?php
    $sym_path = realpath("/homepages/something/something/htdocs/atutor/content/");
    echo $sym_path;
    ?>

  • 2005-02-18 22:14:42

    script

    Unfortunately, the realpath() function returns exactly what was sent as the paremeter. I guess I am looking at the actual server path....

    ....anything else I could try?

  • 2005-02-19 09:29:38

    Let us see

    Are you able to give us access to your system so we can take a look?

    Send us admin and instructor access to your ATutor system through the contact us form in the About section of atutor.ca.

  • 2005-02-20 16:34:36

    bug with import ism

    I had the same problem
    operating system - windows xp pro
    version of ATutor - 1.4.3
    versions of php - 4.3.8
    version of mysq l - 3.3.26
    webserver & version - apache 1.3.x


    Problem :: When you import content, a dir of <dir>content/course_id</dir> should be created (such as content/11), rather than a dir of <dir>contentcourse_id</dir> (such as (content11)

    my firx :: create <dir>course_id</dir> under <dir>content</dir> and copy the contents under <dir>contentcourse_id</dir> into it.

    bug: wrong dir is created when importing content. images are therefore stored in the wrong place.

  • 2005-02-20 16:47:48

    as well

    set define(\'AT_FORCE_GET_FILE\', FALSE);

    as well in conf.inc.php under $ATUTOR_HOME$/include/

  • 2005-02-20 16:48:46

    as well

    set define('AT_FORCE_GET_FILE', FALSE);

    as well in conf.inc.php under $ATUTOR_HOME$/include/

  • 2005-02-22 05:21:55

    Server Settings?

    I can't explain what's causing the problem. The images are there. It may have something to do with settings your ISP has setup. It's difficult to investigate problems like this without shell access to your server, and sometimes it take root access when security settings are the potential problem.

    Images are where they are supposed to be:
    http://atutor.empowertraining.com/content/1/atutor_howto_1.4.3/images/add_link.jpg

    I'm unable to run the ATutor internal phpinfo page, which suggests to me there is some security feature enabled that might be the problem. I've seen the same thing you described happen on other systems, while disabling the internal info page.

    If you want to put up your own phpinfo page and send us a link, we'll take a look at the server settings to see if there is anything there that might explain the problem.

    Other things to try...

    Try setting up ATutor as a subdirectory on another site and see if that make a difference:

    eg. http://mysite.com/ATutor/


    Also try replacing the get.php file in 1.4.2 with the one from 1.4.3. Here's a copy.
    http://atutorsvn.rcat.utoronto.ca/repos/atutor/tags/atutor_1_4_3/docs/get.php

    [reply][b]In reply to:[/b]
    Unfortunately, the realpath() function returns exactly what was sent as the paremeter. I guess I am looking at the actual server path....

    ....anything else I could try?
    [op]forums/view.php?fid=7;pid=3707;page=1#3722[/op][/reply]

  • 2005-02-22 13:01:25

    Subject: Server Settings?

    Thanks again for the effort. I will try those suggestions and I will let you know how it goes.....