Catchable fatal error in WP 3.1 RC3 - echo get_category_link (4 posts)

  1. vasylesku
    Posted 5 years ago #

    I have in index.php the line 6:
    <a href="<?php echo get_category_link(get_theme_mod('featured')); ?>"><?php echo cat_id_to_name(get_theme_mod('featured')); ?></a>

    In Wordpres 3.0.4 works perfect, but in WordPress 3.1 RC3:
    Catchable fatal error: Object of class WP_Error could not be converted to string in C:\wamp\www\wordpress\wp-content\themes\cvasi-magazine\index.php on line 6

  2. Andrew Nacin
    Lead Developer
    Posted 5 years ago #

    This was investigated in http://core.trac.wordpress.org/ticket/16385. I'd check there to see what's going wrong.

  3. axelschultze
    Posted 5 years ago #

    We have a similar problem. After upgrading it does no longer read the index.php but only the index.htm - even if we enter url/index.php :(

  4. Nerx
    Posted 5 years ago #

    It seems this was resolved in trac: #16385

Topic Closed

This topic has been closed to new replies.

About this Topic