Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Please help Have error on website now and all GoDaddy says is to delete theme


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 21, 2011, 07:43 PM
heartsmakefamilies
 
4 posts · Oct 2011
Please help Have error on website now and all GoDaddy says is to delete theme

I hope that someone can help me. I have a fatal error on my website that says: "Fatal error: Call to undefined function home_url() in /home/content/52/5574752/html/wp-content/themes/atahualpa/functions/bfa_theme_options.php on line 7".

I called GoDaddy hoping to get help and they told me to delete the theme. I was able to open the file but I don't understand how to fix it. This is the file:

<?php

// http://example.com/home/wp-content/themes/atahualpa
$templateURI = get_template_directory_uri();

// http://example.com/home
$wordpress_base = home_url();

// /wp-content/themes/atahualpa/
$template_path = str_replace( $wordpress_base, '', $templateURI) . '/';

// example.com/home
$server_name_incl_wp_dir = str_replace("http://", "", $wordpress_base);

// /home
$wordpress_dir = str_replace($_SERVER['SERVER_NAME'], '', $server_name_incl_wp_dir);

// /home/wp-content/themes/atahualpa/
$css_img_path = $wordpress_dir . $template_path;

# $bfa_ata_widget_areas = get_option('bfa_widget_areas');
$bfa_ata = get_option('bfa_ata4');
if(isset($bfa_ata['bfa_widget_areas'])) $bfa_ata_widget_areas = $bfa_ata['bfa_widget_areas'];
else $bfa_ata_widget_areas = '';
$widget_form_string = '';
if (is_array($bfa_ata_widget_areas)) {
foreach ($bfa_ata_widget_areas as $widget_area) {
$widget_form_string .= '
<input type="checkbox" name="delete_widget_areas" id="' .
$widget_area['name'] . '" value="' . $widget_area['name'] .
'" /><label class="widget_area_label" for="' . $widget_area['name'] .
'">' . $widget_area['name'] . '</label><br />';
}
}

// Since 3.4.8, not activated yet, needs more code in css.php, js.php (3rd option), bfa_ata_admin.php ("New" tab)
// and bfa_ata_add_admin.php (Save js and css files in WP Uploads with each "Save Changes")
/*
if (stristr(PHP_OS, 'WIN')) {
$slash = '\\';
} else {
$slash = '/';
}
$upload_path = str_replace( 'themes', '', get_theme_root() ) . 'uploads';
if(is_writable($upload_path)) {
$is_writable = "<span style='color:green;background:white'>Yes</span>";
} else {
$is_writable = "<span style='color:red;background:white'>No</span>";
}
*/

/* make some of these variables global in functions in 3.5.0+ */

This is only half of it. I was hoping someone could tell me how to fix the issue. Please any help would be greatly appreciated.

Thanks

Tami
  #2  
Old Oct 21, 2011, 08:33 PM
lmilesw's Avatar
lmilesw
 
9,973 posts · Jul 2009
Central New York State USA
Just upload a new copy of the file in question.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Oct 26, 2011, 08:19 AM
heartsmakefamilies
 
4 posts · Oct 2011
I'm hoping I was able to attach it. Its all on Wordpress. It was a large file. I wasn't sure how to make it smaller so I zipped it.

Any help you can give me would be greatly appreciated. I feel like a doe caught in car lights.
Attached Files
File Type: zip bfathemeoptionsphp.zip (58.5 KB, 579 views)
  #4  
Old Oct 26, 2011, 08:41 AM
juggledad's Avatar
juggledad
 
21,712 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
there is nothing wrong with the file or the theme, but there might be a problem with your WordPress install.

Quote:
Fatal error: Call to undefined function home_url()
this says that the function (small piece of code) called 'home_url' does not exist. This is part of the WordPress base code in the module 'link-template.php. So the two most probable causes are
1) the WordPress install did not install everything (link-template.php should be in the 'wp-includes' folder
or
2) somebody modified the code and removed this.
or
3) your on an old version of wordpress that did not have the function built in it.
what version of WP are you running?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Oct 26, 2011, 09:38 AM
heartsmakefamilies
 
4 posts · Oct 2011
Hi juggledad,

I think I'm running the WP 2.9.1 since GoDaddy is asking me to update it but I'm not sure. I had originally updated it on Wordpress. I can't get onto Wordpress at all now.

I did check and the link-template.php is in the file. I've included that file here.

I don't know how anyone would change the file since I haven't had any help since the girl originally set it up.

Any help would be so appreciated. I'm at a loss. I don't understand any of this.
Attached Files
File Type: doc linktemplatephp.doc (124.5 KB, 395 views)
  #6  
Old Oct 26, 2011, 09:55 AM
juggledad's Avatar
juggledad
 
21,712 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
This is a new function that wordpress added and you are on an old version of wordpress. her is what you need to do.
using an FTP program navigate to the wp-contents/themes/atahualpa folder and rename the file 'index.php' to 'index.old' this should allow you back into your site with the twenty ten theme.

Next do a database backup and then upgrade wordpress.
Once that is done you can rename the 'index.old' to 'index.php' and you should be able to activate atahuala as the theme again.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Godaddy - Error 500 daxryan New Versions, & Updating 14 Apr 7, 2011 06:01 AM
How to edit or delete the red marked Bar of the theme? hghoyer Header configuration & styling 1 Oct 6, 2010 09:44 AM
To delete Powered by WordPress & the Atahualpa Theme by BytesForAll angelcath Header configuration & styling 1 Jul 1, 2010 08:03 AM
error message when loading website bushtool New Versions, & Updating 4 Oct 16, 2009 07:50 AM


All times are GMT -6. The time now is 06:41 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.