sao987
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Social Icons] Icon formatting after upgrade to Version 3.2.8I had a quick look. They are probably wanting to commercialise this plugin so they made a lot of changes. The ‘Icon Height’ section is commented out, moved into ‘Width,’ which is probably the reason.
I don’t know how they expect anyone to pay for this plugin, but good luck to them…
Forum: Plugins
In reply to: [Easy Social Icons] Icon formatting after upgrade to Version 3.2.8Same, it’s a very unfortunate problem, left alignment also stopped working
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Any plan for php 8.2 support?Hi, just to let you know that other deprecation notices also appear occasionally, for example, here:
[24-Oct-2024 15:49:49 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:49:54 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:08 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:09 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:11 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:11 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:12 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:14 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 198
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 197
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 198
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 197
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 198
[24-Oct-2024 15:50:15 UTC] PHP Deprecated: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/feeds/google.php on line 197So whatever the fix was, it does not seem to solve the problem.
As you can see, the code is still null on line 376 for shared.php:
function simcal_get_timezone_from_gmt_offset($offset)
{
if (is_numeric($offset)) {
if (0 === intval($offset)) {
return 'UTC';
} else {
$offset = floatval($offset) * 3600;
}
$timezone = timezone_name_from_abbr(null, $offset, false);
// This is buggy and might return false:
// @see http://php.net/manual/en/function.timezone-name-from-abbr.php#86928
// Therefore:
if (false == $timezone) {
$list = timezone_abbreviations_list();
foreach ($list as $abbr) {
foreach ($abbr as $city) {
if ($offset == $city['offset']) {
return $city['timezone_id'];
}
}
}
}
return $timezone;
}
return null;
}So does google.php, also is still using null parameter:
// Event title & description.
$title = strip_tags($event->getSummary());
$title = sanitize_text_field(iconv(mb_detect_encoding($title, mb_detect_order(), true), 'UTF-8', $title));
$description = wp_kses_post(
iconv(
mb_detect_encoding($event->getDescription(), mb_detect_order(), true),
'UTF-8',
$event->getDescription()
)
);
$whole_day = false;
// Event start properties.
if ('use_calendar' == $this->timezone_setting) {
$start_timezone = !$event->getStart()->timeZone ? $calendar['timezone'] : $event->getStart()->timeZone;
} else {
$start_timezone = $this->timezone;
}
if (is_null($event->getStart()->dateTime)) {
// Whole day event.
$date = Carbon::parse($event->getStart()->date);
$google_start = Carbon::createFromDate($date->year, $date->month, $date->day, $start_timezone)
->startOfDay()
->addSeconds(59);
$google_start_utc = Carbon::createFromDate($date->year, $date->month, $date->day, 'UTC')
->startOfDay()
->addSeconds(59);
$whole_day = true;Passing null to parameter is deprecated since php 8.1
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Any plan for php 8.2 support?I have cleared the cache as per your instructions. I got it in the WP_DEBUG_LOG. There are no special settings for my calendar, and since it’s a PHP deprecation notice, I don’t think the settings are relevant.
[23-Oct-2024 12:15:46 UTC] PHP Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Any plan for php 8.2 support?I can confirm that I still get
Deprecated: timezone_name_from_abbr(): Passing null to parameter #1 ($abbr) of type string is deprecated in /var/www/domain.com/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 376after the update.
Understandable. I tested your plugin and it works perfect. Thanks again!
Thank you very much for your plugin.
Is it possible to make it a simpler snippet like the original one Ultimate Member Cron – Delete users awaiting email confirmation after 5 days without getting confirmed, instead of a standalone plugin? Many thanks
@thirstyjon Since dynamic property will only stop working in PHP9, we can use
#[AllowDynamicProperties]to suppress it for now. Just add it before the class, and wait for the developer to change the codebase.@missveronicatv Really appreciate all your efforts in helping the community Veronica. Looking forward to see your code!
Link to the same unresolved support thread: Schedule User Deletions with WP Cronjob has no effect | ww.wp.xz.cn
Link to the github issue regarding this problem: Schedule User Deletions with WP Cronjob · Issue #79 · ultimatemember/Extended (github.com)
Has anyone bothered to check if the first snippet works?
I don’t think it’s my problem, but I’m not entirely sure.
I have tried manually triggering the cron, including using WP Crontrol, but the users awaiting email are not being deleted. I also tried the edit suggested by user in comment section. Could you confirm that you have tested this in the latest version and that the first one works? @aswingiri
Thanks again for the help, I had a search and found the function to build this page, and come up with a snippet based on your idea.
I will leave it here just in case anyone need it.
——–
It seems I can’t paste the code here because the text editor automatically deletes a portion of it.
Anyway, the function is contained in um-actions-user.php. If you need it, you can build a snippet yourself.
Thank you very much for your snippet. However, it doesn’t seem to change the logout link in login form at all. It doesn’t seem
wp_redirectfilter applies here. Not so sure how the login form functions.This logout redirect url is in the login form, when the user visit the login url while logged in.
@jmslbam Thanks for your CSS snippet! It works well while we continue waiting for CF to resolve the issue.