WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My site won't load (7 posts)

  1. ElisaEsky
    Member
    Posted 5 months ago #

    My website suddenly stopped working today. It was working earlier, then suddenly the website won't load (will only show a white page) and the same thing happens when I try to access the admin page. The website is
    http://cncrouterstore.ca/

    Please help!!

  2. esmi
    Forum Moderator
    Posted 5 months ago #

    Try checking your site's error logs for messages. Your hosts should be able to help you accessing your site's error logs.

  3. ElisaEsky
    Member
    Posted 5 months ago #

    I'm getting in contact with them now, but is there anything I can do on my own while I'm waiting? One of my team members tried to update some code, hit "update file" and that's when the website stopped loading. Is this a common problem?

  4. esmi
    Forum Moderator
    Posted 5 months ago #

    One of my team members tried to update some code

    It might have been helpful to know that previously. What code was s/he trying to update? Theme? Plugin?

  5. ElisaEsky
    Member
    Posted 5 months ago #

    She was trying to add "checkout field editor" code to the functions.php.

    The code was:

    /**
     * Add the field to order emails
     **/
    add_filter('woocommerce_email_order_meta_keys', 'my_woocommerce_email_order_meta_keys');
    
    function my_woocommerce_email_order_meta_keys( $keys ) {
    	$keys['How did you hear about us?'] = 'hear_about_us';
    	return $keys;
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    She followed this website instruction: http://docs.woothemes.com/document/add-a-custom-field-in-an-order-to-the-emails/

  6. esmi
    Forum Moderator
    Posted 5 months ago #

    Try switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

  7. ElisaEsky
    Member
    Posted 5 months ago #

    Worked, thanks so much!!

Reply

You must log in to post.

About this Topic