WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Catchable Fatal Error --> Specific to special boxes offered in theme (4 posts)

  1. marvelinthesky
    Member
    Posted 4 years ago #

    I am using the ReciPress theme... had it all mod'd out but then I went to change one of the special graphics it allows you to customize in Theme Options (notice the three graphics boxes on the top in the demo http://wordpress.org/extend/themes/recipress) and it gave me a "Catchable Fatal Error"

    Catchable fatal error: Object of class WP_Error could not be converted to string in .../wp-content/themes/recipress/home_content.php on line 11

    So I go into "home_content.php" to see what is on line 11 (I do not know php btw) and this it what is has starting from line 1:

    <div class="cat_blocks">

    <?php if(get_option('wpt_cat1_name') != "") { ?>
    <div class="catblock">
    <div class="block_top">
    <div class="cat_img">
    <?php if(get_option('wpt_cat1_image') != '') {
    $image = get_option('wpt_cat1_image');
    } else {
    $image = get_bloginfo('stylesheet_directory')."/images/default_image.jpg";
    } ?>"><img src="<?php echo $image; ?>" alt="" /></div>
    <div class="cat_name">"><?php echo get_option('wpt_cat1_name') ?></div>
    <div class="cat_more">">More <img src="<?php bloginfo('stylesheet_directory'); ?>/images/cat_more.jpg" alt="" /></div>
    <div style="clear:both;"></div>
    </div>
    <div class="cat_desc" id="block1"><?php echo get_option('wpt_cat1_desc') ?></div>
    </div>

    What do I do! I have looked at the WP forum and found others with this error... but someone always seems to offer what the php should be for that specific instance/error... Help me too please!

  2. marvelinthesky
    Member
    Posted 4 years ago #

    fixed it, my mistake!

  3. aaron1728
    Member
    Posted 3 years ago #

    What was the fix?

  4. aaron1728
    Member
    Posted 3 years ago #

    It happens when I have permalinks changed to /%postname%/

Topic Closed

This topic has been closed to new replies.

About this Topic