Opened 9 years ago
Closed 9 years ago
#6874 closed defect (bug) (fixed)
BP_Email: user registration in WP 3.8
Reported by: | imath | Owned by: | djpaul |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Just tested on:
- Multisite
- BuddyPress network activated WordPress 3.8
- both user and site registrations allowed
If as a user i try to register form site.url/register, once the form is submitted i get an email template output to the user ?
See screenshot.
Change History (4)
#2
@
9 years ago
@DJPaul it looks like the BP Email Feature is using a function is_customize_preview()
that was introduced in WP 4.0.
PHP Fatal error: Call to undefined function is_customize_preview() in /Users/imath/Plugins/buddypress/src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php on line 190, referer: http://develop-mu.dev/register/
So as we support back to WP 3.9....
#3
@
9 years ago
That's unfortunate. The customizer implementation for the email itself doesn't load for WP 3.9: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-customizer-email.php#L23
But since that call in the footer of the email template is only there to make the customizer works (it needs to load some JS files), and since the email customiser code won't already load on WP 3.9, we can modify that line to read if function_exists('is_customize_preview') && is_customize_preview()....
Most likely something is causing a PHP fatal or notice. What is in yoru log file?