• Resolved thecozyapron

    (@thecozyapron)


    We’re getting the following warning in the WordPress debug.log:

    “PHP Warning: Unterminated comment starting line 44 in /home/…/snippet-ops.php(484) : eval()’d code on line 44”

    The comment appears to be terminated, but perhaps there’s something in the comment that’s causing the warning?

    The page I need help with: [log in to see the link]

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

    (@bungeshea)

    Are you able to share the code that’s causing the error?

    Thread Starter thecozyapron

    (@thecozyapron)

    From snippet-ops.php:

    /**
     * Retrieve a list of snippets from the database.
     * Read operation.
     *
     * @param array            $ids       The IDs of the snippets to fetch.
     * @param bool|null|string $multisite Retrieve multisite-wide snippets (true) or site-wide snippets (false).
     *
     * @return array List of Snippet objects.
     *
     * @since 2.0
     */
    Plugin Author Shea Bunge

    (@bungeshea)

    Oh – this error is referring to an error in one of your snippets, not in the plugin itself. You’ll need to find the snippet that causes the issue.

    Thread Starter thecozyapron

    (@thecozyapron)

    Yep, found an unterminated comment at the end of one of our snippets that went undetected because the snippet still worked in spite of it.

    Sincere thanks for your prompt reply!

    Plugin Author Shea Bunge

    (@bungeshea)

    Glad to hear that you got it working!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning: Unterminated comment…’ is closed to new replies.