Ooops! An error occurred for V4

When I try to index my site through search engines (eg. bing,google, http://www.woorank.c…emo.cs-cart.com ) I get an 'Ooops! An error occurred'.

This happens both for my online site and your demo.cs-cart.com. Is there any way to fix this?



Thanks in advance


```php

HTTP/1.1 200 OK

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Connection: keep-alive

Date: Mon, 02 Sep 2013 18:41:16 GMT

Pragma: no-cache

Transfer-Encoding: chunked

Content-Type: text/html; charset=utf-8

Content-Encoding: gzip

Expires: -1

Last-Modified: Mon, 02 Sep 2013 18:41:16 GMT

Server: nginx

Set-Cookie: debugger=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/

Set-Cookie: debugger=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/

X-Powered-By: PHP/5.3.27

X-Frame-Options: sameorigin


Ooops!

An error occurred


```

[quote name='md10' timestamp='1378147865' post='167687']

When I try to index my site through search engines (eg. bing,google, http://www.woorank.c…emo.cs-cart.com ) I get an 'Ooops! An error occurred'.

This happens both for my online site and your demo.cs-cart.com. Is there any way to fix this?



Thanks in advance


```php

HTTP/1.1 200 OK

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Connection: keep-alive

Date: Mon, 02 Sep 2013 18:41:16 GMT

Pragma: no-cache

Transfer-Encoding: chunked

Content-Type: text/html; charset=utf-8

Content-Encoding: gzip

Expires: -1

Last-Modified: Mon, 02 Sep 2013 18:41:16 GMT

Server: nginx

Set-Cookie: debugger=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/

Set-Cookie: debugger=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/

X-Powered-By: PHP/5.3.27

X-Frame-Options: sameorigin


Ooops!

An error occurred


```
[/quote]

Contact us to fix this.

Hi all,



This solution was working on our webshop:



Open the app/addons/statistics/func.php file.

Replace the following line:

'client_language' => $_SERVER['HTTP_ACCEPT_LANGUAGE'],

with this one:

'client_language' => !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '',

Thanks for sharing.

not working

Work for me, thanks



Regards

Worked for me as well. Using Bing Webmaster tools to fetch gave me the same “oops” error.

This may have something to do with my soft 404 error from Google as well. We'll see.

Making this change fixed the problem in Bing and my whole page loads.

Thanks.

[quote name='Mashmedia' timestamp='1379009769' post='168159']

Hi all,



This solution was working on our webshop:



Open the app/addons/statistics/func.php file.

Replace the following line:

'client_language' => $_SERVER['HTTP_ACCEPT_LANGUAGE'],

with this one:

'client_language' => !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '',

[/quote]



What cs-cart version is this for? I can't find that line of code in mine. I'm 4.0.2.



Disregard. I see CS-Cart's already implemented this corrected code in 4.0.2.

HI,



I've found the same problem on a 4.0.3 Cs-Cart Store.



Checked the solution provided by Mashmedia, but it was already implemented on the code as Brennie369 said.



To overcome the issue I've disabled the “statistics” addon, this returned my homepage to its normal state.



I can't investigate more on the subject now.



Regards,

This problem is still there and CS Cart people should investigate this thoroughly



We were with Zen cart all these time but it never went down like this . Cs cart has many functionality but very buggy in doing simple task

The only difference when the "oops error occured " message was shown and the site worked again in HTTP response is as below :





HTTP Response Header

Name Value Delim Status: HTTP/1.1 200 OK Date: Sun, 29 Dec 2013 15:15:46 GMT Server: Apache Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: -1 Content-Encoding: gzip Vary: Accept-Encoding Last-Modified: Sun, 29 Dec 2013 15:15:46 GMT Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8

Content (encoded: 0.07 KiB / decoded: 0.04 KiB)



[indent=1]

[color=#8B008B]

[/color][color=#8B008B]

[/color]Ooops![color=#8B008B]

[/color][color=#8B008B]

[/color]An error occurred[color=#8B008B]

[/color][/indent]





HTTP Response Header

Name Value Delim Status: HTTP/1.1 200 OK Date: Sun, 29 Dec 2013 16:20:57 GMT Server: Apache Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Encoding: gzip Vary: Accept-Encoding Set-Cookie: sid_customer_229d5=12254bb8128881b5353f978925c54499_1_C; expires=Sun, 12-Jan-2014 16:20:57 GMT; path=/; domain=.XXXXXXXXX.com; HttpOnly Last-Modified: Sun, 29 Dec 2013 16:20:57 GMT Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8

Content (encoded: 11.36 KiB / decoded: 76.09 KiB)







The expires date was the only difference



Expires: Thu, 19 Nov 1981 08:52:00 GMT





Expires: -1

YES YESTERDAY I SAW BING CRAWLER ON MY SITE THROUGH ANALYTICS , And For the whole time when it was searching for its meta data, My site was on the same error “Oops an error occured” and as soon as it left my site, site resumed to normal,



THIS IS VERY BAD NEWS FOR US, SINCE IF YOUR SITE IS NOT INDEXED PROPERLY BY SEARCH -ENGINE CRAWLERS, IT WILL NEVER MAKE ANY SALES.



I am deeply concerned about this and cs-cart should look into this seriously. And I am on latest version 4.0.3 and today is 03-jan -2014

Version 4.1.2 March 17, 2014

Mine is doing this same thing and I don't even have a “statistics” folder in the app/addons folder!



This is ridiculous that a site would simply go down if I haven't changed anything on it in weeks!

Guessing it is more of a systems issue. I.e. whatever is hammering your site is sucking down all the mysql resources available to cs-cart. The cart is trying its best to service the requests but there is not enough mysql resources available to do so (could be one of or many of many resource limitations).



Cs-cart is a resource consumer. You need to have a site configuration that supports the demand you place on it.

Disabling the statistics addon worked for me.