ATutor

Learning Management Tools







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


configincphp edit


  • 2004-08-01 20:46:03

    configincphp edit

    I edited config.inc.php to change the course name and re uploaded it. But I did it in Wordpad which added \par and \tab tags mostly to ends of lines. Atutor asked me to install ... I didnt.

    I recopied config.inc.php into a proper editor, deleted the tags and also stuff in the first lines about being an rtf file! so it had the standard php start line.

    However now I get

    }

    An error occurred. Output sent before it should have. Please correct the above error(s).

    --------------------------------------------------------------------------------


    Error initializing session. Please varify that session.save_path is correctly set in your php.ini file and the directory exists.

    --------------------------------------------------------------------------------

  • 2004-08-02 04:59:56

    FIXED!

    Had another go this morning after hours at it last night.
    Assumed the odd } bracket in the error message was in the config file somewhere it shouldn't be and of course it was. It had got stuck on the bottom line. I carefully checked other php files to see if they had { brackets on the bottom as I thought they didn't, and yes they didn't. So deleted it.

    That then put me back to being told it wasn't installed!

    Double checked again nothing!
    My direct onsite editing still not working so I'd uploaded by ftp renamed file & done permissions.
    Found I'd named the poor thing config,inc,php ... so the comma before the php ending was the culprit.

    Thought I'd write this in so new folk even less novice than I am with php can see how this can happen.

  • 2004-08-02 10:23:04

    plain text only

    ATutor files need to be edited in a plain text editor. Other editors have a high probability of breaking scripts because they often add their own non text characters. The most common problem is editors that add an invisible character at the end of a file, which inevitably breaks the script, and is often difficult to discover unless you know what you're looking for.

    Always delete any spaces that may get inserted by an editor follow the closing ?> of a modified php script.