Title: Parse error in snippet-ops.php
Last modified: December 27, 2021

---

# Parse error in snippet-ops.php

 *  Resolved [qataqld](https://wordpress.org/support/users/qataqld/)
 * (@qataqld)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-snippet-ops-php/#post-15621205)
 * 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.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-snippet-ops-php/#post-15621205)
 * Status: resolved