PHP Compatibility Index

Is wp-jalali compatible with PHP 8?

Version 5.0.1 · 10,000+ active installs

Breaks on PHP 8.0

wp-jalali 5.0.1 uses PHP features that were removed in PHP 8.0. Sites running this version on PHP 8.0 or newer can show errors when that code runs.

PHP 8.0
✗ 9
PHP 8.1
✗ 9
PHP 8.2
✗ 9
PHP 8.3
✗ 9
PHP 8.4
✗ 9
PHP 8.5
✗ 9

✓ no problems · ⚠ deprecation notices only (still works) · ✗ uses something removed in that PHP version

Not updated for 8.9 years. Nobody seems to maintain this plugin, so problems found here are unlikely to be fixed. If your site uses it, look for a maintained alternative before upgrading PHP.
Check your whole site, not just one plugin. The free PHP Upgrade Check plugin scans every plugin and theme you have installed (including premium and custom ones) and explains each problem. It runs on any host.

What breaks on PHP 8.0

File:lineWhat
lib/date.php:96Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: $format{$i}
lib/date.php:98Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: $format{ ++$i}
lib/date.php:260Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: $format{$i}
lib/date.php:262Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: $format{ ++$i}
lib/date.php:283The left-associativity of the ternary operator has been deprecated in PHP 7.4 and removed in PHP 8.0. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the operations should be executed
lib/date.php:351The left-associativity of the ternary operator has been deprecated in PHP 7.4 and removed in PHP 8.0. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the operations should be executed
lib/date.php:353The left-associativity of the ternary operator has been deprecated in PHP 7.4 and removed in PHP 8.0. Multiple consecutive ternaries detected. Use parenthesis to clarify the order in which the operations should be executed
lib/date.php:420The "isDST" parameter for function mktime() is deprecated since PHP 5.1 and removed since PHP 7.0
lib/date.php:457The "hour" parameter for function mktime() is missing. Passing this parameter is no longer optional. The optional nature of the parameter is deprecated since PHP 5.1 and removed since PHP 8.0

Deprecated (works today, logs notices)

File:lineWhat
lib/date.php:344Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
lib/date.php:351Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
lib/date.php:353Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
lib/date.php:359Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead

Plugin page on WordPress.org: wp-jalali