WordPress.org

Support

Support » Plugins and Hacks » P3 (Plugin Performance Profiler) » [Resolved] PHP STRICT Warning "Only variables should be passed by reference"

[Resolved] PHP STRICT Warning "Only variables should be passed by reference"

  • Hi,

    Noticed the following warning / error in my logs:

    URL: http://example.com/wp-admin/network/settings.php
    Referrer: http://example.com/wp-admin/network/plugins.php
    Error(E_STRICT): Only variables should be passed by reference
    Source: /var/sites/g/example.com/public_html/wp-content/plugins/p3-profiler/p3-profiler.php [56]
    
    Trace:
    #1 /var/sites/g/example.com/public_html/wp-admin/network/settings.php:11 - require_once('/var/si...')
    #2 /var/sites/g/example.com/public_html/wp-admin/network/admin.php:13 - require_once('/var/si...')
    #3 /var/sites/g/example.com/public_html/wp-admin/admin.php:30 - require_once('/var/si...')
    #4 /var/sites/g/example.com/public_html/wp-load.php:29 - require_once('/var/si...')
    #5 /var/sites/g/example.com/public_html/wp-config.php:163 - require_once('/var/si...')
    #6 /var/sites/g/example.com/public_html/wp-settings.php:195 - include_once('/var/si...')
    
    POST:
    array (
    )
    
    GET:
    array (
    )

    This is probably an easy fix, it seems the use of the end function isn’t quite correct according to the docs for the single parameter passed in:

    This array is passed by reference because it is modified by
    the function. This means you must pass it a real variable and not
    a function returning an array because only actual variables may be
    passed by reference.

    Cheers,
    Dean.

    http://wordpress.org/extend/plugins/p3-profiler/ version 1.4.1

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] PHP STRICT Warning "Only variables should be passed by reference"’ is closed to new replies.
Skip to toolbar