daymobrew
Forum Replies Created
-
Forum: Plugins
In reply to: [ManageWP Worker] Thousands of warnings and noticesI see them in PHP 8.4.19.
There’s a solution at: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated, for example:
function callback($e = null, MWP_Http_ResponseInterface $response = null)to
function callback($e = null, ?MWP_Http_ResponseInterface $response = null)- This reply was modified 1 week, 6 days ago by daymobrew. Reason: Add solution
Forum: Plugins
In reply to: [Notification for Telegram] Notification for the Newsletter pluginAn idea: Call this plugin from your Newsletter plugin. Obviously there would need to be some settings that a user can enable/disable.
<?php if (function_exists('nftb_send_teleg_message'){ nftb_send_teleg_message($the_message'); }I have set up a staging site and it only has WordPress 6.8.3, WooCommerce 10.2.2 and WooCommerce Square 5.1.0.
I get the same warnings:
[13-Oct-2025 09:05:13 UTC] PHP Deprecated: Optional parameter $location_ids declared before required parameter $start_time is implicitly treated as a required parameter in /wp-content/plugins/woocommerce-square/includes/Gateway/API.php on line 734I don’t know why you do not see it but it is a deprecation since 8.0.0.
I switched to PHP 8.3 and the warning is there when I log into the admin area.
There are no fatal logs.
Forum: Plugins
In reply to: [New User Approve] Fatal error on PHP 7.3.33 – fn($cols)I installed that version and there are no errors. I haven’t needed to approve a new user for a while so I will assume that that part is okay.
My code is sorted (though I didn’t make any changes). I’ve no idea what was going wrong. Thank you for the help.
Thanks for the second update – I am using
woocommerce_allow_send_queued_transactional_emailand I’ll keep going with my experiments.A quick fix is to add ‘@’ before the dns_get_record() call i.e.
$dns_records = @dns_get_record( $domain, DNS_NS ); // Fetches the DNS records of type NS (Name Server)as this will supress the PHP warning.
I will submit this suggestion to the Jetpack repository.
I understand that some online features are not going to work in offline mode but the code should handle this gracefully, without throwing warnings.
The code in question is in the
get_nameserver_dns_records()function. At the top of it there’s a check for thedns_get_record()function. There should then be a check for offline mode and return an empty array if true. This would fix both warnings.- This reply was modified 1 year, 3 months ago by daymobrew.
Yes, it is in offline mode. The Settings page says:
Currently in Offline Mode (some features are disabled) because: Your site URL is a known local development environment URLForum: Plugins
In reply to: [Email Log] _load_textdomain_just_in_time was called incorrectlyIn email-log/load-email-log.php there is code that loads a lot of the plugin at ‘plugins_loaded’, which is too early, but note the comment above the code:
// Ideally the plugin should be loaded in a later event likeinitorwp_loaded. // But some plugins like EDD are sending emails ininitevent itself, // which won't be logged if the plugin is loaded inwp_loadedorinit. add_action( 'plugins_loaded', array( $email_log, 'load' ), 101 );Changing the add_action() line to
add_action( 'wp_loaded', array( $email_log, 'load' ), 1 );cleared the warning for me, but I don’t have EDD.
me-south-1 = Middle East (Bahrain)
For @korsani they can Inspect Element to see which one is really Stockholm – I expect that the select/option markup includes Stockholm as a ‘name’ attribute.
I’m running my site in English so I won’t see any issue.
I had a quick look at the languanges/*.po files looking for Stockholm and Ireland.
I think that some of the po files are out of date and don’t list ‘Stockholm’ at all.
backupwpup.pot has ‘Amazon S3: Europe (Stockholm)’. The DE, DE formal and ES po files have translated this string. The others have not (FR, IT, JP, BR, PT, RU, SE, CN). This might be causing the issue (even though it’s not logical that it would).
The error is because there are 2 empty lines at the end of cardoza_facebook_like_box.php.
The last few lines are (note the blank lines):
add_action( 'admin_enqueue_scripts', 'add_promotion_to_admin_footer' );
add_action( 'login_enqueue_scripts', 'add_promotion_to_admin_footer' );
?>The best solution is to remove the close
?>