sidebar.php de,

<?php endif; ?>

kodunun üstüne,

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

ekleyince hata veriyor mu?