Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Aug 27, 2001, 08:51 AM
peregrine peregrine is offline
New Member
 
Member Since: Aug 2001
Posts: 2
Not sure if anyone has any experience with this, but I'll give it a shot...

The enviornment: Windows 2000 professional, all the service packs, etc etc. Apache for windows 1.3.20, active state perl (latest build, whatever that may be), all that fun stuff. I have confirmed and tested that perl is working fine (within and outside of apache), so I'm sure that's a non-issue. I've also checked and double checked the vars in oj.cfg, attempted different paths (using drive letters, not using them, blah blah), and they all seem to be working correctly. (Usually it's very easy to tell if one isn't, typically the script won't run at all, or will spit out a blatant error message in a hurry.

The problem: oj.cgi runs fine at first, accepts new user login, adds new user, also remembers accounts and usernames/passwords and such.

New entry form displays fine, previews correctly, however when pressing 'add' the index file does not get created (if non-existant) or updated (if you put one in the /oj/ directory). However, the separate entry file in 'stories' does get created. This leads me to believe it's not a permission issue... (in order to further test that, I set permissions for 'everyone' to full access in the entire web directory for a time, and the same problems still occured.)

Editing seems to work fine.

Also, after 'adding' an entry and pressing 'back to open journal console' I'm presented with:

error: ok
Back to OpenJournal

And after clicking again it drops me back to the login screen. This last little tidbit occurs a lot whenever I try to add a new entry from various screens (the edit one) and similar.

Lastly, when attempting to archive I'm presented with:

error: Error reading from the file /twinight/oj/story/index.html () - Please check your permissions.

Again, I'm *fairly* certain this isn't permission based as there's plenty of editing and file creation going on already, and changing the permissions to full access didn't accomplish anything in the way of modifying the behavior of the script.

Though, I could just be going about changing permissions entirely wrong... I can't honestly claim to be an expert.

In short: I'm horribly, horribly confused, and there's a really good chance all of the above problems are either a) unavoidable on this platform or b) easily solved and I'm overlooking something obvious. I'm hoping for b!

DocJohn, regardless of whatever problems *I* may be having with this particular setup of OJ, it is an excellent script and I'm greatly looking forward being able to put it to use. I spent a lot of time searching around for something like this, and this is far and away the best in the field for simple, clean, modifiable 'journaling'. Thanks for putting the work into it!


advertisement
  #2  
Old Aug 29, 2001, 07:03 PM
DocJohn's Avatar
DocJohn DocJohn is online now
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

Very interesting... I can honestly say I don't know too many people running Apache on Win2K, but I've been thinking about it for a local server. Until I do, I can't be of much assistance.

What the program is complaining of is not being able to write to the file. You're right, its probably not a permissions problem, its probably a problem with finding the right file and directory. You might try changing the path... is "/twinight/" a home directory off of your HTML directory default? I think that's the problem... figuring out what that path should be should solve it.

John

__________________
Don't throw away your shot.
  #3  
Old Aug 30, 2001, 02:11 AM
peregrine peregrine is offline
New Member
 
Member Since: Aug 2001
Posts: 2
I thought that might have been the issue as well, tried some other things... however even with the paths hard-written in I still end up with:

error: Error reading from the file d:/twinight/oj/story/index.html () - Please check your permissions.

Which is the exact path to the file, heh. I'm pretty much out of my league and out of ideas. :\ What I can't get is why it won't modify/create the index, but will create the individual stories...

I'll try and corner a friend of mine who knows perl way better than I do to sit down and have a look at it, maybe he can come up with somethin... I'll pop by and say something if we work it out.

Thanks!

  #4  
Old Sep 29, 2001, 06:34 AM
Joe Joe is offline
New Member
 
Member Since: Sep 2001
Posts: 5
peregrine,
I'm hitting the same wall. Did you ever find a solution?

- Joe

  #5  
Old Sep 30, 2001, 10:05 AM
Joe Joe is offline
New Member
 
Member Since: Sep 2001
Posts: 5
Ok. This moring it seems to be working. The only change that I remember making was in the new_file subroutine.

it was:
open(NEWFILE,">$basedir/$mesgdir/$nfn\.$ext") || &error("Error writing file $basedir/$mesgdir/$nfn\.$ext - Please check your permissions. Sorry.");

it's now:
open(NEWFILE,">$basedir/$mesgdir/$nfn\.$ext") || &error("Error writing file $basedir/$mesgdir/$nfn\.$ext - Please check your permissions. Sorry.
$!");

Oh, here is a question, in the ojtemplates dir. should the files have an extension? I've got them in without an extension and with ".txt"

Either way, I'm really excited to have these apps going. Thanks for developing them.

Gratefully,
- Joe

  #6  
Old Nov 23, 2002, 12:29 AM
_TMA_Ping _TMA_Ping is offline
New Member
 
Member Since: Nov 2002
Posts: 1
I am having the same issues with the script. I keep getting an 'error: ok'. I have turned on debugging in apache, and it is saying that cp is an unrecognized command. I have tried getting copy to work but am new at this cgi thing. If anyone has any fixes to this problem or knows of how to use copy, please help me out, this is a great script, I have not found anything like it and don't want to scrap it only becouse I run win2k.

  #7  
Old Nov 26, 2002, 09:18 AM
DocJohn's Avatar
DocJohn DocJohn is online now
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

No, none of the files in the /ojtemplates/ sub-directory should have an extension. They should just be plain:

entry
index
article
datebar


__________________
Don't throw away your shot.
Reply
Views: 586

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running away Valis Post-traumatic Stress 7 Jun 14, 2006 08:38 AM
Help installing POD on Win2K cranbrook Community Feedback & Technical Support 0 Feb 06, 2002 09:53 AM


All times are GMT -5. The time now is 08:40 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.