Jump to content

Wordpress sidebar error


brambleiah

Recommended Posts

Hello! So, I made a really dumb mistake. I am new to Wordpress and I have published pages on my site. I tried to get into the code of widgets.php, but stupidly, I worked on the original desktop file instead of the one on my server and I uploaded it which replaced it. I should of downloaded widgets.php from my server. I spaced out. So, now I get this error on my page:

 

Fatal error: Call to undefined function: get_search_form() in /home/borrowde/public_html/iremembermovies/wp-includes/widgets.php on line 771

 

Here is line 771 (of widgets.php):

 

/**
* Display search widget.
*
* @since 2.2.0
*
* @param array $args Widget arguments.
*/
function wp_widget_search($args) {
extract($args);
echo $before_widget;

// Use current theme search form if it exists
get_search_form();

echo $after_widget;
}

 

btw~ I was originally trying to just change the amount of "Recent Posts" my page shows by following this tutorial: here.. Which I'm sure would of worked great, but I was an idiot and I probably added a 'blank' file with no recent search widget options.

 

My site: http://www.iremembermovies.com

 

Please help!!

 

Thank you!

Link to comment
Share on other sites

I must of done it wrong because I get a big fat error on my site..

 

Did I not move it right??->

/**
* Display search widget.
*
* @since 2.2.0
*
* @param array $args Widget arguments.
*/
get_search_form();
function wp_widget_search($args) {
extract($args);
echo $before_widget;

// Use current theme search form if it exists


echo $after_widget;
}

/**
* Display archives widget.
*
* @since 2.2.0
*
* @param array $args Widget arguments.

Link to comment
Share on other sites

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.