How To Disable Error And Warning Report

Hello,

I have 2 cs-cart stores, both very old. Recently, they started to show some notifications on all pages:

http://vantigsm.ro

I didn't modified anything recently, neither I upgraded anything.
I know that's better to fix the errors than to hide them, but I was wondering if someone can point me in the right direction to disable the notifications reporting (all errors and warnings and notifications).

Thank you very much.

Sounds like PHP was updated without your knowledge.

Try to set up older php version via .htaccess

https://www.siteground.com/kb/how_to_have_different_php__mysql_versions/

Note: this feature should be supported by your hosting provider

Hello,

This is what I was affraid of.

Sadly, the hosting company (a small local company) doesn't admit that they have updated the PHP version. The thing is that I have 2 cs-cart websites on this account, and both started to show these errors in the same time.

I'm using a shared hosting and they do not allow me to change the php version from cpanel.

Is there any possibility that the cs-cart installation updated by itself? I go to vantigsm.ro?version but nothing appears.

Add the following on the first line of the htaccess file in the root of both of your installations.

AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

Edit: Actuallly, after looking at the error codes, it looks like you may have been hacked? /extra.php is not a default file in any version.

extra.php is from a seo addon which my client installed years ago. It worked fine until now...

Now I'm trying to find a web host with php 5.3, so I could test it...

Also thank you for the htaccess code, but it doesn't work on my server. If I add that code, when I try to access the file it just downloads a "download" file and nothing loads.

You can ask your hosting to install PHP 5.3 (not making it default or active) and then the .htaccess tool suggested should work. However, since 5.3 is EOL, most hosting sites are reluctant to install unsupported software.

So your best choice would be to find a host that you're comfortable with that will provide you 5.3.

I cannot check version of the CS-Cart. What version do you use?

You should ask your hosting company to disable these warnings from the php.ini file.

Showing them for developers can be useful, but for live production sites make no sense.

You can look for free hosting for testing here.

Or you can go with VPS self managed or managed.

You should ask your hosting company to disable these warnings from the php.ini file.

Showing them for developers can be useful, but for live production sites make no sense.

You can look for free hosting for testing here.

Or you can go with VPS self managed or managed.

Almost every hosting company will have these off by default. The issue is that different addons may do ini_set('display_errors', true) and while their code may be clean, others may not be.