• Resolved monetenfuchs

    (@monetenfuchs)


    Guten Tag,

    Im WP_DEBUG-Modus wird mir folgender Fehler angezeigt:

    Deprecated: Creation of dynamic property PrliOptions::$link_redirect_action is deprecated in /kunden/xxxxxx_xxxxx/wp/wp-content/plugins/pretty-link/app/models/PrliOptions.php on line 42

    Wie kann ich diesen Fehler beheben?

    Viele Grü?e

    AW

Viewing 7 replies - 1 through 7 (of 7 total)
  • Tyler

    (@tylerthedude)

    Hi @monetenfuchs,

    Thank you for reaching out. Our developers have tried searching the code base for the latest version of Pretty Links (3.6.0 at the time of writing this), but there doesn’t appear to be a “link_redirect_action” property we’re using.

    Are you on an older version of Pretty Links? If so, please try upgrading to the latest version and see if that removes the deprecation notice from your site’s debug.log file going forward.

    I hope this helps!

    Kind regards,

    Thread Starter monetenfuchs

    (@monetenfuchs)

    Hallo,

    vielen Dank für die Hilfe. Wir nutzen aktuell die Version 3.6.0 und der Verfallshinweis wurde leider nicht entfernt!

    Gibt es noch einen anderen L?sungsvorschlag.

    Viele Grüsse

    AW

    Thread Starter monetenfuchs

    (@monetenfuchs)

    Hallo, obwohl wir das Plugin gerade auf die Version 3.6.1 aktualisiert haben ist der Fehler immer noch da!

    $this->{$key} = $value;

    über einen L?sungsvorschlag würde ich mich sehr freuen.

    VG

    Armin

    Tyler

    (@tylerthedude)

    Hi @monetenfuchs,

    Thank you for getting back to me. Do you have any additional plugins active on the site that integrate with Pretty Links? The “link_redirect_action” option isn’t something that we store in the database, so I’m wondering if it’s coming from somewhere else.

    If you have any plugins that integrate with us, please try temporarily deactivating them and seeing if that helps to remove the deprecation notice you’re receiving.

    If that still doesn’t help, please add this code snippet either to your theme’s functions.php or using a plugin such as WP Code and reload the admin dashboard once it’s added. This will remove the “link_redirect_action” option stored in the database so you should no longer receive that deprecation notice going forward:

    add_action( 'admin_init', function() {
        $options = get_option( 'prli_options' );
    
        if ( $options && is_array( $options ) ) {
            unset( $options['link_redirect_action'] );
    
            $prli_options = new PrliOptions( $options );
            $prli_options->store();
        }
    } );

    I hope this helps!

    Kind regards,

    Thread Starter monetenfuchs

    (@monetenfuchs)

    Hallo Tyler,

    vielen Dank für den Code. Ich habe diesen in meine functions.php hinzugefügt und erhalte jetzt diese Meldung:

    PHP Deprecated: Creation of dynamic property PrliClick::$browser is deprecated in /kunden/xxxxxx_xxxxx/wp/wp-content/plugins/pretty-link/app/models/PrliUtils.php on line 721
    PHP Deprecated: Creation of dynamic property PrliClick::$btype is deprecated in /kunden/xxxxxx_xxxxx/wp/wp-content/plugins/pretty-link/app/models/PrliUtils.php on line 722

    VG

    AW

    Tyler

    (@tylerthedude)

    Hi @monetenfuchs,

    Thank you for getting back to me. It doesn’t look like I mentioned this in my last response, but once you’ve reloaded the admin dashboard with that code I provided added you can remove it from your functions.php file as the “link_redirect_action” option will be deleted from the database.

    Those two other deprecation notices you’re receiving appear to be a PHP 8 compatibility issue on our end. Our developers are working on making the plugin fully compatible with PHP 8 and those changes will fix these sorts of notices, but in the meantime, you can safely ignore them in your log file and Pretty Links will still function correctly.

    The original notice you were receiving seems to have been caused by an old option we might’ve been storing in the plugin but removed support for in a later release, so I wanted to ensure we got that option removed for you.

    I hope this helps!

    Kind regards,

    Thread Starter monetenfuchs

    (@monetenfuchs)

    Ok, danke für die Antwort, dann warte ich mal das n?chste Update ab!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘DEBUG-Fehler’ is closed to new replies.