ATutor

Learning Management Tools







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


Very strange situation


  • 2009-06-04 00:51:24

    Very strange situation

    Here's one for the advnaced users..... :)

    I use FileZilla as my FTP tool and normally use Notepad to do editing with. I made a couple edits to /ATutor/file_storage/index.php. After uploading the file, I could no longer download files because they were corrupted. However, I noticed that if I uploaded the same file (with edits) after working on it with Wordpad, then uploading with FileZilla, everything was fine.

    The contents of each file (the Wordpad one and the Notepad one) were identical. However, when I looked at the Notepad one with a binary viewer, I noticed a UTF-8 "Byte Order Mark" (three weird characters that I can't write here (an "i" thing, a double arrow to the right, and an upside down question mark)) at the beginning of the file, whereas there was not one on the Wordpad file. And it was this difference that was causing the corrupting of the files upon download.

    So here's kicker. This only has happened with this file, not others that I've edited.

    I've attached the file with the Byte Order Mark so you can see it if you have a binary viewer.

    Below are the specs for my ATutor installation. A gold star to whoever figures this one out. :D

    Things to describe:
    Operating system ATutor is installed on - Linux CentOS (is this what you're looking for?)
    Atutor version - 1.6.2
    Patch #s applied - Fully patched
    Atutor theme name - default
    PHP version - 5.2.2
    MySQL version - 5.1.30
    Webserver & version - Unsure. Host Gator is the webhost.
    Copies of error messages - None
    Changes to default settings - I've made some. Too much to list, but since it broke when my site was migrated, I don't think it's relevant.
    Web browser being used - IE7
    ...and anything else relevant -

  • 2009-06-04 09:21:06

    Re: Very strange situation

    You should not be using Notepad to edit code. It inserts foreign characters that break php code. Wordpad does not insert these characters, but still I suggest you find yourself a proper programmers text editor. There's many out there.

  • 2009-06-04 10:07:36

    Re: Very strange situation

    Ok. Any suggestions?

  • 2009-06-04 11:55:41

    Re: Very strange situation

    Anything but Notepad. We use Editplus on Windows, but you need to pay that.