• Resolved hgsouza

    (@hgsouza)


    Hello everyone,

    I had a critical issue with my website which became entirely inaccessible after the activation of a PHP snippet through the Code Snippets plugin. The entire WordPress installation is down, including the admin dashboard.

    I’ve tried the steps of the https://help.codesnippets.pro/en/article/12-safe-mode article, but it didn’t work.

    The code snippet that triggered the issue is as follows:

    add_action('init', function() { global $wpdb; $tables = $wpdb->get_results("SHOW TABLES", ARRAY_N); echo ""; print_r($tables); echo ""; exit; });

    Thank you in advance for your help!

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

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

    (@bungeshea)

    Your snippet seems to be designed to crash your site, for whatever reason.

    I’m not sure why safe mode might not be working, as it seems to be functioning fine when I try it on my test site – is it possible that your code was added somewhere outside the Code Snippets plugin too?

    If you have FTP or database access, there are other ways of disabling the snippet, such as renaming the plugin folder, or changing the value in the active column of the snippets database table.

    Plugin Contributor Carolina

    (@carolinaop)

    Hi @hgsouza ,

    Since we haven’t received any further feedback, I’ll go ahead and close this ticket for now. Please don’t hesitate to reopen it anytime if needed—we’ll be happy to help.

    Best regards,

    Carolina

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.