Store Down...help Needed!

Hello, suddenly I have this error:



Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/mysite/public_html/mydirectory/core/fn.common.php on line 1212



This is what that line shows (note bold is line 1212):



// Start javascript autoscroller

function fn_start_scroller()

{

if (defined(‘CONSOLE’)) {

return true;

}



echo “



” . PRODUCT_NAME . "









";

fn_flush();

}



I have no idea what the original code is supposed to look like. I do have the download zip file from CS-Cart, but when I unzip it, it looks like an installer program without the actual installed files.



Looks like to me I’ve been hacked.



The store is currently down.



Thanks for your help,

Rick

May be a php problem, was the site ok before, and has php or upgrade happened ?

can u access admin



I'm looking at the common.php script for v3 right now and this script tag is not in the default CS-Cart store.

That same block of coding you displayed looks like this by default:

```php // Start javascript autoscroller

function fn_start_scroller()

{

if (defined('CONSOLE')) {

return true;

}



echo "


" . PRODUCT_NAME . "




";
fn_flush();
} ```

Some advertising link with IP from thailand.



Try to replace with this code, its from version 4.2.2


// Start javascript autoscroller
function fn_start_scroller()
{
if (defined('CONSOLE')) {
return true;
}
echo "

" . PRODUCT_NAME . "




";
fn_flush();
}





Stop Function, below the


// Stop javascript autoscroller
function fn_stop_scroller()
{
if (defined('CONSOLE')) {
return true;
}
echo "



";
fn_flush();
}




All together you should have this:


// Start javascript autoscroller
function fn_start_scroller()
{
if (defined('CONSOLE')) {
return true;
}
echo "

" . PRODUCT_NAME . "




";
fn_flush();
}
// Stop javascript autoscroller
function fn_stop_scroller()
{
if (defined('CONSOLE')) {
return true;
}
echo "



";
fn_flush();
}




Hope this help for you



Regards

Looks like you are hacked. Please inform CS-Cart team about it. They should know about all possible security breaches.

apsolute must post to the bugtracker and contact cs cart



http://forum.cs-cart.com/tracker/