Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(10 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Support

config.inc.php edit


You must be signed-in to post.

AuthorSubject
  Page: 1
Shanforest
Subject: config.inc.php editQuote this post in your reply
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.

--------------------------------------------------------------------------------
Posted: 2004-08-01 20:46:03
Shanforest
Subject: FIXED!Quote this post in your reply
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.
Posted: 2004-08-02 04:59:56
greg

Avatar for greg
Subject: plain text onlyQuote this post in your reply
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.
Posted: 2004-08-02 10:23:04
 Page: 1

You must be signed-in to post.