ThemeShaper Forums » Thematic

[closed]

child functions.php being saved by Wordpress.

(5 posts)
  • Started 3 years ago by phar_fetched
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. phar_fetched
    Member

    I'm pretty new to all this so maybe I'm making a blinding error but its one that keeps coming up regardless of the theme I'm using.

    Function file:

    <?php
    
    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        remove_action('thematic_header','thematic_blogtitle',3);
    }
    add_action('init','unhook_thematic_functions');
    
    ?>

    Obviously, this is just a simple function to remove the blog title but everytime I enter the dashboard I get a fatal error message:

    Fatal error: Cannot redeclare _verify_activate_widget() (previously declared in C:\xampp\htdocs\wordpress\wp-content\themes\chiron\functions.php:12) in C:\xampp\htdocs\wordpress\wp-content\themes\thematic\functions.php on line 170

    Which is then followed by a message in my text editor (Textpad) that my child functions file has been updated by another program. When I cut and paste the text and save it again it works fine but only for one action (i.e. going to the themes menu on the dashboard), any actions after that I get the same problem.

    I have also recently updated Wordpress.

    Posted 3 years ago #
  2. phar_fetched
    Member

    I should add that things are absolutely fine outside the dashboard, I am able to edit the functions.php file and refresh without any errors, it is only when i go into the dashboard that I get the problem. Also there is no problem when the functions.php file does not exist

    Posted 3 years ago #
  3. phar_fetched
    Member

    Seems to be the very existence of the functions.php file because even when only the css files are called from it I get the very same error.

    Posted 3 years ago #
  4. phar_fetched
    Member

    have had to create a new theme from scratch so although not urgent I would appreciate any feedback any one had to offer on this issue.

    Posted 3 years ago #
  5. hmmm... i haven't had any problems w/ wp3.1 and thematic. i would re-upload thematic

    http://developing.thematic4you.com/thematic-development-release/

    and start over with a blank child theme. then put your above code in your child's functions.php

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.