PHP Warnings

I am getting the following PHP Warnings in my error_log file:

  • PHP WARNING: "Argument 2 passed to elgg_extract() must be of the type array, null given, called in /home/ckarma/public_html/engine/lib/comments.php on line 284 and defined" in file /home/ckarma/public_html/engine/lib/elgglib.php (line 1246)
  • PHP WARNING: "array_merge(): Argument #2 is not an array" in file /home/ckarma/public_html/engine/classes/Elgg/Database/Annotations.php (line 372)

Is this ok? Why am I getting this warnings? Is it due to any 3rd party plugin?

  • I am using Release - 1.12.4, Version - 2015041400

  • Confirmed.

    The same issue:

    Argument 2 passed to elgg_extract() must be of the type array, null given, called in /www/engine/lib/comments.php on line 284 and defined" in file /www/engine/lib/elgglib.php (line 1246)" while reading response header from upstream

    Request:

    POST /action/comments/add

    Code snippet:

        notify_user($entity->owner_guid,
                $user->guid,
                elgg_echo('generic_comment:email:subject'),
                elgg_echo('generic_comment:email:body', array(
                    $comment_text,
                    $entity->getURL(),
                    $user->getURL()
                )),
                array(
                    'object' => $comment,
                    'action' => 'create',
                )
           );

    Elgg 1.12.5