ThemeShaper Forums » Thematic


Emergency- Functions.php and broken blog

(5 posts)
  • Started 13 years ago by cookieandkate
  • Latest reply from helgatheviking
  • This topic is resolved
  1. Hello,

    I have an emergency. My website is broken. I was trying to follow the forum's instructions on how to manage the menus. I copied my functions.php to a text file (for later reference), changed one little thing in my functions.php, and my site went down. I've fixed my broken site before by going to my FTP server and re-uploading the file, but that didn't work this time. In fact, I think I made an even bigger mistake at that point--I tried to replace the Thematic theme functions.php (which is surely a vital file) instead of re-uploading my child theme's functions.php.

    I've spent an over an hour trying to figure things out on my own and I am completely stuck. Please, please, please help. I will be forever indebted. I've included as much relevant information as I can.

    The error displayed after I experimentally changed this:

    // Moving the thematic menu above the header

    to this:
    add_action('thematic_aboveheader','wp_nav_menu( array( 'theme_location' => 'primary-menu' ) )');

    I had figured out how to change the default Thematic menu to the new 3.0 menu, and how to display that menu above the header, but it was displaying the wrong menu. So I tried to specify which menu showed up, but that was a mistake.

    I saved my original functions.php and logged into my FTP client. In my haste, I made the mistake of trying to upload that functions.php file to the Thematic files, not to my child theme files. In hindsight, that was probably a terrible mistake. I have since uploaded the latest thematic functions.php file back to the wp-includes folder, but my site still doesn't work

    Before I made any changes to my child theme's functions.php today, I copied and pasted the contents into a text file. I have since saved that code as functions.php in dreamweaver and re-uploaded it to my child theme's folder through the FTP client.

    After all of that, I STILL receive the following error on my site:

    Fatal error: Call to undefined function get_theme_data() in /home/content/48/6128548/html/wp-includes/functions.php on line 6

    I backup my blog using the backup technology plugin and I downloaded the latest backup, but it's a .bak file full of code that I don't know what to do with.

    Please, I desperately need help. I'm in a panic. I apologize for my stupid mistakes. I wish I hadn't tried to work on my menus to begin with. If you have any ideas that may help, please send them my way!

    Posted 13 years ago #
  2. GoDaddy helped me fix it all. I'll never make the mistake of editing a Thematic functions.php file vs. a child theme functions.php file ever again! Sorry to bother you all!

    Posted 13 years ago #
  3. Hi Kate, glad you could sort that out. for future reference, you could have used FTP to upload a new thematic, and a blank functions.php to your child theme. Or, when stuff goes really bonkers, you can change your theme back to the default twentyten via the database. that has saved my butt a couple of times.

    Posted 13 years ago #
  4. Hi
    I experienced same thing but am shocked at Templatic theme. I have copied this extra menu code from wordpress documentation to complexity two themes and it works just fine. But with this theme cannot and it emphasize that i cannot call the function again because it has been called through some line 477 am assuming it is the (the custom menu widget stuff). But for Gods sake the footer menu i created and inserted in the footer widget would not stay horizontally on my site it would not stay in the footer horizontally.

    Thank God Hostgator helped me. Besides am surprised that after a line of code would not work, usually i would just copy out the code and save but with Templatic it is impossible.
    I love Hostgator . Templatic suck If you experience such and u re on hostgator just chat with them in less than 3 minutes it would be done.

    Posted 12 years ago #
  5. are you in the right place? whatever Templatic is, I am sure that it doesn't suck automatically just b/c you don't know how to use it.

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.