• Hi,

    Using P2 1.2.2 with WP 3.1 RC2, i encounter a fatal error.

    Fatal error: Cannot redeclare media_upload_tabs() (previously declared in /Web/ld-clean/wordpress/wp-admin/includes/media.php:18)

    The fix is easy, near line 402 of functions.php, replace include by include_once.

    function p2_add_head_content() {
        if ( is_home() && is_user_logged_in() ) {
            include_once ABSPATH . '/wp-admin/includes/media.php';
        }
    }
    add_action( 'wp_head', 'p2_add_head_content' );

    If a P2 developer read this, even if you can’t reproduce the bug, please correct the theme as include_once is a best practice.

    Is there a place to submit formal bug report regarding the P2 theme ?

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘P2 Fatal Error’ is closed to new replies.