• Resolved qataqld

    (@qataqld)


    When I install and activate Code Snippets, I get the following error message:
    Error Details
    =============
    An error of type E_PARSE was caused in line 54 of the file /home/qataqlde/staging.qata.qld.edu.au/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()’d code. Error message: syntax error, unexpected ‘;’, expecting ‘,’ or ‘)’

    The code in the file line 52-54 is:
    /* If only one ID has been passed in, defer to the get_snippet() function */
    if ( 1 === $ids_count ) {
    return array( get_snippet( $ids[0] ) );
    }

    Can you explain what the error is please? The code appears correct and I have not changed anything from the installed php.

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    This is an error with one of your snippets.

    Line 54 refers to a line in your snippet code, not a line in the plugin code.

    You have an errant ; in the middle of a function call.

Viewing 1 replies (of 1 total)

The topic ‘Parse error in snippet-ops.php’ is closed to new replies.