• Resolved marchajj

    (@marchajj)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@marchajj)

    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

    (@bungeshea)

    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

    (@marchajj)

    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/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.