This topic has 3 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #1746
     mytalent
    Participant

    I am getting a 1/2 page of…

    Warning: Division by zero in /home/mytalent/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 640

    Warning: Division by zero in /home/mytalent/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 640

    Warning: Division by zero in /home/mytalent/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 640

    Warning: Division by zero in /home/mytalent/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 640

    Warning: Division by zero in /home/mytalent/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 640

    on home page.
    Also, I do not see any page templates for home page.

    #1757
     mytalent
    Participant

    I solved that issue by replacing one of the functions in bp-core-functions.php with one from an an older version of bp.

    But now that the page is working I am getting many errors which may be caused by users not working correctly. I get the users in the WP user list, but not anywhere else.

    BP is not showing any new users. I can create a new user through the front page form (I switched the search out to user reg) but going directly hits a fatal error. The same error also appears on every page except the home page.

    Fatal error: Call to undefined method WP_User::exists() in…../wp-content/themes/sweetdate/functions.php on line 480

    I still don’t have any page templates. Even the 404 page gives an error
    Parse error: syntax error, unexpected T_FUNCTION in…/wp-content/themes/sweetdate/page-templates/404-page.php on line 17

    #1758
     mytalent
    Participant

    One more thing. When I switched to the bp theme, it all worked correctly, no errors, users got registered and were able to log in. When I switched back to sweetdate, the user registered with the bp theme was there. The others, registered through sweetdate were not and if I try to log in as one of them I get an empty page.

    After switching back to sweetdate, again, same issue, users not showing up and not able to log in.
    However, going to /members directly shows all users.

    This is a brand new install with no other plugins using bp 1.8.1 except for the 1 function I replaced “function bp_core_time_since” with a previous version as suggested by http://buddypress.org/support/topic/warning-division-by-zero-bp-core-functions-php-on-line-640/

    #1772
     SQadmin
    Keymaster

    Hi,
    It is advisable not to replace core files,

    To resolve that error on 404 page template please read this topic. It is because of your old PHP version: https://archived.seventhqueen.com/forums/topic/404-page-error

    We don’t get any of these errors. Give us an email with access to your site to take a look.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?