WordPress.org

Ready to get started?Download WordPress

Forums

This is all a cruel joke, right? (duplicating a theme to edit) (6 posts)

  1. Biks
    Member
    Posted 7 years ago #

    This is completely kicking my butt. First off, my hosting service has ver 2.0.2 installed, so that's what I gotta use. I just want to DUPLICATE WordPress default theme 1.5 and start to make changes to that. Simple, right?

    I download it via an FTP program to my desktop, I change just the folders name and upload it back to my site. I go to the admin page and switch themes to the new one. THE ONLY THING I'VE CHANGED IS THE FOLDERS NAME.

    When I start to use the duplicate theme, I get all sorts of error messages. Examples:

    (Write a message, after hitting the publish button:)

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/blog/wp-content/themes/velmas1/functions.php:791) in /home/wickedde/public_html/blog/wp-admin/post.php on line 60

    Posting a comment:

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/blog/wp-content/themes/velmas1/functions.php:791) in /home/wickedde/public_html/blog/wp-includes/pluggable-functions.php on line 247

    When I switch back to the installed default theme, all these error messages go away, everything works fine. Here's the killer: when I upload someone else's theme (almost-spring)...IT WORKS PERFECTLY. </screaming sounds>

    The reason why I want to use the default theme is it's close to what I want. I just need to change a few colors, etc. </gnashing of teeth>

  2. MichaelH
    Member
    Posted 7 years ago #

    Well when you downloaded it might have not been a clean download. When you edited the files maybe you introduced extraneous spaces/characters. And when you uploaded back to you host, it might not have been a clean uploaded.

    Also, consider downloading the 2.0.2 distribution from http://wordpress.org/download/release-archive/ and use the files from the default theme.

    Resources:
    Editing_Files
    Using FileZilla
    Uploading_WordPress_to_a_remote_host

    And of course, I should encourage you to upgrade to Version 2.2 of WordPress!

  3. moshu
    Member
    Posted 7 years ago #

    + you have to change the theme name in the style.css, in the header portion!

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Warning: Cannot modify header information - headers already sent by (output started at ...blah blah functions.php:791)

    This means that your theme's functions.php file almost certainly has spaces or blank lines or something at the end of the file. You can't do that. Remove those blank lines or whitespace characters. The last thing in functions.php must be "?>".

  5. Biks
    Member
    Posted 7 years ago #

    Thanks for the tips. Yea..it was by uploading it raw data verses binary took care of everything. Moshu: were you saying to change the name in the /*comments*/ section? Why would that have any bearing on how it's loading? I know it changes the title of the page on the select themes page, but even I know anything with /* */ has nothing to do with rendering code.

  6. Chris_K
    Member
    Posted 7 years ago #

    I know it changes the title of the page on the select themes page,

    Bingo!

Topic Closed

This topic has been closed to new replies.

About this Topic