Forum Replies Created
-
In reply to: Security issue: Need to contact devs
Hi @hatherley
security [at] wordpress.org is the place to contact about this kind of thing.
The speed improvements of 7.0 are hard to resist. Apparently it’s 2x as fast as 5.6 (I haven’t upgraded yet) but if you can’t use your caching plugin yet then personally I’d wait. I reckon you’ll get a faster website with caching in place V the speed improvements of 7.0 without caching.
In reply to: Notification emails after importEarlier today I added the following to my functions.php file:
add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );
No @mention emails were generated since then. As soon as I commented that code out, within 5-10 minutes thirteen @mention email notifications went out – all with links to content that is years old (pre-import).
@reedy something custom is running which is causing
bp_activity_do_mentionsto execute. Did you say you deactivated all of your plugins and custom code? If so, then I suspect the importer is still active. I’m not familiar with it, because it’s bbPress-based but the guys over at that forum should be able to tell you how to deactivate it.In reply to: Notification emails after import@reedy to my knowledge BuddyPress doesn’t implement any cron jobs, especially ones that send email.
they seem to more or less be coming out every time a page is loaded
This indicates something is hooked to
init, orbp_loadedetc. But that would almost certainly be custom code because nothing in BuddyPress or bbPress would hook to those events and send email.Have you fully disabled the importer script?
In reply to: Notification emails after importI very much doubt my install has been compromised. In fact, searching through the buddypress support forum it seems this is an issue that crops up after imports
That suggests your import script is the issue. Which script are you using?
In reply to: Notification emails after importIn the mean time you could ask your host to deactivate your mail server, until you find a fix?
In the mean time you could ask your host to deactivate your mail server, until you find a fix?
That should have been posted on another topic. sorry about that! I’ve deleted it from above 🙂
In reply to: Notification emails after importIf you’re running vanilla WordPress, with BuddyPress as the only plugin installed and you’re sure you have no custom code in place, it may mean your install has been compromised. You should check to be sure this isn’t the case.
Just a thought, have you tried using a standard theme such as Twenty Fifteen?
Those pages don’t actually use CPTs at all which means you might not be able to use the
scripts_to_footer_post_typeshook in this case. Which scripts are you trying to move to the footer? It’s easy to move them manually (without the need for a plugin). When enqueuing the script, you set the 5th param ofwp_enqueue_script()totrue.Ref: https://codex.wordpress.org/Function_Reference/wp_enqueue_script
Some plugin developers do require more recent versions of PHP but by doing that they limit their potential number of users. The solution could be for WordPress to add an admin notice “You are using an insecure version of PHP, please bug your host to upgrade”. Then once the stats indicate a small number of are users left on 5.2, they can stop supporting it. Note though, even a 1% figure for 5.2 could amount to millions of websites (considering the huge number of WP users overall).
Also, WordPress is doing lots already by working closely with hosts to make sure they’re all aware of the PHP version they’re offering and in cases where it is very outdated, urging the host to upgrade.
All that said, JavaScript is now coming into the game 😉
In reply to: Notification emails after importif there is a queue still, it’s in your application’s database/code somewhere
BuddyPress doesn’t queue up emails in this way. You should deactivate all custom code you’re running, that includes any import scripts or custom libraries, plugins, code snippets in functions.php or bp-custom.php and then check again if mail is being sent out.
Agreed @mcpeanut, the speed improvements alone are worth the upgrade. PHP 7 also has some useful features that us developers would love to use. Problem is, most cheap hosts will still be on something like 5.4 so we can’t use any of the new features in our plugins.
To get an idea what version of PHP WordPress users are on, take a look at these stats:
In reply to: PM username autocomplete without friend moduleOops, sorry. Yes it should be defined as
true. Good spot @shanebpIn reply to: PM username autocomplete without friend moduleTry setting
BP_MESSAGES_AUTOCOMPLETE_ALLtofalse. For example, add this to either your theme’s functions.php or your bp-custom.php file:define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', false );Please note I haven’t tested.
In reply to: Notification emails after importBP uses the
wp_mail()function to send email. Ref https://developer.wordpress.org/reference/functions/wp_mail/In reply to: Notification emails after import@shanebp’s suggestion will mark web notifications as “read”. Regarding email notifications, if they’ve already been triggered and are sitting in a mail queue waiting to be sent, I suggest you contact your host. Hopefully they can delete the whole batch for you directly.
BuddyPress now includes PHP 7 in its tests so sites running PHP 7 should be covered:
Ref: https://twitter.com/JJJ/status/673520650624061441
Regarding taking advantage of PHP 7 features, the plugin won’t do that. Any feature introduced after PHP 5.2 won’t be in BuddyPress yet because 5.2 is the minimum requirement to run WordPress.
In reply to: Where to learn.The Codex is maintained by volunteers (we’re all volunteers here at BP, even the core devs). The good thing is it’s an open source project so you can edit pages, and add new info yourself if you see something that needs improving.
In reply to: Sizing specific avatar imgYou should look at the page source and find a suitable wrapper class (that is already in existence). For example:
<div class="this-could-be-your-wrapper-class"> <div class="so-could-this"> <img src="" alt="" /> <span class="this-would-be-useless"></span> </div> </div>In reply to: buddypress only shows admin memberSee the Members Loop article for details on how to output a member list.
In reply to: profile avatar overrides menuI can’t reproduce the problem. Do you have any plugins activated aside from BP? I’m using the latest WP (4.3.1) and BP (2.4.0).
In reply to: profile avatar overrides menuAre you sure that’s the Twenty Fourteen theme? I see this:
In reply to: Where is the group directory?Which theme are you using? Try Twenty Fifteen to see if it looks like the documentation screenshot.
In reply to: Sizing specific avatar imgHow about being more specific with your CSS selector?
.some-wrapper-class .avatar-150 { // ... }In reply to: Where is the group directory?Be sure you’ve created a page called Groups under Dashboard > Pages and then go to example.com/groups in your web browser. You should see a listing of all of your groups.