davinian
Forum Replies Created
-
Forum: Plugins
In reply to: [BP Group Documents] Turn-off or Disable email notifications?Hi Lena, do you have any suggestions to completely disable all emails, for both new files and deleted?
Kind regards,
DavidForum: Plugins
In reply to: [BP Group Documents] Turn-off or Disable email notifications?As a quick fix, I have just commented out the whole
foreachsection in notifications.php around line 123 to 160.Just to confirm, Version 6.6.4.4 appear to have fixed this issue.
Forum: Plugins
In reply to: [Advanced Media Offloader] Problem with other plugins using GuzzleHttpHi @masoudin
Thanks for the message and update – just updated and it look like everything is working as expected with Tides plugin 👍
Forum: Plugins
In reply to: [Advanced Media Offloader] Images not showing@masoudin thank you, so far so good 👍
Forum: Plugins
In reply to: [Advanced Media Offloader] Problem with other plugins using GuzzleHttpHi @masoudin
Thanks for the update — happy to run some tests when the update is ready 👍
Forum: Plugins
In reply to: [Advanced Media Offloader] Images not showingHaving similar issues with Cloudflare R2 – connection works, new images are uploaded to the storage but no preview of image in Media Library, set as Featured Image or added to post/page.
Object permissions are set as Read & Write.
Any thoughts/suggestion?Edit: looks like a 404 error, so wonder if I have the Domain Settings or Custom Path Prefix set right!
Edit 2: Ignore me — I realised I had the “ADVMO_CLOUDFLARE_R2_DOMAIN” setting wrong! 🙏
Forum: Plugins
In reply to: [Cookies and Content Security Policy] Save proof of consentThanks @jonkastonka — 2.28 has resolved the issue 👍
Now I am seeing it, are there any planned updates to the Consent page? I only use Necessary and Experience on this particular site, but I see it’s capturing all 3 “statistics,experience,marketing” when a user clicks the main Accept button, but it only captures “experience” if the user explicitly selects Experience in the cookie settings and choses Save (I changed the text to Confirm my Choices). It might also be handy to default the order to latest first, and possible capture the browser User Agent?
Kind regards,
DavidForum: Plugins
In reply to: [Cookies and Content Security Policy] Save proof of consentHi @jonkastonka
Thanks for quick reply — I do have the the “Save proof of consent” setting checked and can see data is being saved in the db (wp_cacsp_consent), but nothing shows on the “Consent” tab/page. Any thoughts why?
Many thanks for the follow-up and comment on Github.
I tried the bpges-init-batch snippet but nothing happened, emails stayed stuck in the
wp_bpges_queued_itemstable. bpges-debug.log didn’t show anything which I suspect is correct as the snippet doesn’t handle errors, so I enabled WP Debug and found the following in debug.log[30-Oct-2024 07:54:15 UTC] PHP Notice: Undefined variable: activity in /var/www/mysite.tld/htdocs/wp-content/themes/mytheme/functions.php on line 426Line 426 =
'activity_id' => $activity->id,After talking to the client they decided not to send the emails after all 😫 so I flushed the
wp_bpges_queued_itemstable — but I am guessing it might be good to find a fix for this as other people might find it useful?Regarding the snippet to override the number of emails batched by BPGES, I have found the GD Mail Queue plugin (when setup correctly) will intercept all emails sent from WP and BP and queue them in batches of X (50 in my case) — so far all tests with group updates are now working as expected and batches of 50 emails are sent out every 5 mins via GD Mail Queue.
If you need me to test anything or if you have any questions, please let me know, as I do have a dev site with stuck emails.
Regards,
DavidHi @carazo
No, it was the first time I’ve used the plugin on this website, so default settings. Just exported a csv of all users (approx 360), edited the export to add a new Role on approx 140 users, deleted the other users and removed unwanted columns, saved as a new csv and imported selecting update existing users. It all worked as expected, just spotted the errors in Tools > Scheduled Actions.
I’ve subsequently looked on another site that I knew I’d used the plugin in the past and found it was still active and there were over 35K failed errors in Tools > Scheduled Actions! Again no periodic imports enabled — I’ve disabled the plugin and will search for the errors in the db and clear them there.
Hi, I am also seeing the action_scheduler/migration_hook failed errors in Tools > Scheduled Actions.
I don’t have WooCommerce installed and only installed/activated Import and export users and customers to quickly export/import Users and add a new Role on some of them, in the time it took me to do this I have 40+ failed errors.
In the log, alternating failed items says the following which may help identify where it’s coming from?
- action created
- action started via WP Cron
- action failed via WP Cron: Scheduled action for action_scheduler/migration_hook will not be executed as no callbacks are registered.
- action created
- action started via Async Request
- action failed via Async Request: Scheduled action for action_scheduler/migration_hook will not be executed as no callbacks are registered.
It’s highly likely something else is going on in the background, and ActionScheduler is just catching and recording the errors?
Following up on this, I have identified the problem, and have a couple of question which I am hoping you can answer 🙏
SoI updated a group with 226 members this afternoon, bpges-debug.log containsBeginning batch of immediate notifications for 572and no errors, but checking my email logs (I use Brevo) I notice only 96 emails were actually sent. Looking inwp_bpges_queued_itemsI can see the other 130 are stuck.Digging in the server logs there is nothing obvious until I checked the php error log and found
script '/var/www/mywebsite.tld/htdocs/wp-admin/admin-ajax.php' (request: "POST /wp-admin/admin-ajax.php?action=wp_bpges_send_queue&nonce=582010d750") execution timed out (68.861109 sec), terminating— so my php is timing out for the process.I know I could increase the php timeout, but searching online I think it would be better to use something to batch/queue emails — one suggestion is GD Mail Queue plugin, but I wonder if there is a way to force BPGES to send in batches or if you have any other suggestions?
One last thing, is there a way to trigger and send the stuck emails in
wp_bpges_queued_itemsfrom the last group update earlier today?Kind regards,
David- This reply was modified 1 year, 3 months ago by davinian.
Thanks @boonebgorges
Found your troubleshooting notes earlier and have enabled logging so will see what happens.
I suspect the underlying issue may have been another ‘older’ BuddyPress plugin that doesn’t like PHP 8.1 — will do some more testing and see if I can work out what happened — but at the moment everything is working on PHP 7.4.
Regarding
wp_bpges_queued_itemsthanks for clarification, I will clear the old items and monitor.
Kind regards,
David- This reply was modified 1 year, 3 months ago by davinian.