kala-tamin Wordpress Theme development: Getting Undefined index error


Wordpress Theme development: Getting Undefined index error



hello I am a wordpress theme developer. i created a theme which works fine in WP_DEBUG=False but gets undefined index error when I set WP_DEBUG=True

My theme has an options page, whenever i click on save i get these errors:

Notice: Undefined index: ang_temp in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php  on line 147  Notice: Undefined index: ang_breadcrumbs in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Notice: Undefined index: ang_hide_social in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Notice: Undefined index: ang_hide_tw in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Notice: Undefined index: ang_hide_fb in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Notice: Undefined index: ang_hide_ms in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Notice: Undefined index: ang_hide_rss in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 147  Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php:147) in C:\xampp\htdocs\wordpress\wp-content\themes\Angelia\functions.php on line 156 

Here is my themes functions.php I don't know what I am doing wrong. I have very very little knowledge about php. Hope guys with php knowledge or wordpress theme development knowledge can help.


Data Export

1:

Wordpress cron problems
146. most stable / useful way to blog in Magentoforeach ($options as $value) { 147. Wordpress 3.0 Register/Login Menu Button  update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } 
The bit of code which is producing this error (above) is not checking whether $_REQUEST[ $value['id'] ] exists. Get all posts starting with an alphabet in wordpressThe errors you are receive ting suggest this it doesn't (you will only receive this notice with full error checking enabled). Wordpress - Allow a userclass to save a page as a draft - but not publish w/o admin approvalOther parts of your code are checking the existence of this variable before using it (so they are OK) and would suggest you should be doing the same here.. WordPress 3.0.1 Install on MS IIS v6 Web Server You say your theme works OK when debug is off, so this would suggest this you only need to check the existence of this variable before using it. Paginating wordpress custom queriesSomething like (replacing the 2 lines above):.
foreach ($options as $value) {   if (isset($_REQUEST[ $value['id'] ])) {     update_option( $value['id'], $_REQUEST[ $value['id'] ] );   } } 
However, although this should prevent your 'errors' (they are only notices really), I'm unfamiliar with wordpress themes so can't say for sure whether this is expected behaviour or whether there is any thing underlying which is at fault..


92 out of 100 based on 47 user ratings 802 reviews