• Resolved jpresley23

    (@jpresley23)


    There is a Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Adobe_Analytics::init() should not be called statically in /Users/jpresley/Sites/wordpressunified/httpdocs/wp-includes/plugin.php on line 429 notice.

    This can be fixed by either changing the lines

    add_action('init', array('Adobe_Analytics', 'init'));
     add_action( 'wp_print_footer_scripts', array('Adobe_Analytics', 'script'), 50 );

    to

    add_action('init', array(&$adobe_analytics, 'init'));
      add_action( 'wp_print_footer_scripts', array( &$adobe_analytics, 'script'), 50 );

    adobe_analytics.php.
    Alternatively you can change the definitions of ‘script’ and ‘init’ methods to public static function.

    https://www.ads-software.com/plugins/adobe-analytics/

Viewing 1 replies (of 1 total)
  • Austin

    (@austyfrosty)

    Passing the object by reference would be incorrect. Just omit the ampersand before the $adobe_analytics object.

Viewing 1 replies (of 1 total)
  • The topic ‘Strict Standards error notice’ is closed to new replies.