Parse error in snippet-ops.php
-
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.
The topic ‘Parse error in snippet-ops.php’ is closed to new replies.