Title: SERVER DOWN
Last modified: November 27, 2022

---

# SERVER DOWN

 *  Resolved [marchajj](https://wordpress.org/support/users/marchajj/)
 * (@marchajj)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/)
 * Dear team kindly note i added a code to code snippet and its PHP code for currency
   translating and since i added this code i cannot access my backend always server
   down and facing the below issue, please urgent help and support to reach back
   my backend and able to work please, i just need to delete this code and stop 
   using it please very urgent:
 * [Kadoon Store | متجر كدون] Your Site is Experiencing a Technical Issue
 *     ```
       Howdy!
   
       Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
   
       In this case, WordPress caught an error with one of your plugins, Code Snippets.
   
       First, visit your website (https://dev1.kadoonstore.com/) and check for any visible issues. Next, visit the page where the error was caught (https://dev1.kadoonstore.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=) and check for any visible issues.
   
       Please contact your host for assistance with investigating this issue further.
   
       If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
   
       https://dev1.kadoonstore.com/wp-login.php?action=enter_recovery_mode&rm_token=qhd7i81kYKM14hynrbSGpm&rm_key=Z9Gbuy4S2QKDu4QSoHjKP1
   
       To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
   
       When seeking help with this issue, you may be asked for some of the following information:
       WordPress version 6.1.1
       Active theme: pinkmart (version 3.6.1)
       Current plugin: Code Snippets (version 3.2.2) PHP version 7.4.33
   
       Error Details
       =============
       An error of type E_ERROR was caused in line 5 of the file /home/kadoon/public_html/dev1/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()'d code. Error message: Uncaught Error: Call to undefined function alert() in /home/kadoon/public_html/dev1/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()'d code:5 Stack trace:
       #0 /home/kadoon/public_html/dev1/wp-includes/class-wp-hook.php(308): change_existing_currency_symbol('ر.س', 'SAR')
       #1 /home/kadoon/public_html/dev1/wp-includes/plugin.php(205): WP_Hook->apply_filters('ر.س', Array)
       #2 /home/kadoon/public_html/dev1/wp-content/plugins/woocommerce/includes/wc-core-functions.php(854): apply_filters('woocommerce_cur...', 'ر.س', 'SAR')
       #3 /home/kadoon/public_html/dev1/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php(45): get_woocommerce_currency_symbol()
       #4 /home/kadoon/public_html/dev1/wp-includes/class-wp-widget-factory.php(62): WC_Widget_Price_Filter->__construct()
       #5 /home/kadoon/public_html/dev1/wp-includes/widgets.php(115): WP_Widget_Factory->register('WC_Widget_Price...')
       #6 /home/kadoon/public_html/dev1/wp-content/plugins/woocommerce/incl
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fserver-down-18%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Anonymous User
 * (@anonymized-18874123)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/#post-16239071)
 * If your website has crashed because of an error in a snippet, you can disable
   snippets and figure out what caused the problem. To do so, add this line to your
   wp-config.php file:
 * `define('CODE_SNIPPETS_SAFE_MODE', true);`
 * Your website will resume normal operations. Once you found the problem and/or
   removed the bad snippet, you can either delete the line, or set it to “false”:
 * `define('CODE_SNIPPETS_SAFE_MODE', false);`
 * I don’t work for Code Snippets so I will leave the problem-solving to them.
    
   Good luck!
 *  Thread Starter [marchajj](https://wordpress.org/support/users/marchajj/)
 * (@marchajj)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/#post-16239303)
 * I know whats the problem, inside the code snippet I added 2 lines of code. one
   of them I need it and it’s very important to keep it but the second one I want
   to delete or deactivate but I cannot because once I activate the plugin I have
   a server down and cannot access the backend anymore and delete the other code.
   the one causing the server down is inside functions.php related to currency translator
   for WPML
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/#post-16239509)
 * If you cannot use safe mode for whatever reason but you are able to access your
   database, you can edit the snippet active statuses directly in the `snippets`
   database table.
 *  Thread Starter [marchajj](https://wordpress.org/support/users/marchajj/)
 * (@marchajj)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/#post-16239999)
 * HALLELOUYA!!!!!!!!! you made my day finally yes it worked when i delete it from
   PHP MY ADMIN omg amazing thank you really so much i appreciate it! [https://prnt.sc/wX8qTo5VY0pd](https://prnt.sc/wX8qTo5VY0pd)
   [https://prnt.sc/xPhgLvYgAZXD](https://prnt.sc/xPhgLvYgAZXD) now i can access
   finally back the backend!!! ouffff WAW

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

The topic ‘SERVER DOWN’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [marchajj](https://wordpress.org/support/users/marchajj/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/server-down-18/#post-16239999)
 * Status: resolved