Strict Notice: Only variables should be passed by reference


#1

There is an error. Please report the message (Piwik 1.8.2) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Strict Notice: Only variables should be passed by reference in /home/webmaster/sites/XXXXXX/plugins/DBStats/MySQLMetadataProvider.php on line 254 

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/home/webmaster/sites/XXXXXX/plugins/DBStats/MySQLMetadataProvider.php:254]
#1 Piwik_DBStats_MySQLMetadataProvider->getRowCountsByArchiveName(...) called at [/home/webmaster/sites/XXXXXX/plugins/DBStats/MySQLMetadataProvider.php:197]
#2 Piwik_DBStats_MySQLMetadataProvider->getRowCountsAndSizeByBlobName(...) called at [/home/webmaster/sites/XXXXXX/plugins/DBStats/API.php:245]
#3 Piwik_DBStats_API->getIndividualReportsSummary(...) called at [:]
#4 call_user_func_array(...) called at [/home/webmaster/sites/XXXXXX/core/API/Proxy.php:190]
#5 Piwik_API_Proxy->call(...) called at [/home/webmaster/sites/XXXXXX/core/API/Request.php:128]
#6 Piwik_API_Request->process(...) called at [/home/webmaster/sites/XXXXXX/core/ViewDataTable.php:421]
#7 Piwik_ViewDataTable->loadDataTableFromAPI(...) called at [/home/webmaster/sites/XXXXXX/core/ViewDataTable/HtmlTable.php:81]
#8 Piwik_ViewDataTable_HtmlTable->main(...) called at [/home/webmaster/sites/XXXXXX/core/Controller.php:152]
#9 Piwik_Controller->renderView(...) called at [/home/webmaster/sites/XXXXXX/plugins/DBStats/Controller.php:180]
#10 Piwik_DBStats_Controller->getIndividualReportsSummary(...) called at [:]
#11 call_user_func_array(...) called at [/home/webmaster/sites/XXXXXX/core/FrontController.php:138]
#12 Piwik_FrontController->dispatch(...) called at [/home/webmaster/sites/XXXXXX/index.php:53]

OS Linux


Debian GNU/Linux Wheezy/Sid (testing)

PHP


[~] php --version
PHP 5.4.4-2 (cli) (built: Jun 19 2012 07:38:55)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans


libapache2-mod-php5     5.4.4-2
php-apc                 3.1.10-1
php-pear                5.4.4-2
php5                    5.4.4-2
php5-cgi                5.4.4-2
php5-cli                5.4.4-2
php5-common             5.4.4-2
php5-curl               5.4.4-2
php5-exactimage         0.8.5-4
php5-ffmpeg             0.6.0-2.2
php5-gd                 5.4.4-2
php5-geoip              1.0.7-8
php5-gmp                5.4.4-2
php5-imagick            3.1.0~rc1-1+b2
php5-imap               5.4.4-2
php5-intl               5.4.4-2
php5-mcrypt             5.4.4-2
php5-mysql              5.4.4-2
php5-pgsql              5.4.4-2
php5-snmp               5.4.4-2
php5-sqlite             5.4.4-2
php5-svn                1.0.1-1.2
php5-tidy               5.4.4-2
php5-xdebug             2.2.0-1
php5-xmlrpc             5.4.4-2
php5-xsl                5.4.4-2

MySQL


[~] mysql --version
mysql  Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2


libmysqlclient-dev              5.5.24+dfsg-4
libmysqlclient18:amd64          5.5.24+dfsg-4
mysql-client                    5.5.24+dfsg-4
mysql-client-5.5                5.5.24+dfsg-4
mysql-common                    5.5.24+dfsg-4
mysql-server                    5.5.24+dfsg-4
mysql-server-5.5                5.5.24+dfsg-4
mysql-server-core-5.5           5.5.24+dfsg-4
php5-mysql                      5.4.4-2


(vipsoft) #2

That’s definitely a bug. Please open a ticket on dev.piwik.org. Thanks.


(Matthieu Aubry) #3

Thanks for the report - can you pelase try the fix in http://dev.piwik.org/trac/changeset/6587