473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Undefined index Error

2
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.php
File: /home1/mysite/public_html/admin/users_filter.php
Line: 68
Message: Undefined index: deny_words

~Nate
Jun 6 '08 #1
6 1618
nadomt
2
forgot to add this

foreach ($g['deny_words'] as $k2 => $v2)
Jun 6 '08 #2
Markus
6,050 Expert 4TB
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?

;]
Jun 6 '08 #3
Atli
5,058 Expert 4TB
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.
Jun 6 '08 #4
Markus
6,050 Expert 4TB
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.
Jun 6 '08 #5
Atli
5,058 Expert 4TB
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
Jun 6 '08 #6
Markus
6,050 Expert 4TB
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?
Jun 6 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: NotGiven | last post by:
I have display error ON and error reporting to E_ALL. I have a form that opens fine. When you submit it, all the fields that have nothing in them, for example an un-selected radio button, throw...
7
by: Coder Droid | last post by:
I decided to run some code with errors set to E_ALL, just to see what I would run across. It caught a few things, but 90% or better of the messages were of the 'undefined' kind: PHP Notice: ...
9
by: petermichaux | last post by:
Hi, I am curious about how php deals with the following situation where I use an undefined index into an array. PHP seems to be behaving exactly how I want it to but I want to make sure that it...
4
by: John Oliver | last post by:
PHP Notice: Undefined index: name in /home/www/reformcagunlaws.com/new.php on line 6 PHP Notice: Undefined index: address in /home/www/reformcagunlaws.com/new.php on line 7 PHP Notice: ...
3
cassbiz
by: cassbiz | last post by:
Here are the errors that are coming up in my error_log Notice: Undefined index: andatum in /zipcode.php on line 11 Notice: Undefined index: andatum in /zipcode.php on line 12 Notice: Undefined...
3
by: number1yan | last post by:
Can anyone help me, i am creating a website and am using a php script that recomends the website to other people. I keep getting the same error and can not work out why. The error is: Notice:...
15
by: bill | last post by:
I am trying to write clean code but keep having trouble deciding when to quote an array index and when not to. sometimes when I quote an array index inside of double quotes I get an error about...
3
by: sickboy | last post by:
$channels=$_GET; if (empty($channels)) { $channels='blank'; } changechannels($channels); $theatre=$_GET; if (empty($theatre)) { $theatre='splash'; } changetheatre($theatre); $info=$_GET; if...
9
by: simple12 | last post by:
Hello I have a script which have the facility of entering any code to some part of a webpage. I have some problems with it. When i put some code in the script then their is no error shown. When i...
5
by: Pseudonyme | last post by:
Dear All : Ever had an httpd error_log bigger than the httpd access log ? We are using Linux-Apache-Fedora-Httpd 2006 configuration. The PHP lines code that lead too tons of errors are : ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.