Support » Plugin: Simple PDF Viewer » Generates a fatal error: “unexpected [“

  • micdabe

    (@micdabe)


    The get_option doesn’t allow to refer as array -> you must split the function in two steps

    $tmp = get_option(‘s_pdf_options’);

    $s_pgf_docw = $tmp[‘doc_width’];

    $s_pgf_docw_percent = $tmp[‘doc_width_percent’];

    $s_pgf_doch = $tmp[‘doc_height’];

    $s_pgf_bttn = $tmp[‘bttn_text’];

    $s_pgf_bttn_color = $tmp[‘bttn_color’];

  • The topic ‘Generates a fatal error: “unexpected [“’ is closed to new replies.