Urgent help dolibarr stopped working

Recently Dolibarr just stop working, am using erp / crm on shared hosting server from hostgator.

I keep getting weird files that keep downloading instead of dolibarr login working, i have tried on android dolidroid app and also dolibarr will not load.

I suspect hostgator did something as was working few days ago, is there anyway to check which version i was on ? i believe i was on version 21.0.3 how can i resolve as database is import for all my work.

Thanks in advance to everyone,

do you have ssh connection to the server?

yes i do have ssh to server

so you can check what version is installed and you can do a backup at least of your database.
depending on your database model:
mysqldump or mariadb-dump

check the apache2 logs: tail -n 20 /var/log/apache2/*.log
check also in your browser - most browsers F12 or any errors

1 Like

Hi @sajeel

You can find your Dolibarr version details in the filefunc.inc.php file, located in the Dolibarr root directory (htdocs).
Open this file, and look for the following code snippet:

if (!defined(‘DOL_VERSION’)) {
define(‘DOL_VERSION’, ‘22.0.3’); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX, or a.b.c
}

The version number (in this example, 22.0.3) indicates your current Dolibarr installation version.

Thanks a& Regards
Saikat Koley
Software Developer(Dolibarr)
Call/WhatsApp : +919903256573

Email : saikatkoley@hotmail.com

https://www.linkedin.com/in/saikatkoley/

2 Likes

Do you get Dolibarr’s PHP files, or is it other files? - i mean, have you been compromised?

1 Like

Thanks so am on 21.0.1

if (!defined(‘DOL_VERSION’)) {
define(‘DOL_VERSION’, ‘21.0.1’); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c

I am getting random dolibarr php files, what is best way to fix ?

Should i reload version 21.0.1 ?

I think your webserver is not configured to consider the PHP files as PHP files, but it is rather treating the files as text files.