• Hi! Your plugin looks great. Please, can do you solve this PHP warning?

    Deprecated: Optional parameter $site_id declared before required parameter $all_favorites is implicitly treated as a required parameter in?wp-content/plugins/favorites/app/Helpers.php?on line?108

Viewing 3 replies - 1 through 3 (of 3 total)
  • husk3r

    (@husk3r)

    Hello, I am getting the same warning a lot:

    [21-Sep-2024 16:43:32 UTC] PHP Deprecated: Required parameter $all_favorites follows optional parameter $site_id in /home/cpaneluser/mydomain.com/wp-content/plugins/favorites/app/Helpers.php on line 108

    Thread Starter wp-centrics

    (@wpcentrics)

    Hi. After I while, I patched it. Hope the autor release a patched version soon!

    Simply add into the /app/Helpers.php, at line 108 the third param:

    = array()

    Here is how it should looks now:

    public static function pluckGroupFavorites($group_id, $site_id = 1, $all_favorites = array() )

    Hey Thx, it works great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.