![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
after I archieved, I have the choice to go back to the Openjournal console. Clicking on it, will give me a screen with: Error: OK and again a link to ' back to openjournal'
Anybody an suggestion? OJ V2 |
#2
|
|||
|
|||
I get the same error with my installation. Doesn't anybody else? Is anybody going to respond to this?
|
#3
|
|||
|
|||
I get this error as well even but in a different place::
After I've added an entry and received the "entry added" confirmation, when I click the "back to the open journal console" the "error: ok" message comes up. The only option available at that time is "Back to Open Journal" which takes me out to the login screen. |
#4
|
||||
|
||||
Hi,
I did a "search" within this forum (Software Support) using the phrase Error: OK, and it seems that there have been issues with this since August 2001. It doesn't seem to have been resolved. What server and operating system are you using to run open journal? You may want to see the other posts related to this issue, to see what others have tried. Sorry I can't be of further help. I have no experience with this software. splash |
#5
|
|||
|
|||
1) Change link(could not post full code due to this oj turning it into a real link) in oj.cfg to:
href=\"$script_link&auth=login\">back to the Openjournal console 2) Then add in main of oj.cgi: } elsif ($in{'auth'} eq "login") { &addform; |
#6
|
||||
|
||||
I think fourfun has hit the problem (and solution) on the head. I'll try to go back into the code to fix this for future downloads. Sorry.
__________________
Don't throw away your shot. |
#7
|
|||
|
|||
I think I understand the first part of the fix, line 334 or so of "oj.cfg" but can you tell me where EXACTLY to add the "elseif" line in "oj.cgi"?
Thanks PS: I "blindly" pasted the code here in my "oj.cgi" file to test it; <blockquote> split(/\./,$uid); } if ($userid) { $script_link = "$script_link&userid=$userid"; } if ($uid eq "default") { $db_userid = $uid; } else { ($db_userid) = $db_uid =~ /([A-Za-z0-9] )\.\d /; } if ($in{'edit'}) { $edit = $in{'edit'}; &verify; } elsif ($in{'auth'} eq "login") { &addform; </blockquote> It solves the "Error: OK" when going back to the console but now the entries are showing up twice in the oj index page. Any thoughts? I'm sure I probably pasted into the wrong place since I am sort of new to cgi scripts. Thanks again |
#8
|
|||
|
|||
Put in in here like this:
<blockquote><font size=1>In reply to:</font><hr> # ---------------------------------------------- # Main # ---------------------------------------------- sub main { $|++; # Flush Output Right Away $userid = $in{'username'}; $pw = $in{'password'}; $in{'userid'} = $userid; $in{'pw'} = $pw; &auth_cleanup; # Remove old session files. ($status, $uid) = &auth_check_password; # Authenticate User, get permissions and userid. $script_link = "$db_script_url?db=default&uid=$db_uid"; if ($status eq "ok") { if (length($userid) < 3) { ($userid, $trashy) = split(/\./,$uid); } if ($userid) { $script_link = "$script_link&userid=$userid"; } if ($uid eq "default") { $db_userid = $uid; } else { ($db_userid) = $db_uid =~ /([A-Za-z0-9]+)\.\d+/; } if ($in{'edit'}) { $edit = $in{'edit'}; &verify; } elsif ($in{'logoff'}) { &auth_logging('logged off') if ($auth_logging); $auth_logoff ? (print "Location: $auth_logoff\n\n") : (print "Location: $db_script_url\n\n"); } elsif ($in{'addentry'} =~ /Add/) { &get_variables; if ($blurbonly eq 0) { &new_file; } #if there is not just a blurb, write a new news file &main_page; &return_html("entry added"); #show user added entry } elsif ($in{'addentry'} =~ /Preview/) { &get_variables; &preview; } elsif ($in{'auth'} eq "adduser") { &print_new_auth; } elsif ($in{'login'}) { &addform; } else { &error($status); } # End Edit } elsif ($in{'auth'} eq "login") { &addform; } elsif ($in{'auth'} eq "newpass") { if ($in{'password'} eq $in{'verify'}) { &signup; } else { &print_new_auth("Sorry... Your passwords didn't match. Please try again."); } } elsif ($status eq "no login") { &print_auth($status); } else { &error($status); } exit(0); } # End Main <hr></blockquote> |
Reply |
|
![]() |
||||
Thread | Forum | |||
new member & seeing JVM error, IE error? | Community Feedback & Technical Support | |||
Error 500 | Community Feedback & Technical Support | |||
Help: POD 500 Error. | Community Feedback & Technical Support | |||
POD FAQ error | Community Feedback & Technical Support | |||
Another 500 Error | Community Feedback & Technical Support |