• Resolved ayepal

    (@ayepal)


    Tonight I went to edit the functions.php file of my theme so that I could further wigitize the site. But after adding in the code and hitting update I got Server Error 500 and now when I click anywhere or try to navigate anywhere within my sites wordpress or try to access just the site, I’ll get Server Error 500.

    This was the code I added in `<?php
    /**
    * Register our sidebars and widgetized areas.
    *
    */
    function arphabet_widgets_init() {

    register_sidebar( array(
    ‘name’ => ‘Home right sidebar’,
    ‘id’ => ‘home_right_1’,
    ‘before_widget’ => ‘<div>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h2 class=”rounded”>’,
    ‘after_title’ => ‘</h2>’,
    ) );

    }
    add_action( ‘widgets_init’, ‘arphabet_widgets_init’ );
    ?>`

    What can I do? I have no idea what happened to make it do that.

    The site is https://www.newsthc.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The site is working fine for me.

    To replace the file, use your cPanel’s file manager or an FTP program to replace the function.php file you changed with a fresh copy (download a copy of the theme to your PC and unsip it to get a fresh copy).

    Thread Starter ayepal

    (@ayepal)

    Thanks for the reply.

    I ended up doing a restore of the site’s files and database via godaddy which did the trick. Will keep that in mind if it happens again though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Server Error 500 Help’ is closed to new replies.