• Resolved Mikhail Alferov

    (@malferov)


    I see in error_log some deprecation:

    PHP Deprecated: Creation of dynamic property YARPP::$is_custom_template is deprecated in wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 56

    PHP Deprecated: Creation of dynamic property YARPP::$db_options is deprecated in plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 69

Viewing 14 replies - 1 through 14 (of 14 total)
  • Confirm. Please, adapt plugin to PHP 8.2

    Still seeing those errors with version 5.30.3

    Hallo,

    I must report same or similar messages:

    Deprecated: Creation of dynamic property YARPP::$is_custom_template is deprecated in /.../wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 56
    
    
    Deprecated: Creation of dynamic property YARPP::$db_options is deprecated in /.../wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php on line 69

    Warning: Cannot modify header information – headers already sent by (output started at /…/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:56) in /…/wp-admin/includes/misc.php on line 1444

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:56) in /…/wp-includes/functions.php on line 6891

    Warning: Cannot modify header information – headers already sent by (output started at /…/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:56) in /…/wp-includes/pluggable.php on line 1427

    Warning: Cannot modify header information – headers already sent by (output started at /…/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:56) in /…/wp-includes/pluggable.php on line 1430

    </blockquote>

    Reported the bugs while updating ClassicPress:

    https://github.com/ClassicPress/ClassicPress-v2/issues/139

    Would be happy to be able to update to php 8.2 ??

    Kind regards!

    S?nke

    • This reply was modified 1 year, 4 months ago by soenke22.
    • This reply was modified 1 year, 4 months ago by soenke22.
    • This reply was modified 1 year, 4 months ago by soenke22.

    Still seeing those errors with version 5.30.4

    Plugin Author YARPP

    (@jeffparker)

    This is on our radar. Code contributions are welcome too.

    What can I do to help?

    Fix is easy. Add this code to YARPP class (YARPP_Core.php):

        /**
         * @var bool
         */
        public $is_custom_tempalte;
    
        /**
         * @var YARPP_DB_Options
         */
        public $db_options;

    @jeffparker Is there YARPP on GitHub?

    Hallo,

    where do i add the code?

    I don’t use the “custom-template” but the “random-template”.

    Thanks for help.

    Wendihihihi

    (@wendihihihi)

    6 months later, no fix. And it’s still on their radar. Yeah right.

    Wendihihihi

    (@wendihihihi)

    @vjik Doesn’t work because of the typo.

    Plugin Author YARPP

    (@jeffparker)

    This should be resolved in the latest version (v5.30.7). Can you please upgrade and let us know.

    Wendihihihi

    (@wendihihihi)

    Looks good now.

    Thanks for the fix

    Plugin Author YARPP

    (@jeffparker)

    @wendihihihi You’re very welcome. Also welcome any feature requests.

    Wendihihihi

    (@wendihihihi)

    I will develop a new website in the coming months, so there might be some requests or suggestions.

    Thank you

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘PHP 8.2 Dynamic properties for class’ is closed to new replies.