ATutor

Learning Management Tools







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


I could upload my imagebut could not open it


  • 2004-10-24 23:23:05

    I could upload my imagebut could not open it

    hi,friends

    I make my ATutor in Whitebox Linux 3.I could upload my image use file manager, but i could not open it.

    the link content on file_manager.php is "atutor/get.php/images/pic1_zhuzheng.png",and get.php is a file ,not a directory!!

    thank you!!! :P

  • 2004-10-25 11:10:10

    get.php

    Yes get.php is a file. It generates a path to the content directory, so it is possible to locate it outside your web directory.

    Just use a relative link to the file:
    images/pic1_zhuzheng.png

    Include more information about your system if you need more help.

    see:
    http://atutor.ca/view/7/149/1.html

  • 2004-10-26 09:23:58

    my environment

    thank you!

    I make a course, and use file manager make a directory named \"image\",then upload my image named \"pic1.png\" into this directory,my upload images found in the directory \"ATutorcontent/2/image/\",

    but the link content on file_manager.php is \"atutor/get.php/images/pic1_zhuzheng.png\",get.php could not show my image
    =============
    my linux is whitebox 3
    my apache is httpd-2.0.46-32.ent.WB1
    my mysql is mysql-3.23.58-1
    my php is 4.3.2
    my browser is ie6

    thank you very much!!!

  • 2004-10-26 09:34:46

    Apache 2

    We can not support Apache 2 installations. There are too many problems with Apache 2 PHP support for us to devote resources . Please use Apache 1.3.

    The path is right "get.php/images/pic1_zhuzheng.png".

  • 2004-10-26 11:46:08

    ;(

    ok,anyway i modified the get.php and file_manager.php

    and it work s;)

    in file_manager.php,i find the line has "get.php" ,and chang it to "get.php?pathext=......"

    and then open get.php, and add these:

    if ($_GET['pathext'] != '') {
    $pathext = urldecode($_GET['pathext']);
    }

    $args ='/'.$pathext;

    -----------------------------
    now it works.

    [reply][b]In reply to:[/b]
    We can not support Apache 2 installations. There are too many problems with Apache 2 PHP support for us to devote resources . Please use Apache 1.3.

    The path is right "get.php/images/pic1_zhuzh...
    [op]forums/view.php?fid=7;pid=2861;page=1#2879[/op][/reply]

  • 2004-10-28 19:21:25

    could not display images

    an instructor created acourse using a local installation of atutor 1.4.2
    Importing the course content on the 'official' installation of the faculty we experienced a problem: no image could be displayed whilst the course worked locally.
    the same thing happened to my courses, created with a different (1.4) installation of ATutor.
    Looks like I created a problem updating to 1,4,2 by creating the 'content' directory outside the main directory of ATutor??!!

    http://elearning.med.unifi.it/atutor/info.php

  • 2004-10-29 12:19:58

    :)

    thanks heenji.
    with your changes now ATutor show the object (like images) imported in a course (try the HowTo course)...in conclusion you must modify index.php, in the line where is "get.php/", and change with "get.php?"..

    bye

  • 2004-10-29 18:52:56

    What do paths look like?

    Do the images exist in the file manager?

    What does a path to an images look like in the content where they no longer display?

    <img src="???">

    [reply][b]In reply to:[/b]
    an instructor created acourse using a local installation of atutor 1.4.2
    Importing the course content on the 'official' installation of the faculty we experienced a problem: no image could be displ...
    [op]forums/view.php?fid=7;pid=2861;page=1#2915[/op][/reply]

  • 2004-10-30 05:26:36

    the path

    the path is
    <img src="img/swollenleg.jpg" width="200" height=" 160" alt="trombosi massiva dell'arto inferiore sinistro" align="center">

    the image is locally present I can see it in the directory 'img' inside the content5 directory, relating to the course
    I can see the image properly placed inside the 'img' directory in the file manger

    I will try to modify the get.php to see if it works

  • 2004-11-02 02:48:24

    confi.inc.php error ?

    since I cannot display any image (but they are present locally in the content directory and they are present in the file manager as well) I checked the config.inc.php and i found this command line


    /* Where the course content files are located. This includes all file */
    /* manager and imported files. If security is a concern, it is */
    /* recommended that the content directory be moved outside of the web */
    /* accessible area. */
    define('AT_CONTENT_DIR', 'D:\\elearning\\contenuti');

    is the (second) double back slash in the path an error (I think so) ?
    I corrected it but I did not notice any variation, I cannot see any image displayed in the courses.

    I wuold try to correct the 'get.php' file as henji suggested but the instructions are not clear, would you please repeat exactly how to modify the files ?

    thanks

  • 2004-11-05 07:27:58

    get.php

    since the absolute path (right clicking the file in the file manager) of the images is

    http://elearning.med.unifi.it/atutor/get.php/img/originale.bmp


    shall I modify the get.php as henji suggested ? shall it be enough or the file_manager.php has to be modified as well ?

  • 2004-11-05 08:54:29

    Try it.

    You could try Henji's suggestion. We have not been able to reproduce the problem ourselves, but have tried Henji's modifications and they appear to work.

  • 2004-11-06 03:26:17

    a new image

    besides if i try to edit a course content embedding an image (it is present in the file manager) I cannot display anything.

  • 2004-11-06 04:30:37

    get.php

    the original command line is

    href="get.php/'.$pathext.urlencode($filename).'">'.$filename.'</a>';


    I modified it (i'm actually not absolutely sure that I did it correctly) but it does not work

    href="get.php?pathext=......'">'.$filename.'</a>';


    any suggestion is welcome
    beside, importing the how to was successful but no image is displayed in the course

  • 2004-11-06 09:19:20

    yes,there is still problems

    ;(!!!

  • 2004-11-08 18:20:14

    decided problem

    hi,friends

    Was with the same problem to see the images of the file manager. How I decided?

    in file_manager.php replace line <td class=\"row1\"><small> <a href=\"get.php/\'.$pathext.urlencode($filename).\'\">\'.$filename.\'</a>\';
    for
    <td class=\"row1\"><small> <a href=\"get.php?pathext=\'.$pathext.urlencode($filename).\'\">\'.$filename.\'</a>\';

    in get.php replace line
    $real = realpath($file); for
    $real = realpath($file) . \"/\" . $pathext;

  • 2004-11-08 18:20:52

    decided problem

    hi,friends

    Was with the same problem to see the images of the file manager. How I decided?

    in file_manager.php replace line <td class=\"row1\"><small> <a href=\"get.php/\'.$pathext.urlencode($filename).\'\">\'.$filename.\'</a>\';
    for
    <td class=\"row1\"><small> <a href=\"get.php?pathext=\'.$pathext.urlencode($filename).\'\">\'.$filename.\'</a>\';

    in get.php replace line
    $real = realpath($file); for
    $real = realpath($file) . \"/\" . $pathext;

  • 2004-11-10 09:23:04

    that did not work

    as well
    the problem persists

    http://150.217.101.11/ATutor/info.php

    any further suggestion is welcome

  • 2004-11-12 09:22:48

    don't work

    I conferm: none of these solutions works fine. With the modifications of Heenji the path of the course and the content directory are not retrevied. The solution of Leandro don't work: plus, in PHP the line
    [i]$real = realpath($file) . \"/\" . $pathext;[/i]
    is an error, must be probably
    [i]$real = realpath($file) . "/" . $pathext;[/i]

    I have this tedious error in a sistem Unix with Apache 2: in my local machine with Windows and Apache 2 there's not the error. I can't change the web server.

    any further suggestion is always welcome

  • 2004-12-06 16:56:26

    Problems with Images

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

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -
    If you are asking for help, provide lots of detail so problems can be reproduced.

    [purple]
    Things to describe:
    operating system - Windows NT
    version of ATutor -
    versions of php - 4.3.8
    version of mysq l - 3.23.49
    webserver & version - IIS/5.0
    [/purple]

    El error que esta presentando en mi aplicacion con las imagenes cargadas en los cursos, esta almacenadas en el servidor y pero despues del / (\"slash\") del get.php sigue derecho y no resuelve la direccion, sino que busca un directorio llamado get.php, que no encuentra, porque he echo pruebas y se que no toma el directorio.
    :(

  • 2005-01-01 14:16:42

    I could upload my image,but could not open it

    I found that the images were loaded onto the server as 700 and didn't display. I therefore changed the folder permission to 755 and the images displayed okay now.

  • 2005-01-01 14:18:41

    I could upload my image,but could not open it

    I found that the images were loaded onto the server as 700 and didn't display. I therefore changed the folder permission to 755 and the images displayed okay now.

  • 2005-01-05 16:26:48

    Navigation Problems

    I had a problem with this the other day and posted a comment in the forum. I found the patch to sort it. I think I know how it occurred in the first place. Usually I post new course info using the link to my courses at the top of the page and open the appropriate course which I want to update. I then click on the link in the blue content box and add the course material in the Add Content page.

    When the navigation went wrong, I already had a page open in my course and I clicked on the Add Content link at the right in the yellow box. Don't ask me what difference it makes but when I update content using the first method everything works okay but the second method causes the navigation to go wonky.

  • 2005-01-07 11:07:02

    Shell Access

    The 1.4.3 release is quickly approaching and we have still not been able to reproduce the get.php problem that breaks paths to images or files linked into content pages, on some systems.

    We need shell access to a machine that is experincing this problem.

    Is anyone able to give us temporary shell access to their system so we can investigate?

  • 2005-01-09 01:55:04

    Uploaded File Viewing Problem

    This might be an Apache 2 issue. Try adding 'AcceptPathInfo on' to httpd.conf or in an .htaccess file within your ATutor directory.

  • 2005-01-10 11:59:02

    Apache 2

    for Apache 2:
    [quote]Dan Fitzpatrick notes that he uses PATH_INFO for many PHP scripts like /index.php/go/do/something (where parameters are passed to PHP as "fake" subdirectories). He received a 404 Not Found errors with Apache 2 but not Apache 1.3.27. He had to add "AcceptPathInfo On" to file httpd.conf. For details, see http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo [/quote]
    http://dan.drydog.com/apache2php.html

    possible fix for Apache 2 would be to create a .htaccess file in the ATutor directory with the contents:
    <IfDefine APACHE2>
    AcceptPathInfo on
    </IfDefine>

  • 2005-01-10 12:11:19

    Apache 2

    This is also a known bug in Apache 2 which has been fixed in version 2.0.36

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8234

  • 2005-01-11 13:33:48

    Viewing image in demo test

    I am using the demo "Play Here Course" to get to know ATutor. I uploaded an image called "graph.gif" to the "images" folder in the file manager. I then created a test called "Manipulating Percentages" and added the graph image to the test by writing in the body of a question: <img src="images/graph.gif" height="324" width="410" alt="In 1989, the employees commission totaled $1000. In 1990, it increased to $2000. In 1991, it increased again, to $3000 dollars. In 1992, the employees commission decreased to $2000, and, in 1993, it decreased to $1000.">

    My problem is that the image does not show up when I preview the test. There is a gray box that has the correct proportions, but the image is not there. I viewed it from both the student's and the instructor's perspective, and neither one works. I have also tried viewing it in both Internet Explorer and Mozilla. Why can't I see this image??

    Thanks!

  • 2005-01-11 16:49:08

    See 1.4.3

    see
    http://www.atutor.ca/view/7/3409/1.html

  • 2008-09-22 15:14:35

    Re: get.php

    Hi, Heenji

    How do you fix that, could you tell more details,
    I can put images on mi lesson, please, how do you fix

    thanks

    [reply][b]In reply to:[/b]
    since the absolute path (right clicking the file in the file manager) of the images is

    http://elearning.med.unifi.it/atutor/get.php/img/originale.bmp


    shall I modify the get.php as henji sugge...
    [op]forums/view.php?fid=7;pid=2861;page=1#2974[/op][/reply]