Forums

AWP error on posts submenu (admin) (3 posts)

  1. nprignano
    Member
    Posted 1 year ago #

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in ~/wp-content/plugins/aWP/xmlparser.php on line 16

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of array_unshift(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in ~/wp-content/plugins/aWP/xmlparser.php on line 64

    line 16:
    xml_set_object($this->parser, &$this);

    line 64:
    array_unshift($this->parents, &$this->parent);

  2. nprignano
    Member
    Posted 1 year ago #

    Also, if you remove the & before $this in both lines, the error goes away but the page content for the posts section does not load fully.

  3. Ajd777
    Member
    Posted 1 year ago #

    What version of PHP are you using to get this warning?

    Unfortunately, the ampersands must remain to ensure PHP 4 compatibility.

Topic Closed

This topic has been closed to new replies.

About this Topic