Conversation
supportNotice : Function _load_textdomain_just_in_time was called incorrectly . Translation loading for the business-hours-indicator domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/xxxxxxxxxx.com/wp-includes/functions.php on line 6121 See https://stackoverflow.com/questions/79198701/notice-function-load-textdomain-just-in-time-was-called-incorrectly
Hi @jslom This issue is now fixed. Please update to version 2.4.3.
Thank you! I have updated and noticed some more log deprecation notices with PHP8+ [27-May-2025 01:29:40 UTC] PHP Deprecated: MABEL_BHI_LITE\Core\Models\Checkbox_Option::__construct(): Implicitly marking parameter $dependency as nullable is deprecated, the explicit nullable type must be used instead in /var/www/example.com/wp-content/plugins/business-hours-indicator/core/models/class-checkbox-option.php on line 13 which refers to this line public function __construct( $id, $title, $label, $checked = false, $extra_info = null, Option_Dependency $dependency = null ) I have fixed it with this public function __construct( $id, $title, $label, $checked = false, $extra_info = null, ?Option_Dependency $dependency = null ) This reply was modified 1 year ago by jslom . This reply was modified 1 year ago by jslom . This reply was modified 1 year ago by jslom .
Also [27-May-2025 01:35:51 UTC] PHP Deprecated: MABEL_BHI_LITE\Models\Opening_Hours::__construct(): Implicitly marking parameter $end as nullable is deprecated, the explicit nullable type must be used instead in /var/www/example.com/wp-content/plugins/business-hours-indicator/models/class-opening-hours.php on line 25 which refers to public function __construct(DateTime $start = null, DateTime $end = null) { Fix changed to public function __construct(?DateTime $start = null, ?DateTime $end = null) { This reply was modified 1 year ago by jslom .
Hi @jslom This issue is now fixed. Please update to version 2.4.3.
Thank you! I have updated and noticed some more log deprecation notices with PHP8+ [27-May-2025 01:29:40 UTC] PHP Deprecated: MABEL_BHI_LITE\Core\Models\Checkbox_Option::__construct(): Implicitly marking parameter $dependency as nullable is deprecated, the explicit nullable type must be used instead in /var/www/example.com/wp-content/plugins/business-hours-indicator/core/models/class-checkbox-option.php on line 13 which refers to this line public function __construct( $id, $title, $label, $checked = false, $extra_info = null, Option_Dependency $dependency = null ) I have fixed it with this public function __construct( $id, $title, $label, $checked = false, $extra_info = null, ?Option_Dependency $dependency = null ) This reply was modified 1 year ago by jslom . This reply was modified 1 year ago by jslom . This reply was modified 1 year ago by jslom .
Also [27-May-2025 01:35:51 UTC] PHP Deprecated: MABEL_BHI_LITE\Models\Opening_Hours::__construct(): Implicitly marking parameter $end as nullable is deprecated, the explicit nullable type must be used instead in /var/www/example.com/wp-content/plugins/business-hours-indicator/models/class-opening-hours.php on line 25 which refers to public function __construct(DateTime $start = null, DateTime $end = null) { Fix changed to public function __construct(?DateTime $start = null, ?DateTime $end = null) { This reply was modified 1 year ago by jslom .