Menu

Access Denied on all edit attempts (2.51.3)

Help
Chris Knox
2003-10-08
2003-10-17
1 2 > >> (Page 1 of 2)
  • Chris Knox

    Chris Knox - 2003-10-08

    First: Thanks for the great work!

    I just downloaded & installed phpGedView ver. 2.51.3. This is a fresh install on a Mandrake box running PHP 4.3.1 and MySQL 4.0.11. I started out using index mode, but was having a problem mentioned earlier in the forums (0 byte returns). I deleted everything, re-installed, and used MySQL mode. That fixed the 0 byte problem, but then I couldn't set the user can edit setting to true. Deleting the gedcom, renaming it w/o spaces, and reuploading fixed this. I set the user to allow editing successfully.  Now, however, I get the access_denied message whenever I try to edit a record.

    Enable Online Editing is set to "Yes" in global and gedcom configurations.

    User can administer and user can edit are both checked on the user admin section. I have logged out & back in, but that didn't help.

    If I comment out the access check at line 89 in gdbi_interface.php, the edit popup windows displays with several errors starting with:

    Notice: Undefined variable: type in /var/www/html/family/gdbi_interface.php on line 96

    My php skills are OK, but not great. If you can't replicate this error, and want me to try some other stuff, email me at nospam at knoxdigital period com.

     
    • Jon

      Jon - 2003-10-09

      > Thanks for the great work!

      I second that!  What a beautiful, well-thought-out piece of work.  Thanks!

      > I get the access_denied message

      I am having the same exact problem:

      "Access Denied
      You do not have access to this resource."

      Just thought I'd let you know that it's not just you. :)

      Jon

       
      • Anonymous

        Anonymous - 2003-10-09

        Yes, I have the same problem also. Tonight, I will check out and see if I can find the problem. Us there anybody who does not have this problem with 2.51.3?

        Roland

         
    • Arne Eckmann

      Arne Eckmann - 2003-10-09

      Hi Roland

      You ask if anybody out here doesn't have the problem in question wit ver. 2.51.3.

      I can say that apparently I don't have this problem.

      best regard

      Arne

       
    • Anonymous

      Anonymous - 2003-10-09

      Hmm, it will be difficult to troubleshoot this one. Today I have no problems either editing records. I have not used my computer in the last 24 hours. Might that be causing some timeouts on variables/sessions?

      Jon and Chris, do you still have the problem?

      Roland

       
      • Jon

        Jon - 2003-10-09

        Yes, I still have the problem.  I also tried creating another user with admin and edit rights, and that didn't work, either.

        I noticed that when I add a new user, beside the "User can edit" checkbox field is displayed the name of my gedcom file "SomeNAME.ged"
        However, when I *edit* a user, the gedcom file is displayed as "SomeNAME_ged" (with an underscore, rather than a dot).

        I don't know if it is supposed to do that, or what.  Perhaps it may be some symtom of the problem.

        What I do know is I wish that the gremlins that seem to be fixing everyone else's editing problems would visit me soon.  My site is still broken.  :-)

        Thanks!
        Jon

         
    • Boudewijn Sjouke

      No problems. Editing works as it should.
      Boudewijn

       
    • Anonymous

      Anonymous - 2003-10-14

      Jon and Chris,

      I know it has been a couple of days and wondering if the Gremlins did visit you also? ;)

      If not, please let me know, so we can start solving the problem.

      The problem you described with the underscore also happens here with giving me an error and not showing the screen right. That is another problem. I do not think it will have a relation with the not having rights to edit a record.

      Roland

       
      • Jon

        Jon - 2003-10-15

        Roland,

        Thanks so much for checking!

        I tried posting an long, descriptive update earlier from home, but my worthless ISP apparently thinks that if people are not busily clicking away on web links, then they must not be using the internet, so disconnect them.  So when I hit the "Post comment" button, everything went bye-bye.  grrr

        Anyway, no Gremlins, yet.

        However, I have discovered something significant:
        I was going to show the problem to my PHP coder friend.  The computer I used to show him the problem was using Internet Explorer for the browser.  So I navigated to my site and tada!  it worked without a problem.
        Hmmm...  So, I tried again on my computer (running a Linux distribution with Mozilla as the browser) and it gave me the 'access denied' error.  I tried it using MozillaFirebird with the same result.  I went to my friend's Windows computer and tried it using Mozilla for Windows, and got the same 'access denied' error.
        I also tried playing around with all the preferences in Mozilla that might have anything to do with it, with no luck.

        So, I am assuming it is a browser incompatibility issue.  I don't really have a good idea where to start tracking it down.   

        I run Linux on my computer, so that makes it kind of difficult to just use Internet Explorer as a temporary fix (not that I really want to use IE anyway :-).

        If I discover anything else relevant, I will post it.

        Sooner...  :)

        I was just fuming (pouting, whining, whatever) about my ISP, else I would have posted this sooner.  :^)

        Thanks a lot!
        Jon

         
    • Arne Eckmann

      Arne Eckmann - 2003-10-16

      Hi Jon and Roland

      Being a W2K MCP and all, I would never dream of seriously using any other browser than M$ IE6.

      But if you promise never to tell Bill, I can tell, that I also have  a - non-installed - copy of MozillaFirebird on one of my W2KPro platforms, and using this non-installed MozillaFirebird I also was denied access by the GDBI-Interface 1.0a.

      best regard
      Arne

       
      • Anonymous

        Anonymous - 2003-10-16

        Arne,

        I can tell you as an almost MCSE person (still have to do a few exams) that I also use a lot of non MS Utils :)

        As for my browser, I run Avant Browser which is actually nothing more than a skin around Internet Explorer but I do notice differences sometimes when displaying with the standard IE6 or Avant Browser. Anyway, the edit problem did not occur here anymore.

        It seems that people using mozilla have the edit problem. Tonight I will install Mozilla and see what happens. Eventually, it should not matter which browser you have ;)

        All this points to the way how variables are kept. When we get the access denied error, it is really saying we are not authorized to edit. Somehow it does remember that we are logged in or else we can't see the edit link. Hmmm, nasty one this is.

        Greetz,

        Roland

        P.s. Jon, I have once experienced the same problem as you that I lost a long message (not due to my ISP but sourceforge) that I now press CTRL-A, CTRL-C and then hit the post comment. If anything goes wrong, I still have the text on the clipboard. Just to be safe ;)

         
    • John T

      John T - 2003-10-16

      Arne,

      Someday you'll learn the folks at Opera Software (you know the SELLouts), have a product that stands a good chance at eating up a small market.  You know for those late night hack/crack sites that we NEVER goto!

      Well I get no error when editing, just the same index errors at every turn, as I see on my M$ IE6x

      Must be some mozilla stay  to the standard, don't stray and accept sloppy html coding.

      nuf said, Try Opera I havn't had one error.

      John

       
    • Arne Eckmann

      Arne Eckmann - 2003-10-16

      Hi Roland

      You said:
      > When we get the access denied error, it is really
      > saying we are not authorized to edit.

      It looks to me as if we are denied access, if any of the following 3 different conditions are met:

      1. (!userCanEdit(getUserName())
      2. (!$disp)
      3. (!$ALLOW_EDIT_GEDCOM)

      best regard

      Arne

       
    • Arne Eckmann

      Arne Eckmann - 2003-10-16

      Hi John Trainer

      Yes, a few years back I learned that Opera is a damn good browser!

      However, I used to work as a network administrator in a tiny (US owned) factory here in tiny Denmark, and being US owned meant that policies and such came from far away (St. Louis).

      Now, since the policy dictated M$, I decided that using M$ at home would put me in better situation in regard to anticipating the nature of the problems encountered by my users ;-)

      Now, the reason for the non-installed MozillaFirebird is, that my son insisted, I needed to have Mozilla installed at my computer - as a sort of compromise between conflicting interests I choosed to download MozillaFirebird (because it can be used in it's non-installed state).

      Normally I never use the MozillaFirebird, but since Jon mentioned his problem was encountered with various Mozillas, I was able to confirm his findings using the MozillaFirebird ;-)

      At this time I'll stick to M$ IE6, but I agree that Opera is a damn good browser ;-)

      best regard

      Arne

       
    • KosherJava

      KosherJava - 2003-10-16

      I have used opera, NS 4, firebird and IE (and Lynx just to see what would happen with a text browser) with phpGedView. I do not edit online so have not experienced the problems mentioned. One of the reasons I have tested so many browsers is to test out the Hebrew date support I added to phpGedView.
      In terms of the way phpGedView renders in the browsers here is my list from best to last.

      1) IE (5 & 6)
      2) Firebird / mozilla (some box size issues but really works well)
      3) Opera / NS 4 (both had rendering problems with Hebrew Opera totally messing up the layout even in the latest version that offers rigth to left rendering)
      4) Lynx (forget about it :) )

      I did not test Opera with out Hebrew dates but it probably works very well. In the past it has been my main browser, but has been replaced with Mozilla/Firebird.

       
    • Olivier

      Olivier - 2003-10-16

      the problem seem to come from the $disp variable...
      when I remove the variable in the test
      if ((!userCanEdit(getUserName()))|| $disp||(!$ALLOW_EDIT_GEDCOM))

      it works...

      Olivier

       
    • Olivier

      Olivier - 2003-10-16

      in fact the variable $pid in
      if (!empty($pid)){

      is empty, thus $disp is always set at 'false' !

      and we never can modify data...

      Olivier

       
    • John Finlay

      John Finlay - 2003-10-16

      Yes, the problem is that the Mozilla browser doesn't like the & in the javascript edit functions.  It only likes the &.

      If you edit the functions_print.php file and change the & to & in the javascript functions (edit_record, delete_record, add_record) of the print_header function it should work.

      I am frantically working to have a beta of version 2.52 out later today.  This verison will fix this bug so you can also wait for version 2.52 to come out.

      --John

       
    • KosherJava

      KosherJava - 2003-10-16

      So much for my xhtml fixes :(
      I am putting all xhtml work on hold till we can isolate all such bugs.
      And here I was thinking that Mozilla was the standards bearer

       
    • Olivier

      Olivier - 2003-10-16

      it doesn't works for me...

      I 'm using Mozilla Firebird...
      I've changed the & to & in the 3 functions...

      Olivier

       
    • Olivier

      Olivier - 2003-10-16

      here is the result of some print... (gdbi_interface.php file )

      disp:
      pid: I408
      if (!empty(pid))
      pid: not empty
      type INDI
      displayDetailsBy(pid): 1

      ---
      getUserName(): Olivier
      disp: 1
      ALLOW_EDIT: 1
      if ((!userCanEdit(getUserName()))||disp||(!ALLOW_EDIT_GEDCOM))
      Access Denied
      You do not have access to this resource.

      Olivier

       
    • John Finlay

      John Finlay - 2003-10-16

      what do you get if you print out the value of userCanEdit(getUserName()) ?

      --John

       
    • Olivier

      Olivier - 2003-10-16

      here is the new print...
      userCanEdit(getUserName()): 1

      Olivier

      disp:
      pid: I411
      if (!empty(pid))
      pid: not empty
      type INDI
      displayDetailsBy(pid): 1

      ---
      getUserName(): Olivier
      disp: 1
      1: 1
      userCanEdit(getUserName()): 1
      if ((!userCanEdit(getUserName()))||disp||(!ALLOW_EDIT_GEDCOM))
      Access Denied
      You do not have access to this resource.

       
    • John Finlay

      John Finlay - 2003-10-16

      The "disp" in if ((!userCanEdit(getUserName()))||disp||(!ALLOW_EDIT_GEDCOM))

      should have a $ in front of it

      This is what the line should look like:
      if ((!userCanEdit(getUserName()))||(!$disp)||(!$ALLOW_EDIT_GEDCOM)) {

      --John

       
    • Olivier

      Olivier - 2003-10-16

      aargh...

      the problem was not in the $ ...
      I remove it for the print...

      but I forgot the negation operator : !

      It seems to work now...

      Sorry and thanks...

      Olivier

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.