Tree Themetoolkit.php Fix

If you're new here, you may want to subscribe to our RSS feed. Thanks for visiting!

I had several complaints with the themetoolkit.php file error . It is a WP quirk that causes files with blank/white space to cause a “Header Already Sent� error.

I fixed the file that had the blank space and uploaded it both here and at [Support]. Please download the .txt file, change the file extension to .php, save, upload it to your theme folder (both Orange and Tree themes use the same file), and check to see if the error occurs.

Download the file here.

Leave a Comments | Trackback | RSS 2.0

  1. 1. hso | August 23, 2006 #

    ?> should not be at the top, it should be the very last code.

    Here’s is what you do, replace the themetoolkit.php file with a new file upload (the one in this post). If the problem persist, send me a list of all the active plugins on your site. Also, did you delete or change any codes? If nothing else works, delete ?> from the code.

  1. 2. Jasmine | August 27, 2006 #

    Hi, I uploaded all of the files for Tree and my blog looks really plain, just black and white with no theme. Can you help?

  1. 3. alter ego | August 27, 2006 #

    @ Jasmine,

    Your site looks alright to me. I see you are using the Tree theme and that is all there is to it. Its meant to be a minimalistic theme. You can look at other headsetoptions themes for vibrant options.

    Check http://www.headsetoptions.org/folio/

  1. 4. Thomas | September 7, 2006 #

    I like your design and would use it. my problem is the file themetoolkit.php. i did what you wrote in this post (uploading your new file), but the error occured again (excpect the line changed in line 1).
    code was not changed, active plugins are
    eventcalendar30falbumwp-contact-form
    so could you give me support to solve this problem.
    thanks a lot!
    thomas

  1. 5. Thomas | September 7, 2006 #

    reffering to my last comment I have to correct “(excpect the line changed in line 1)” in “(except the linenumber changed in line 1)”. so hopefully it’s better for understanding!
    as I browsed through my site i recognized the following (maybe helpfully to solve the problem) - some signs in the left upper corner. to have a look at you can visit the screenshot under http://www.pixxelatwork.de/wordpress/wp-content/2006/09/error-while-loading.tiff

  1. 6. hso | September 7, 2006 #

    @ Thomas

    Check the themetoolkit file and delete any lines/spaces in the first line, before < and ?

    BTW, what are those signs? where did you find it?

  1. 7. Thomas | September 12, 2006 #

    thank’s for your answer!

    these signs come up while loading the page (for about 1 second)
    I checked the file again, but could not find any signs befor

  1. 8. nick | September 12, 2006 #

    I don’t have any spaces at the beginning or end of the file and I’m still having the error.

  1. 9. hso | September 12, 2006 #

    @ nick

    You are not using the Tree theme! Besides, this is a WP problem - refer to the Codex for details on troubleshooting your site: CODEX

     

  1. 10. nick | September 12, 2006 #

    No, I’m not using the Tree theme on my main blog. I was using it on another blog, which I didn’t link here. The point is that the fix you listed for the file didn’t work for me. I looked at the WP Codex, but the error only occurs with your theme, not with any others. My wp-config.php file has no spaces or garbage, so this it does not appear to be a WP problem.

  1. 11. hso | September 12, 2006 #

    @ nick

    Gee nick, it must be my theme then. No wonder only seven hundred people are using it :-)

  1. 12. nick | September 13, 2006 #

    No need to be a jerk. I was just trying to help you out. Obviously other people had a problem with this, or this page wouldn’t exist. The WordPress fix you pointed to didn’t work for me, and none of my other themes have any problems with this, so that was the only logical conclusion I could draw.

    The easiest fix? I just won’t use the theme. Thanks for all the help.

  1. 13. hso | September 13, 2006 #

    @ nick

    You are welcome.

  1. 14. silvia | September 15, 2006 #

    hello
    i’m using the template and looks gorgeous, but i would like to change the posting date. now it’s in the top of the post and would like it to have it down the post… how could i do that??
    thanx!

  1. 15. hso | September 15, 2006 #

    @ Silvia

    Open index.php and look for this line code:

    < ? p h p hbPost Date() ? >Move it below the tag for content, which starts with < ? php the_content

    That should do it!

  1. 16. Hendrik | October 5, 2006 #

    I’m sad to say that the error stays after I have replaced the file.
    I’m still getting following error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/force/public_html/cooking/wp-content/themes/tree/themetoolkit.php:1) in /home/force/public_html/cooking/wp-admin/inline-uploading.php on line 3

    Warning: Cannot modify header information - headers already sent by (output started at /home/force/public_html/cooking/wp-content/themes/tree/themetoolkit.php:1) in /home/force/public_html/cooking/wp-includes/pluggable-functions.php on line 272

    If I change to an other theme I don’t get any errors.

    Have you got a clue what is wrong. I really like your theme and would find it a pitty I can’t use it because it shows errors.

    Thanks for all your work!
    A fan

  1. 17. hso | October 5, 2006 #

    @ Hendrik

    Downloading the file will only solve the first part of your error that occurs in the themetoolkit.php file.

    For the second part (pluggable-functions.php on line 272) you will need to follow instruction in WP support and make the necessary change.

    You are right, this will affect only certain themes, unfortunately this is one of em.

  1. 18. ismael | October 12, 2006 #

    Hello Hso!

    I’ve same problem who thomas

    I’ve some signs in the left upper corner.

    This is the sign
    http://www.pixxelatwork.de/wordpress/wp-content/2006/09/error-while-loading.tiff

    how i can delete?

    Thank you!!!

  1. 19. hso | October 12, 2006 #

    @ Ismael

    Did you try the fix in this post? I am not sure what that sign is but I will have to dig through the file again and see what it is.

  1. 20. Ismael | October 13, 2006 #

    @HSO

    Yes, i changed themetoolkit.php, but the problem persist.

    Sorry for my bad english, but my first lenguage is spanish!!!

    Thank you!

  1. 21. hso | October 13, 2006 #

    @ Ismael

    Send me your site URL please.

  1. 22. Ismael | October 14, 2006 #

    @ HSO

    Sorry but my site in this moment is in my pc only

    I can see that in the code (http://localhost)


    

    Página siguiente »

  1. 23. Joey | October 30, 2006 #

    Hi,

    I really like the Tree theme and hope that I can use it. However, i am having the same problem with the others.

    Warning: Cannot modify header information - headers already sent by (output started at /home/selfdeve/public_html/wp-content/themes/tree/themetoolkit.php:1) in /home/selfdeve/public_html/wp-includes/pluggable-functions.php on line 272

    I have check my wp-config as well. No problems. Would you be able to check and advise what’s the problem?

    Thanks

  1. 24. hso | October 31, 2006 #

    @ Joey

    Did you check the file at:

    /wp-includes/pluggable-functions.php/

    Once you replace the themetoolkit.php file you should be good to go, if not check the wp-includes file. Also, if you use notepad to open the php files, you wil lhav eto be twice as careful while editing it, for somereason notepad adds three white lines below the files, so watch out.

  1. 25. hso | November 1, 2006 #

    @ Peter

    Did you also try fixing the WP file issue (pluggable-functions.php) by following instruction from the codex (link in the post above)?

  1. 26. Jessica Jorge | November 6, 2006 #

    Thanks for the fix….it worked great!!!

  1. 27. missa | November 10, 2006 #

    i’m getting the error as well, the toolkit error and lots of “header already sent” messages when trying to save in admin… i uploaded the new version of the toolkit file and checked for whitespaces in a bunch of files… still a problem

  1. 28. hso | November 11, 2006 #

    @ missa
    Check link below, download and please do let me know if this version works better.

    http://www.headsetoptions.org/2006/11/10/announcement-orange-v2-and-tree-v2/

  1. 29. Sa | November 25, 2006 #

    Tried replacing the TTK.php file with the new one, does not work.
    Tried removing the ?> at the end - does not work.

    Still get this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/justify/public_html/blog/wordpress/wp-content/themes/tree/themetoolkit.php:1) in /home/justify/public_html/blog/wordpress/wp-admin/theme-editor.php on line 69

    Please help!

  1. 30. Sa | November 25, 2006 #

    This is my theme-editor.php from line 66-70:

    $location = wp_kses_no_null($location);
    $strip = array(’%0d’, ‘%0a’);
    $location = str_replace($strip, ”, $location);
    header(”Location: $location”);
    exit();


    so header(”Location: $location”); is line 69.

  1. 31. hso | November 25, 2006 #

    @ Sa

    Instead of replacing, can you check to see if there is any space in the TTK file or your WP-Pluggable-Functions file?

  1. 32. Steven | December 20, 2006 #

    I have tried and tried to figure out how the Flickr thumbnails but I have no idea how to make it work. Any help woudl be greatly appreciated!

    Thanks,

    Steve

  1. 33. hso | December 23, 2006 #

    @ Steve

    If you want to add a flickr stream and if you have a flickr ID, email me the sidebar.php file and your flickr tag to me, my email is headsetop[at]yahoo[dot]com

  1. 34. Maderlock | January 8, 2007 #

    Here’s one fix for when you have removed all the whitespace but still get the errors (as I did): copy all the code (except the first ) from themetoolkit.php and paste it in place of the line:

    include(dirname(__FILE__).’/themetoolkit.php’);

    in functions.php (all in the theme/themename directory).

    It’s a little ugly, but it removes the errors. Now, I would still dearly love to know WHY the errors are there when themetoolkit.php is included(?!?)

  1. 35. hso | January 8, 2007 #

    That is a fix, but the new Tree V2 has no themetoolkit and that piece of code is replaced with something more intuitive. I am working on the Orange theme and have the theme fixed and ready for release.

    Get Tree V2 from http://www.headsetoptions.org/2007/01/05/tree-v2-redux-with-widgets/

  1. 36. hso | January 9, 2007 #

    Orange with widgets and no more themetoolkit.php file is here: http://www.headsetoptions.org/2007/01/09/orange-v3-with-widget-available-for-download/

  1. 37. latest news | May 5, 2007 #

    Nice add on thanks

  1. 38. CuriosityKiller | May 15, 2007 #

    I love your theme template. But I’ve going crazy trying to add cool stuff like NeoWORX counter on my blog but there’s no way I could add it — please help!

  1. 39. hso | May 16, 2007 #

    @ CuriosityKiller

    Adding widgets from NeoWorx should be just as easy as adding widgets from elsewhere. Unless you are using the sidebar widgets plugin, you should be able to copy paste a code where you require the NeoWorx widget and get it going!

Have Your Say »

(Required- use your name, not keywords)

(Required- will not be published)

(Optional)

Use SimpleCode while pasting codes.