• Fatal error: Cannot redeclare current_time() (previously declared in C:\HostingSpaces\tadshin\deltatech-eg.com\wwwroot\store\wp-includes\functions.php:61) in C:\HostingSpaces\tadshin\deltatech-eg.com\wwwroot\store\wp-content\themes\clean-commerce\functions.php on line 53

    The page I need help with: [log in to see the link]

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

    Thread Starter maydo

    (@maydo)

    can i send to u the function file to fix it for me plz jacob, my site is down, and i can’t fix it

    Hey Maydo,
    Yes, send me the functions.php file and I can help fix the error. You already have my email address, so send it to me that way and I’ll help get you on your way.

    Thread Starter maydo

    (@maydo)

    i haven’t your mail dear jacob, these is my mail : admin@Midohits.com

    Thread Starter maydo

    (@maydo)

    i send u mail dear jacob <3

    Just emailed you the new functions.php file. Let me know how it goes.

    Thread Starter maydo

    (@maydo)

    i get new error jacob : Parse error: syntax error, unexpected ‘.’ in C:\HostingSpaces\tadshin\deltatech-eg.com\wwwroot\store\wp-content\themes\clean-commerce\functions.php on line 187

    Can you re-send me the functions.php file? That line is blank for me, so I don’t understand why that error is popping up.

    Thread Starter maydo

    (@maydo)

    Blank function.php not available for me, can I send to you admin panel to solve these error, these error I think in theme

    Thread Starter maydo

    (@maydo)

    okay?

    Yes, if you want you can email me the info in the admin panel.

    Thread Starter maydo

    (@maydo)

    i mailed you admin panel with username and pass to check these error

    Well, for starters, the functions.php file isn’t named right. It’s currently wwfunctions.php when it should be functions.php. Not sure if that’s intentional, but I might need that to detect where the error could be. Also, I highly suggest upgrading to WordPress 4.9. There are some significant changes to the editor in the admin that will make things a little bit easier.

    Thread Starter maydo

    (@maydo)

    it’s working fine now jacob, thx for your help really, i wanna another help plz, i wanna free plug in for translate wordpress

    Hey Maydo,
    Glad to hear it’s working. If you need any other help, please create a new topic or you can email me.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘error in function.php , any one help me plz’ is closed to new replies.