WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Facebook Like Share Button
[resolved] Deprecated: Assigning the return value of new by reference is deprecated (2 posts)

  1. Remco Tolsma
    Member
    Posted 4 months ago #

    In the error logs of an hosting environment we see a lot of the following error:

    Deprecated: Assigning the return value of new by reference is deprecated in \wwwroot\wp-content\plugins\woocommerce-facebook-share-like-button\tsang_fbsharelike.php on line 536

    https://plugins.trac.wordpress.org/browser/woocommerce-facebook-share-like-button/trunk/tsang_fbsharelike.php#L536

    Can you fix this by changing the following from:

    $TSANG_WooCommerce_FbShareLike_Button = &new TSANG_WooCommerce_FbShareLike_Button();

    to:

    $TSANG_WooCommerce_FbShareLike_Button = new TSANG_WooCommerce_FbShareLike_Button();

    Thanks!

    https://wordpress.org/plugins/woocommerce-facebook-share-like-button/

  2. terrytsang
    Member
    Plugin Author

    Posted 4 months ago #

    @Remco Tolsma, i have updated the code based on your request. Cheers!

Reply

You must log in to post.

About this Plugin

About this Topic