[SOLVED] BUG? HELP! <Guest>, guest user permissions i |
7/3/2010 11:49:27 AM |
PHPRunner General questions | |
J
jansgroup author
I thought i was going crazy and this guest level issue keeps occurring, i looked into the forums and found a few similar issues, but not exactly the same. 1 -- I attempted to turn off the <Guest> level access, by going back to Security Tab > Advanced Security Settings and unchecking the Add "Login as guest" with readonly access.i rebuilt the project and loaded it, then went back and turned it ON again by going to Security Tab > Advanced Security Settings and checking the Add "Login as guest" with readonly access. 2 -- SO, I completely cleared the directory on the web server where all phprunner files had been installed, and reinstalled all phprunner files again (clean) ... but same issue remained!
|
|
A
|
ann 7/5/2010 |
Hi, //check if logged in
if (!@$_SESSION["UserID"]) |
J
|
jansgroup author 7/5/2010 |
Hi, open generated TableName_add.php file, find this line: //check if logged in
if (!@$_SESSION["UserID"])
2 why is this even necessary? why isnt phprunner correctly building these GUEST pages.
|
A
|
ann 7/5/2010 |
Hi, |
J
|
jansgroup author 7/5/2010 |
Hi, open generated PLF0001_add.php file in any text editor and apply changes. This error happens because $_SESSION["UserID"] is filled after login page only. So this variable is empty if you just open add page directly (without login page).
|
A
|
ann 7/6/2010 |
Hi, |
J
|
jansgroup author 7/7/2010 |
Hi, it's difficult to tell you what's wrong without seeing all your files. Please publish your application to Demo Account sending URL. 'Demo Account' button can be found on the last screen ('Finished') in the program.
|
J
|
jansgroup author 7/8/2010 |
Thank you for all your help! Per my support email discussion, the following appears to be the cause and fix. Cause of issue: I had placed a redirect in Global Events > After successful login, which allowed in-house staff members to automatically be directed to a specific page (their LEADS page) at login. This appeared to have adversely affected the <Guest> level as well, causing permission errors on the public forms, which where Custom Views of the Leads table. Fix: So this is what i was instructed to do, open "After successful login" event on the Events tab there i found something like the following: --------------------- //** Redirect to another page **** header("Location: Leads_list.php?"); exit(); --------------------- I was instructed to replace it with this code: --------------------- //** Redirect to another page **** if ($_SESSION["UserID"] && $_SESSION["UserID"]!="Guest") { header("Location: Leads_list.php?"); exit(); } --------------------- Then I was instructed to re-build the project and apply changes previously stated before of locate "//check if logged in" in generated "..._add.php files". However i choose to do only the replacement of code in the Global Events > After successful login area, and leave the generated "..._add.php files" untouched. And the issue appears to be corrected and working without an issue, tested in multiple browsers, clearing cache, etc. No issues. - I have one last open question regarding the TRUE NECESSITY of actually manually adjusting the generated "..._add.php files", as this is an extra step i wish to avoid if possible, and after testing, it appears it is avoidable and unnecessary. Besides the open question, i would consider this Issue Resolved. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51074&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
|