WordPress.org

Ready to get started?Download WordPress

Forums

wp theme can not be activated (4 posts)

  1. milli05
    Member
    Posted 3 years ago #

    Hi, I have just started to create wordpress themes, and I have wp installed on my computer using xampp. That has version 2.9.2.
    I have installed my wp-theme to my wordpress site on my comluter and it works fine.

    Then I have a website using wordpress it is http://www.millwebdesign.com and I have just upgraded it to 3.1.
    When I have tried to install the theme there, it shows up fine in the admin panel, BUT there is no preview image, and when I activate it, the admin and the front disappears. There is only white screen I get.

    I had to go to the database and change the theme back.
    Can there be difference between the two versions? or is my theme completely wrong?

    Thanks!

  2. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    First, why are you developing against WordPress 2.9.2 on your XAMPP install?

    Second, try scanning the Theme with the Theme Check Plugin (and with WP_DEBUG defined as TRUE in wp-config.php). It should flag any deprecated functions, and WP_DEBUG should output any fatal errors that might be causing your whitescreen.

  3. milli05
    Member
    Posted 3 years ago #

    First, why are you developing against WordPress 2.9.2 on your XAMPP install?
    - sorry, I do not get it! I just have xampp on my computer, so that I can develop php sites. I just uploaded wp on my server first.

    The problem was that I wantet to use the
    get_the_date function, but it was not declared , so I copied it from the codex and added it to functions.php.
    But, with version 3.1 it was in general_template.php already, so I got an error message because of redeclaring the function.

    I might have not done thigs the way I was really supposed to, but, I will get there slowly :-)!
    Thanks for your help!

  4. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    First, why are you developing against WordPress 2.9.2 on your XAMPP install?
    - sorry, I do not get it! I just have xampp on my computer, so that I can develop php sites. I just uploaded wp on my server first.

    So, why not upgrade your XAMPP install of WordPress from 2.9.2 to 3.1?

    The problem was that I wantet to use the
    get_the_date function, but it was not declared , so I copied it from the codex and added it to functions.php.
    But, with version 3.1 it was in general_template.php already, so I got an error message because of redeclaring the function.

    The most correct thing to do would have been to update WordPress.

    In lieu of that, though: if you do something like copy a function out of core into your functions.php file, always wrap the function call in a if (! function_exists( 'function-name' ) ) conditional, so that you don't generate exactly the clash that you ran into when you uploaded the Theme to a WordPress install that was running 3.1.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.