Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: error in function.php , any one help me plz

Discussion in 'Misc WordPress Requests' started by Jacob Martella, Nov 14, 2017 at 12:54 PM.

  1. Jacob Martella

    Guest

    Reply To: error in function.php , any one help me plz, by Jacob Martella

    So this is issue is popping up because the same function is being declared/defined twice on your site, which is throws the error. What you’ll need to do to get rid of the error message is to find where the function is being defined on line 53 of the functions.php file and wrap it in an function_exists statement like so:

    <?php if ( ! function_exists( 'current_time' ) ) {
    //* Function defined here
    } ?>

    This should keep it from being redefined. Now, that might cause some issues with the theme depending on what their version of this function does, but that’s their fault for not naming the function something different like clean_commerce_current_time().

    Let me know how it goes!

    Reply To: error in function.php , any one help me plz
     
    #1

Share This Page

Web Hosting