functions.php

This topic contains 6 replies, has 3 voices, and was last updated by  Alex Rollin 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #419388

    zyze8
    Expired Member
    Post count: 84

    I just added suggested code (found on support add_filter(‘whoop_bp_recent_activity_objects’, ‘whoop_bp_recent_activity_objects_filter’, 10) to the functions.php and it broke all site. I removed that code, but still the same and can’t login to my admin. What do i do?
    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home2/xxxxxx/public_html/wp-includes/functions.php:1) in /home2/xxxxx/public_html/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

    Fatal error: Cannot redeclare whoop_bp_recent_activity_objects_filter() (previously declared in /home2/xxxxx/public_html/wp-includes/functions.php:5819) in /home2/xxxxx/public_html/wp-content/themes/GeoDirectory_whoop/functions/buddypress.php on line 417

    Thank you

    #419419

    Kor
    Moderator
    Post count: 16516

    Hi zyze8,

    Thanks for reaching us again. Could you tell us a little bit more about what you’re trying to achieve there?

    Thanks!

    #419429

    zyze8
    Expired Member
    Post count: 84

    I was trying to add to the “recent activity” widget more options, like new places, events..etc.I added the code i found on the bord to the functions.php and it broke the site. I removed the code, but it’s already broken, cant login to admin now
    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home2/yuxx/public_html/wp-includes/functions.php:1) in /home2/yuxx/public_html/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

    Warning: Cannot modify header information – headers already sent by (output started at /home2/yuxx/public_html/wp-includes/functions.php:1) in /home2/yuxxx/public_html/wp-includes/pluggable.php on line 1216
    Thanks

    #419442

    zyze8
    Expired Member
    Post count: 84

    Well, i managed to fix that functions.php:1 Line 1 and able to login again, but all site layout is all over the places. Should i just re-install plugins? Thank you

    #419469

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    If you added a snippet, and the snippet resulted in the problem you are experiencing, please see the code snippets procedure for removing the snippet here:

    https://wordpress.org/support/topic/what-to-do-if-a-snippet-breaks-your-site/

    #419593

    zyze8
    Expired Member
    Post count: 84

    We removed the code right away, after it caused the brake, but now this functions.php file is not functioning properly, catching an error. We fixed functions.php:1 (Line 1),was able to login to admin, but after a few min, back to the same functions.php error.Re-installed theme, switched to other theme, works for a moment and back to the same error. Is there a way to delete a catch?..or what else we can do? Thanks

    #419690

    Alex Rollin
    Moderator
    Post count: 27815

    If you followed the instructions to remove the snippet, then the site should be working.

    If it is an issue with functions.php in your theme, then re-install the theme after backing up the functions.php and it you should be able to login. Then you can have a developer look at your code to find the issue.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount