Fixing Mint after Switching Servers

Post #414 categorized as Function, Websites, last updated on Nov 5, 2007
Tagged with bug, data, database, fix, mint, php, sql, statistics, tricks

After switching Perishable Press to its current home at A Small Orange, I began noticing an unusual problem with referrer data displayed in Mint. Specifically, the first item recorded in the XXX Strong Mint data panel — for both “Most Recent” and “Repeat” views — displayed several thousand hits for various site resources, all from the following IP address:

127.255.255.255 
zxw59eit.emirates.net.ae

Apparently, this particular location represents an invalid “loopback address.” The requested resources appear valid, indicating typical traffic patterns, but the loopback address is not the actual referrer. This issue was preventing Mint from accurately recording mountains of vital referral data.

Researching this issue reveals that the underlying problem involves the switching of a Mint installation between a 32-bit server and a 64-bit server. Installing Mint on either type of server without switching to the other should not trigger this problem. It is the switch from one to another that results in the generation of the loopback address.

Fortunately, there is a straightforward fix for this issue. Open your Mint database via phpMyAdmin (or whatever you prefer) and execute the following commands (don’t forget to backup your data before you begin!):

1) Within the mint_visit table, make any changes needed to ensure that all of the following fields display a value of UNSIGNED for the “Attributes” column (see screenshot):

2) Next, EMPTY the mint_visit table. In phpMyAdmin, open the mint_visit table and click the “Empty” tab (located in the upper row along with other SQL commands). Theoretically, Mint’s default settings will eventually flush out the invalid referrer data, however it may take several weeks or longer.

That’s all there is to it. After completing these steps, I saw immediate resolution of the issue. The 127.255.255.255 address disappeared from the referrer data, as did the thousands of associated entries of requested resources. Moreover, I implemented this fix several months ago and have not experienced any ill effects or repeat issues whatsoever. The referrer data has been repopulated with accurate data, and Mint is once again a virtually flawless piece of statistical software.

Subscribe to Perishable Press


Share your thoughts..

TopRead official comment policy

The rules are simple. Comment intelligently. Stay on-topic. Don’t spam! Suspected spam will be deleted. Use your real name or nickname, not a site name or business name. Using a site name or business name is a good way to get your link or comment removed. Certain comments are moderated; if your comment does not appear after several days, or if you wish to comment privately, contact me. Also, by posting a comment, you grant this site a perpetual license to reproduce your comment, name, and website URL. Lastly, you may use basic HTML markup, but please do not use <pre> tags. Instead, wrap your code with <code> tags. Use a new set of <code> tags for each code term or phrase, as well as for each individual line of code (i.e., multiple lines of code require multiple code tags). Please see the complete comment policy for more information.