WordPress.org

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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Facebook Like Share Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic