Yesterday as i was checking my WordPress stats, i saw this error message on my dashboard under stats. I found this steps on how to resolve this issue and it worked perfectly for me and i just want to share it with you all..
Error Message:
Fatal error: Only variables can be passed by reference in /home/../wp-content/plugins/stats/stats.php on line 548
The steps..
Manually execute (via phpMyAdmin or similar) this query, in your WordPress database:
DELETE FROM wp_options WHERE option_name = ’stats_cache’
To permanently resolve the issue edit stats.php (Note: stats.php should be editable, i temporarily change the file permission to 777 and after editing change it back to default permission 644.
Edit the file stats.php, and change line 543:
if ( !$stats_cache = get_option( ’stats_cache’ ) )
$stats_cache = array();
to:
$stats_cache = get_option( ’stats_cache’ );
if ( !$stats_cache || !is_array( $stats_cache ) )
$stats_cache = array();
Warning: Making changes to active plugins is not recommended. If your changes cause a fatal error, the plugin will be automatically deactivated. Deactivate stats plugin before editing.
Like this blog? Why not buy me a cup of coffee?




![[hackers black book]](http://raxso.net/images/hbb-ani-misuse.gif)




