php notice help
Posted: Fri Feb 22, 2019 5:04 am
Hey there....I'm hoping someone can help with this error...it's a php notice: undefined index on lines..these are the lines
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_content_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 22
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 38
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 38
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_background_hover in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 40
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_input_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 42
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_block_heading_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 52
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_block_heading_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 54
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_cart_heading_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 60
Now when I go into the tmdstyle.php this is what is on those lines
22- echo "#quick-checkout #content{background:".$data['tmdqc_content_background'].";padding:15px; }";
38- echo "#quick-checkout .btn-danger{color:".$data['tmdqc_danger_button_color']."; background:".$data['tmdqc_danger_button_background']."!important; border-color:".$data['tmdcheckout_tabborder']."!important;}";
40- echo "#quick-checkout .btn-danger:hover{background:".$data['tmdqc_danger_button_background_hover'].";}";
42- echo "#quick-checkout .modal-content .form-control{color:".$data['tmdqc_input_color'].";border:1px solid ".$data['tmdcheckout_tabborder']."}";
52- echo ".checkator_source:checked+.checkator:after {background-color:".$data['tmdqc_block_heading_background'].";}";
54- echo ".checkator_source:focus+.checkator {border: 2px solid ".$data['tmdqc_block_heading_background'].";}";
60- echo "#typeaccount a{cursor:pointer;color:".$data['tmdqc_cart_heading_color'].";}";
I hope someone can help as I am getting internal server error and these are the errors that come up in the logs....Thanks in advance
CJS DJS
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_content_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 22
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 38
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 38
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_danger_button_background_hover in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 40
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_input_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 42
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_block_heading_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 52
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_block_heading_background in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 54
2019-02-21 15:38:30 - PHP Notice: Undefined index: tmdqc_cart_heading_color in /home/chrisbar/cjsdjs.biz/catalog/controller/tmdcheckout/tmdstyle.php on line 60
Now when I go into the tmdstyle.php this is what is on those lines
22- echo "#quick-checkout #content{background:".$data['tmdqc_content_background'].";padding:15px; }";
38- echo "#quick-checkout .btn-danger{color:".$data['tmdqc_danger_button_color']."; background:".$data['tmdqc_danger_button_background']."!important; border-color:".$data['tmdcheckout_tabborder']."!important;}";
40- echo "#quick-checkout .btn-danger:hover{background:".$data['tmdqc_danger_button_background_hover'].";}";
42- echo "#quick-checkout .modal-content .form-control{color:".$data['tmdqc_input_color'].";border:1px solid ".$data['tmdcheckout_tabborder']."}";
52- echo ".checkator_source:checked+.checkator:after {background-color:".$data['tmdqc_block_heading_background'].";}";
54- echo ".checkator_source:focus+.checkator {border: 2px solid ".$data['tmdqc_block_heading_background'].";}";
60- echo "#typeaccount a{cursor:pointer;color:".$data['tmdqc_cart_heading_color'].";}";
I hope someone can help as I am getting internal server error and these are the errors that come up in the logs....Thanks in advance
CJS DJS