• Resolved Talkless

    (@talkless)


    Hi,

    I noticed warnings in error log, once per any page:

    PHP Warning: Missing argument 3 for icl_object_id(), called in /var/www/clients/client1/web14/web/wp-content/plugins/page-in-widget/page-in-widget.php on line 49 and defined in /var/www/clients/client1/web14/web/wp-content/plugins/polylang/include/wpml-compat.php on line 161

    Looks like it’s some kind conflict with Page In Widget 1.2 plugin?

    Polylang 1.4, PHP 5.3.10.

    http://wordpress.org/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    You are right. The function documentation does *not* specify that the 3rd parameter is optional, but looking at WPML 2.0.4.1 code, it *is* optional and defaults to false. Thus I will modify the Polylang code to take that into account

    Thread Starter Talkless

    (@talkless)

    Good to hear that, thank you!

    Plugin Author Chouby

    (@chouby)

    I will add the fix in v1.4.1.
    Waiting for this, you can make the modification yourself:
    In polylang/include/wpml-compat.php at line 161, replace

    function icl_object_id($id, $type, $return_original_if_missing, $lang = false) {

    by

    function icl_object_id($id, $type, $return_original_if_missing = false, $lang = false) {

    Thread Starter Talkless

    (@talkless)

    Yep, it did the trick.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing argument 3 for icl_object_id()’ is closed to new replies.