Undefined index Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nadomt
    New Member
    • Jun 2008
    • 2

    Undefined index Error

    Happy friday to all!

    I am getting the below error when visiting my user filter page.

    i have gone to line 68, but cant see what the problem is...can anyone assist? advanced THANK YOU!

    Error: E_NOTICE
    URL: http://mysite.com/admin/users_filter.ph p
    File: /home1/mysite/public_html/admin/users_filter.ph p
    Line: 68
    Message: Undefined index: deny_words

    ~Nate
  • nadomt
    New Member
    • Jun 2008
    • 2

    #2
    forgot to add this

    foreach ($g['deny_words'] as $k2 => $v2)

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      The problem is 'deny_words' isn't an array index.

      Also, if you have gone to the given line, and now seen an error, how can we help if we can't see line n?

      ;]

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Hi, welcome to Bytes!

        The is technically not an error, but rather a notice.
        This particular notice is letting you know that the $g array does not have an element named 'deny_words'.

        Make sure that the $g array is in fact being initialized as it should, and that it is being filled in with the proper data.

        Post the relevant code here if you want us to take a look at it for you.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by Atli
          Hi, welcome to Bytes!

          The is technically not an error, but rather a notice.
          This particular notice is letting you know that the $g array does not have an element named 'deny_words'.

          Make sure that the $g array is in fact being initialized as it should, and that it is being filled in with the proper data.

          Post the relevant code here if you want us to take a look at it for you.
          Thanks for the elaboration there. At.

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Originally posted by markusn00b
            Thanks for the elaboration there. At.
            Didn't see you post before I wrote mine. Had to run of while I was writing so it took me some time :P

            Comment

            • Markus
              Recognized Expert Expert
              • Jun 2007
              • 6092

              #7
              Originally posted by Atli
              Didn't see you post before I wrote mine. Had to run of while I was writing so it took me some time :P
              I do that alot!

              Anyway, not to hijack the thread!

              OP, how's it comin along?

              Comment

              Working...