• Resolved Terry

    (@tbilton)


    I installed and enabled Code Snippets, and added a PHP file successfully.
    I added a 2nd file, and that worked successfully.
    I added a 3rd file and i got the white screen of death:

    Warning: require_once(/home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/templates/directory.php): failed to open stream: No such file or directory in /home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 23
    
    Fatal error: require_once(): Failed opening required '/home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/templates/directory.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 23
    There has been a critical error on this website.
    
    I got some help, and a developer modified the code as follows:
    
    

    $result = eval($code);
    line 469 in target file
    originally this was
    $result = true;

    The site returned to normal, so i tried using the 2 original snippets that i knew worked, but they don’t.

    I tried deactivating the plugin and re-installing it, and i got another white screen (same message). so i went in and modified that fix back to its original:
    $result = true;

    I would love to be able to use Code Snippets, but i have no idea how i can delete all of the files/folders/data from my WordPress dashboard so i could start from scratch.

    Any help would be highly appreciated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code Snippets Not working’ is closed to new replies.