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 »

Fatal Error when using page template


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 Jun 17, 2011, 04:04 PM
tdill
 
4 posts · Aug 2009
I had received information a while back on how to make this work... but after upgrading to the latest version, I'm having problems.

I have a pop-out page that is used for opening up a music player. That page is totally blank (no header image, menu, or sidebars)... It just contains the flash based music player. After the upgrade I'm getting an Fatal error: Cannot redeclare bfa_meta_tags() ...

If I change that page to the Default template (the one with the header image, menu, sidebars, etc.) it opens just fine.

Is there something that would have changed in this most recent update? Do I need to change my template file?

Thanks,
Tim
  #2  
Old Jun 17, 2011, 04:31 PM
juggledad's Avatar
juggledad
 
22,069 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
What version of Atahualpa and WP?
What is the URL?
Do you have all BUGFIX's for your version applied? (they can be found in the 'New Version & Updates' forum and sub forum)
--if not, apply them before we go any further and re-test
__________________
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
  #3  
Old Jun 17, 2011, 04:46 PM
tdill
 
4 posts · Aug 2009
I have applied all of the bug fixes...

Atahualpa 3.6.7
WP 3.1

http://thedills.net/blog/dills-online-radio-network/
  #4  
Old Jun 17, 2011, 08:05 PM
juggledad's Avatar
juggledad
 
22,069 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
what is the template you are using?
__________________
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 Jun 17, 2011, 08:40 PM
tdill
 
4 posts · Aug 2009
This is the coding of the landingpage.php file. Let me know if this is not what you were asking for. This has worked for at least the last year or so... When I upgraded, I added this to the new theme folder and selected it in the page settings. Thought it was working, but obviously not. Thanks for the help!

<?php
/*
Template Name: Landing Page 1
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php /* if index.php or another page template (copied from index.php) was not used
(i.e. by a plugin such as WPG2), the global $bfa_ata would be empty */
global $bfa_ata; if ($bfa_ata == "") include_once (TEMPLATEPATH . '/functions/bfa_get_options.php'); ?>
<?php if ( $bfa_ata['css_external'] == "External" ) { ?>
<link rel="stylesheet" href="<?php echo $bfa_ata['get_option_home']; ?>/?bfa_ata_file=css" type="text/css" />
<?php } ?>
<?php include (TEMPLATEPATH . '/functions/bfa_meta_tags.php'); ?>
<?php if ($bfa_ata['favicon_file'] != "") { ?>
<link rel="shortcut icon" href="<?php echo $bfa_ata['template_directory']; ?>/images/favicon/<?php echo $bfa_ata['favicon_file']; ?>" />
<?php } ?>
<?php if ( is_single() OR is_page() ) { ?>
<link rel="canonical" href="<?php the_permalink(); ?>" />
<?php } ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php echo $bfa_ata['siteurl']; ?>/wp-includes/js/jquery/jquery.js?ver=1.2.6"></script>
<?php if ( $bfa_ata['javascript_external'] == "External" ) { ?>
<script type="text/javascript" src="<?php echo $bfa_ata['get_option_home']; ?>/?bfa_ata_file=js"></script>
<?php } ?>
<?php if ( function_exists('wp_list_comments') AND is_singular()
# AND $bfa_ata['include_wp_comment_reply_js'] == "No"
) {
wp_enqueue_script( 'comment-reply' );
} ?>
<?php wp_head(); ?>
<?php echo ($bfa_ata['html_inserts_header'] != "" ? apply_filters(widget_text, $bfa_ata['html_inserts_header']) : ''); ?>
</head>
<body <?php body_class(); ?><?php echo ($bfa_ata['html_inserts_body_tag'] != "" ? ' ' . apply_filters(widget_text, $bfa_ata['html_inserts_body_tag']) : ''); ?>>
<?php echo ($bfa_ata['html_inserts_body_top'] != "" ? apply_filters(widget_text, $bfa_ata['html_inserts_body_top']) : ''); ?>

<div style="margin:0px auto;padding:0px;border:solid 1px #000000;font-size:1em;color:#ffffff;text-align:center">

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<?php bfa_center_content($bfa_ata['content_inside_loop']); ?>

<?php endwhile; ?>
<?php else : ?>

<?php bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; ?>


</div>

</body>
</html>
  #6  
Old Jun 18, 2011, 03:22 AM
juggledad's Avatar
juggledad
 
22,069 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
there was a change to the way templates had to be built in Atahualpa because first the 'Suhosin' issue and then because WordPress would not allow the use of the 'eval()' function in the theme.

You need to update the template and build it based off the current index.php
__________________
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
  #7  
Old Jan 2, 2012, 10:43 AM
scalablesocial
 
2 posts · Jan 2012
South Central Texas
I'm looking at the index.php file for version 3.7.3 and I have no idea what I'm looking at. I want to remove the sidebar (but not leave a blank div) and the top menu, but can't tell what to remove. Is there any documentation for this? Thanks.
  #8  
Old Jan 2, 2012, 01:29 PM
juggledad's Avatar
juggledad
 
22,069 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Why notuse the theme options?
__________________
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
Catchable fatal error?! WP Error!? thetruejoe90 Atahualpa 3 Wordpress theme 1 Jan 18, 2011 09:46 AM
SEARCH ERROR: Catchable fatal error:Object of class WP_Error could not be converted angelarose Plugins & Atahualpa 3 Jul 8, 2010 05:05 PM
[SOLVED] Excerpt Error: &quot;Fatal error: Call to undefined function: the_post_thumbnail( buzz628 Excerpts, Read more, Pagination 2 Jan 15, 2010 02:58 PM
Landing Page Template Error hadleman Atahualpa 3 Wordpress theme 1 Dec 20, 2009 07:24 AM
Instead of posts loading from my static-page site, I get Fatal Error (A 3.2/WP 2.3.3) davidhobart Atahualpa 3 Wordpress theme 2 Sep 28, 2009 09:02 AM


All times are GMT -6. The time now is 05:05 AM.


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