jQueryUI - exceção não capturada: não é possível chamar métodos

Eu sou muito novo no jQuery e estou tentando executar uma caixa de diálogo jQueryUI bastante simples no meu aplicativo PHP. No console do firebug, recebo o erro:

uncaught exception: cannot call methods on dialog prior to initialization; attempted to call method 'open'

Aqui está o meu código:

$(function() {
    $( "#dialog" ).dialog({
        autoOpen: false,
        show: "blind",
        hide: "explode"
    });

    $( "#opener" ).live('click',function() {
        $( "#dialog" ).dialog( "open" );
        return false;
    });
});

Eu pesquisei no erro e não apareceu muito, exceto quejquery.ui.js está gerando o erro com:

if ( isMethodCall ) {
    this.each(function() {
        var instance = $.data( this, name );
        if ( !instance ) {
            throw "cannot call methods on " + name + " prior to initialization; " +
"attempted to call method '" + options + "'";
        }
...

Alguma ideia? Agradeço qualquer ajuda sobre o que é esta mensagem de erro e como resolvê-la.

ATUALIZAR: Tentei comentar as opções de mostrar / ocultar e isso não teve nenhum efeito no meu problema. Abaixo está o HTML:

 <div class="demo">

    <div id="dialog" title="Basic dialog">
        <p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
    </div>

    <button id="opener">Open Dialog</button>

</div><!-- End demo -->

Esse HTML está incluído em um arquivo PHP, incluído em outro arquivo PHP.

questionAnswers(5)

yourAnswerToTheQuestion