• Resolved Miroslav Glavi?

    (@miroslavglavic)


    INSERT URL HERE is my website. Not putting it:

    Howdy! WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, Years Since. First, visit your website (INSERT URL HERE) and check for any visible issues. Next, visit the page where the error was caught (INSERT URL HERE/wp-admin/post.php?post=491&action=edit&message=4) and check for any visible issues. Please contact your host for assistance with investigating this issue further. If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. INSERT URL HERE/wp-login.php?action=enter_recovery_mode&rm_token=jNs6OlW8Uwm6DSWtoYcPc8&rm_key=DNM29sjL8JpQ9SblnG52Y0 To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.3.1
    Current theme: Sahifa (version 5.8.2)
    Current plugin: Years Since (version 1.3.2)
    PHP version 8.2.6 Error Details An error of type E_ERROR was caused in line 97 of the file /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php. Error message: Uncaught TypeError: date_diff(): Argument #1 ($baseObject) must be of type DateTimeInterface, bool given in /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php:97
    Stack trace: 0 /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php(97): date_diff() 1 /home/www/INSERT URL HERE/wp-includes/shortcodes.php(395): Laurencebahiirwa\YearsSince->shortcode_years_since() 2 [internal function]: do_shortcode_tag() 3 /home/www/INSERT URL HERE/wp-includes/shortcodes.php(235): preg_replace_callback() 4 /home/www/INSERT URL HERE/wp-includes/class-wp-hook.php(310): do_shortcode() 5 /home/www/INSERT URL HERE/wp-includes/plugin.php(205): WP_Hook->apply_filters() 6 /home/www/INSERT URL HERE/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1864): apply_filters() 7 /home/www/INSERT URL HERE/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response() 8 /home/www/INSERT URL HERE/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Posts_Controller->get_item() 9 /home/www/INSERT URL HERE/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request() 10 /home/www/INSERT URL HERE/wp-includes/rest-api.php(545): WP_REST_Server->dispatch() 11 /home/www/INSERT URL HERE/wp-includes/rest-api.php(2911): rest_do_request() 12 [internal function]: rest_preload_api_request() 13 /home/www/INSERT URL HERE/wp-includes/block-editor.php(740): array_reduce() 14 /home/www/INSERT URL HERE/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() 15 /home/www/INSERT URL HERE/wp-admin/post.php(187): require('/home/www/INSERT URL HERE…') 16 {main} thrown
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author laurencebahiirwa

    (@laurencebahiirwa)

    Thanks for raising this Miroslav. I haven’t tested this for PHP 8.2. The details you shared are really helpful. Let me work on a solution to share by early in the week.

    Plugin Author laurencebahiirwa

    (@laurencebahiirwa)

    Hello Miroslav,

    Again, thanks for raising this. I apologize this is later than I anticipated but I have pushed a fix and would love your feedback on this. I have tested PHP 8.2 and 8.3 for this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error on the plugin’ is closed to new replies.