Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Oct 21, 2011, 08:43 PM
heartsmakefamilies
 
4 posts · Oct 2011
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, 09:33 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 09: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, 5155 views)
  #4  
Old Oct 26, 2011, 09:41 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 26, 2011, 10: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, 2865 views)
  #6  
Old Oct 26, 2011, 10:55 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 26, 2011, 07:31 PM
heartsmakefamilies
 
4 posts · Oct 2011
I tried that but it still will not letting me. I'm still getting the message.

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
  #8  
Old Oct 26, 2011, 09:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you renamed the index.php to index.old it can't run. Do you have multiple copies of atahualpa in the themes folder? If so did you change he right one?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 07:01 AM
How to edit or delete the red marked Bar of the theme? hghoyer Header configuration & styling 1 Oct 6, 2010 10:44 AM
To delete Powered by WordPress & the Atahualpa Theme by BytesForAll angelcath Header configuration & styling 1 Jul 1, 2010 09:03 AM
error message when loading website bushtool New Versions, & Updating 4 Oct 16, 2009 08:50 AM


All times are GMT -6. The time now is 03:43 PM.


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