Warning: Cannot modify header information erorr leading into parse/syntax errors
-
This is the error I keep receiving:
Warning: Cannot modify header information – headers already sent by (output started at /home/alur007/public_html/wp-content/themes/Unicorn/options.php:2) in /home/alur007/public_html/wp-includes/pluggable.php on line 881
After reading through the troubleshooting guides in the WordPress codex @ How Do I Solve The Headers Already Sent Warning Problem, it appears my error is on line 2 of the options.php.
When I get there and do as the link above describes, I then receive this error:
Parse error: syntax error, unexpected ‘<‘ in /home/alur007/public_html/wp-content/themes/Unicorn/options.php:2
The beginning of the code found in this area is:
<!--CSS Options--> <script> <style type="text/css" media="screen"> a:hover,.sf-menu li.current-menu-item a, .sf-menu li a:hover, .widget_calendar table#wp-calendar>tbody>tr>td>a, .widget_calendar tfoot>tr>td#prev a,.widget_calendar tfoot>tr>td#next a, .comment-post-title, .footer-widget a:hover, .credits a:hover , .footer-widget.widget_calendar tfoot>tr>td#prev a,.widget_calendar tfoot>tr>td#next a, .half-meta .half-meta-time .day,.half-meta .half-meta-time .year,.half-meta .half-meta-time .month, .caption-time .day, .flex-caption h3 a:hover, form.nd_form p a:hover.forgotten, span.reedwan-following-info:hover { color:<?php echo '#'.get_option('reedwan_generalcolor'); ?>; } .sf-menu li a:hover, .sf-menu li.current-menu-item a{ border-bottom-color:<?php echo '#'.get_option('reedwan_generalcolor'); ?>; } ::-moz-selection {background:<?php echo '#'.get_option('reedwan_generalcolor'); ?>;} ::selection {background:<?php echo '#'.get_option('reedwan_generalcolor'); ?>;}
Obviously, this error is an issue with my theme. I just purchased it and installed it today, and seem to be the only person who has had this issue with it. When I revert back to my old theme I have no issues, but I would like to figure this out so that the money is not wasted.
Any help would be appreciated.
- The topic ‘Warning: Cannot modify header information erorr leading into parse/syntax errors’ is closed to new replies.