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

    (@bungeshea)

    Hey,

    do you still receive this error if you change the function name to something else, like Hinweis2()?

    Thread Starter Marcus

    (@marcuss)

    I had a code snippet activated twice.

    But now I really have a problem:

    I get the following error message:

    Can not redeclare get_random_posts () (previously declared in /plugins/code-snippets/php/snippet-ops.php(352): eval () ‘d code: 3) in / www / htdocs / w00e075c / themenfreund / wp-content / plugins / code-snippets / php / snippet-ops.php (352): eval () ‘d code on line 28

    Now I can not get to the backend, although all other plugins are disabled

    How can I still disable the individual snippets?

    Plugin Author Shea Bunge

    (@bungeshea)

    You can enable safe mode. What this does it temporarily stop all snippets from running, so you can login and disable the snippet causing the issue.

    To do this, you can add this line to wp-config.php:

    define( 'CODE_SNIPPETS_SAFE_MODE', true );

    Or you can add ?snippets-safe-mode=1 to the current page URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error’ is closed to new replies.