Header Error After Submitting Form
This is some progress about WPThemestudio X2 project.
I admit it is challenging for me to complete this project, as I am doing it part time and I’m still lack of knowledge. The programming was intellectually challenging but after I manage to find the solutions, I am very satisfied. It’s like I’m achieving something new in life.
- WPTS X2 Admin Page
- WPTS X2 Sub Menu
I manage to add WPTS X2 sub menu under the Appearance tab.
I also happen to make the admin option page and successfully show the form.
Please click the image to view the highest resolution image. I put thumbnail version in this post because the highest resolution do not fit the width of this post page.
The menu above is showing stylesheet selector for WPTS X2. I use scandir and readdir php function to scan the directory of wptsx2-theme to look for css files inside that folder and then display the file name in the loop. Then the user have to type the css file name in the text area. Actually I am trying to use <select><option> form style. But I cannot save the value.
My coding still in new age.
So I manage to save the value and call them again to use them in my hooks. But there again I stuck. Whenever I click the submit button, I will get this error.
Warning: Cannot modify header information - headers already sent by (output started at C:\xampplite\htdocs\wordpress\wp-content\themes\wpthemestudiox2\wptsx2-includes\colour-switcher.php:12) inC:\xampplite\htdocs\wordpress\wp-includes\pluggable.php on line 865
I do not know where I’ve done wrong.
I’ve search the internet and WordPress support forum itself, but fail to find any solution. The suggested solution is all talking about white space between the ?> and <? which I believe I do not have that issue. But right now, I am posting at several webmaster forum and hope to get responds from them to fix this issue.
At the mean time, I am updating my other blog.
Thank you for reading.
Regards,
Pangeran Wiguan



