• I’m seeing the following warning from your plugin when WP_DEBUG is set to true. Should be a quick fix. Thanks!

    Warning: newrelic_add_custom_parameter(): newrelic_add_custom_parameter: expects parameter to be scalar, object given in /var/app/current/wp-content/plugins/wp-newrelic/classes/class-wp-nr-apm.php on line 61

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

    (@ahosni)

    Hello Taylor,

    Thank you for bringing this to our attention. We’ll begin work on that soon and let you know once it has been corrected.

    Amr

    Tyrel Kelsey

    (@ninnypants)

    Hey Taylor,

    Could you give me a list of plugins you’re using and if possible the value of the $template variable when it’s being passed to set_template(). The easiest way to get that would probably be to just drop a var_dump() call at the top of this function https://github.com/10up/wp-newrelic/blob/master/classes/class-wp-nr-apm.php#L59

    Thread Starter Taylor Gorman

    (@taylorgorman)

    Just now circling back to this. The result of that var_dump() is object(Roots\Sage\Wrapper\SageWrapping)#1789 (2) { ["slug"]=> string(4) "base" ["templates"]=> array(2) { [0]=> string(19) "base-front-page.php" [1]=> string(8) "base.php" } } so it is a conflict with my theme framework, Sage by Roots (https://roots.io/sage/). It’s a popular framework so I’m surprised you haven’t run into this before. But if it’s modifying a global variable in a breaking way, that’s not cool. What do you recommend?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning appearing with WP_DEBUG on’ is closed to new replies.