• Resolved Maya

    (@mayaivo)


    Hi,
    I added a snippet that has caused an error on the site, so unable to delete/deactivate from the WP dashboard. Could you please let me know which folder/file the snippets reside in so I can remove in the back end via file manager. I have deactivated/reactivated, however this does not delete all the snippets so error comes back. Thanks in advance.
    I will rename the main plugin folder to enable me to work on the website, however if let me know if I need to change it back.
    Kind regards
    Maya

    FYI
    1. snippet:
    <?php

    $image_ids = get_field(‘gallery’, false, false);
    $shortcode = ‘[‘ . ‘gallery ids=”‘ . implode(‘,’, $image_ids) . ‘”]’;

    echo do_shortcode( $shortcode );

    ?>
    2. error: Fatal error: Uncaught Error: Call to a member function get_queried_object() on null in /home/naturevo/public_html/kaloyanalexander.com/wp-includes/query.php:44 Stack trace: #0 /home/naturevo/public_html/kaloyanalexander.com/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php(2913): get_queried_object() #1 /home/naturevo/public_html/kaloyanalexander.com/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(23): acf_get_valid_post_id(0) #2 /home/naturevo/public_html/kaloyanalexander.com/wp-content/plugins/code-snippets/php/snippet-ops.php(356) : eval()’d code(3): get_field(‘gallery’, false, false) #3 /home/naturevo/public_html/kaloyanalexander.com/wp-content/plugins/code-snippets/php/snippet-ops.php(356): eval() #4 /home/naturevo/public_html/kaloyanalexander.com/wp-content/plugins/code-snippets/php/snippet-ops.php(432): execute_snippet(‘ \r\n\r\n$image_ids…’, 11) #5 /home/naturevo/public_html/kaloyanalexander.com/wp-includes/class-wp-hook.php(286): execute_active_snippets(”) # in /home/naturevo/public_html/kaloyanalexander.com/wp-includes/query.php on line 44

    • This topic was modified 5 years, 11 months ago by Maya.

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete a snippet in backend’ is closed to new replies.