• Any chance I can get some assistance? Is there something I did wrong using this plugin? Thanks for the plugin!!!

    Your Site is Experiencing a Technical Issue:
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.3.2
    Current theme: Astra (version 2.1.4)
    Current plugin: Code Snippets (version 2.13.3)
    PHP version 7.0.33

    Error Details
    =============
    An error of type E_PARSE was caused in line 1 of the file /home/theli537/public_html/apm/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(213) : eval()’d code. Error message: syntax error, unexpected ‘

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is typical syntax error. In general those messages can ignore if they relate with frontend snippet. Code Snippet doesn’t allow to save snippet, which has invalid PHP syntax.

    It seems that Code Snippet temporarily saves the invalid snippet and if it has error retrieves the working version to the frontend if working version exists. Because there is temporarily invalid frontend snippet, WordPress sends error message.

    Concerning fronend snippets, there is possibility to fix the syntax error.

    If you site works ok, just ignore these kinds messages and delete the e-mail.

    If you get blank page, then there is real error. In many circumstances real problems relate with some serious problems in Code Snippet. In those cases the problem doesn’t relate with syntax errors but function definition problems. I have explained major problems elsewhere. Problems are serious and the author should warn about them in a fixed topic.

    In general. Never create backend snippets if you don’t have phpMyAdmin opened and you can access database. If backend snippet has syntax error, Code Snippet can’t retrieve working version, because backend has been crashed.

    Maybe safe mode can help in this matter and backend could be accessed even if there is a snippet, which has invalid syntax in a backend snippet.

    IMO Code Snippet should create a temporary saving, where active has always value 0. After checking the syntax, it would delete the temporary saving. Then syntax error in backend snippet would not crash the backend. Then Code Snippet could retrieve working active backend snippet or set for invalid snippet active as value 0 or not save the invalid backend snippet at all in the case when there is the first time a trial to save the snippet.

    Plugin Author Shea Bunge

    (@bungeshea)

    @thelittlewineguy this error would have been created when you or another administrator on your site tried to add a snippet with invalid code. Fortunately, it looks like the code was not saved and the person adding it would have received the “Don’t Panic” screen instead. This email would have been sent as a follow-up to that, even though the error is not persisting on your site.

    If I understand correctly, this however shows, that Code Snippet has been temporary stored snippet into database. Would it be possible that the temporary saving would be done into an additional temp snippet, which will be deleted automatic after some seconds and after validity check? If backend snippet has error, it can’t get “Don’t Panic” information because Code Snippet doesn’t work at all.

    Plugin Author Shea Bunge

    (@bungeshea)

    @tapiohuuhaa no, that’s not correct – the snippet is not saved into the database until after the code has been run for testing. If you see the Don’t Panic screen, then it means that the code which was just being edited has not been saved.

    It’s a worthwhile suggestion that some sort of temporary saving would allow for a more robust setup in future, however. And it is definitely possible for certain snippets to not be caught by the Don’t Panic screen, which is why Safe Mode exists.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Your Site is Experiencing a Technical Issue’ is closed to new replies.