Well my previous post I had to hold back the tears, being attacked by wordpress bugs can be really horrible!
For the life of me I couldnt figure out what on earth the problem with my theme was, but there definitely WAS a problem, resulting in two main symptoms, let me tell you what they where (there could have been more but these where what effected me)
1 – Rss feed not working
Whatever was after the [CDATA] code in the php template for my rss feeds, was not getting parsed into valid xml. This resulted in a dirty looking rss feed which was nothing more than a txt file containing my links (maybe I will re-enact later and give you a screenie). Suffice it to say, no feed = no food! I was unhappy.
2 – My Download links where not working!
They where being rendered in the browser instead, and showing gobbledeegook txt and characters all throughout the page. This meant anyone who had bought anything from the website was confronted with a dissapointing page of gibberish when they came to download.
FIXED!!
Who wants to know what it was, and how easy it was to fix?
well I had read that my config.php file might have an error in it, but noone said anything about my functions.php file! After hours and hours of searching I stuck a search in google and one of the first results mentioned “Line breaks” in the functions.php file.
DING DING!
I didnt even bother opening the page, I couldnt believe I hadnt checked that, and yes indeedy there was about 3 extra line breaks at the end of my functions.php file.
Moral of the story?
Check your settings/config/functions file and make sure there is NO extra whitespace or line breaks!
Now back to our regularly scheduled programming!
This entry was posted in General, Wordpress Tips and Tricks. Bookmark the
permalink. Trackbacks are closed, but you can .
Bugs no more!
Well my previous post I had to hold back the tears, being attacked by wordpress bugs can be really horrible!
For the life of me I couldnt figure out what on earth the problem with my theme was, but there definitely WAS a problem, resulting in two main symptoms, let me tell you what they where (there could have been more but these where what effected me)
1 – Rss feed not working
Whatever was after the [CDATA] code in the php template for my rss feeds, was not getting parsed into valid xml. This resulted in a dirty looking rss feed which was nothing more than a txt file containing my links (maybe I will re-enact later and give you a screenie). Suffice it to say, no feed = no food! I was unhappy.
2 – My Download links where not working!
They where being rendered in the browser instead, and showing gobbledeegook txt and characters all throughout the page. This meant anyone who had bought anything from the website was confronted with a dissapointing page of gibberish when they came to download.
FIXED!!
Who wants to know what it was, and how easy it was to fix?
well I had read that my config.php file might have an error in it, but noone said anything about my functions.php file! After hours and hours of searching I stuck a search in google and one of the first results mentioned “Line breaks” in the functions.php file.
DING DING!
I didnt even bother opening the page, I couldnt believe I hadnt checked that, and yes indeedy there was about 3 extra line breaks at the end of my functions.php file.
Moral of the story?
Check your settings/config/functions file and make sure there is NO extra whitespace or line breaks!
Now back to our regularly scheduled programming!