Quantcast
Channel: virus – WordPress.org Forums
Viewing all articles
Browse latest Browse all 1529

marius.cucuruz on "[Plugin: Social Stats Panel] download update.exe?"

$
0
0

I've made some progress by identifying where this is initiated. In your wp_options (or wp_ID_options on multisite) there's a row / option called 'wp_data_newa'. Will investigate further to see who's responsible for this but for now you can (temporarily!) fix it by removing it with an SQL statement:
DELETE FROMwp_optionsWHEREoption_namelike '%wp_data_newa%'

Additionally, if you have a big multi site, you may run a PHP script like this one:

<?php
/**
 * @author Marius Cucuruz
 * @description Fixes the "socialstats" download message by deleting lines WHERE <code>option_name</code> = 'wp_data_newa'
 * @copyright The tab Media, 2014
 */

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );

global $wpdb;

$blogs_details = $wpdb->get_results('SELECT <code>blog_id</code>, <code>domain</code> FROM <code>wp_blogs</code> ORDER BY <code>wp_blogs</code>.<code>blog_id</code> ASC', ARRAY_A);
foreach ($blogs_details as $blogDetails)
{
    if ($blogDetails['blog_id'] == 1)
    {
        echo "<br />Checking ". $blogDetails['domain'] ." (#". $blogDetails['blog_id'] ."):<br />";
        $socialstatsFixFind = "SELECT * FROM <code>wp_options</code> WHERE <code>option_name</code> like '%wp_data_newa%'";
        if ($wpdb->query($socialstatsFixFind)) {
                echo "Darn! Found entry here... ";
                $socialstatsFixRemove = "DELETE FROM <code>wp_options</code> WHERE <code>option_name</code> like '%wp_data_newa%'";

                if ($wpdb->query($socialstatsFixRemove)) {
                    echo "<strong style='color: green;'>Successfully fixed!</strong><br />";
                } else {
                    echo "<strong style='color: red;'>SHIT!<br />ERROR</strong>: ". mysql_error() ."<br />";
                }
        } else {
            echo "<strong style='color: green;'>". $blogDetails['domain'] ." is clean!</strong><br />";
        }
    }
    else
    {
        echo "<br />Checking ". $blogDetails['domain'] ." (#". $blogDetails['blog_id'] ."):<br />";
        $socialstatsFixFind = "SELECT * FROM <code>wp_&quot;. $blogDetails['blog_id'] .&quot;_options</code> WHERE <code>option_name</code> like '%wp_data_newa%'";
        if ($wpdb->query($socialstatsFixFind)) {
                echo "Darn! Found entry here... ";
                $socialstatsFixRemove = "DELETE FROM <code>wp_&quot;. $blogDetails['blog_id'] .&quot;_options</code> WHERE <code>option_name</code> like '%wp_data_newa%'";
                if ($wpdb->query($socialstatsFixRemove)) {
                    echo "<strong style='color: green;'>Successfully fixed!</strong><br />";
                } else {
                    echo "<strong style='color: red;'>SHIT!<br />ERROR</strong>: ". mysql_error() ."<br />";
                }
        } else {
            echo "<strong style='color: green;'>". $blogDetails['domain'] ." is clean!</strong><br />";
        }
    }
}
?>

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>