Error: Dolibarr config file content seems to be no

Hello,

We’ve been using Dolibarr successfully on our website until recently when we try to access it we get the following error:

Warning: include_once(/home/content/g/d/m/gdmhadmin/html/Office/dolibarr/htdocs/includes/adodbtime/adodb-time.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/g/d/m/gdmhadmin/html/Sites/Office/dolibarr/htdocs/filefunc.inc.php on line 233

Warning: include_once() [function.include]: Failed opening ‘/home/content/g/d/m/gdmhadmin/html/Office/dolibarr/htdocs/includes/adodbtime/adodb-time.inc.php’ for inclusion (include_path=’/home/content/g/d/m/gdmhadmin/html/htdocs’) in /home/content/g/d/m/gdmhadmin/html/Sites/Office/dolibarr/htdocs/filefunc.inc.php on line 233
Error: Dolibarr config file content seems to be not correctly defined.
Please run dolibarr setup by calling page /install.

I don’t know what to do :unhappy:, can someone please help me? Any would be appreciated.

Hello,

Perhaps your web hoster did some changes in their server configuration…

What’s happen if you try to run Dolibarr setup as requested ?

Rgds.

Opened in conf.php and changed

$dolibarr_main_document_root='/home/content/g/d/m/gdmhadmin/html/Sites/Office/dolibarr/htdocs';

to

$dolibarr_main_document_root='/home/content/g/d/m/gdmhadmin/html/Office/dolibarr/htdocs';

and

$dolibarr_main_data_root='/home/content/g/d/m/gdmhadmin/html/Sites/Office/dolibarr/documents';

to

$dolibarr_main_data_root='/home/content/g/d/m/gdmhadmin/html/Office/dolibarr/documents';

Backing up the file first conf.php

Sorry for the late reply. It turns out that the dolibarr folder was moved to the Sites folder so I moved it back to the Office folder. It was working again for a while but just a few days ago the error showed up again.

I did some searching and was told config.php should be in the conf folder but the folder does not exist on our site. Where do I find config.php? Sorry for the late replay btw.

Ok so I found config.php. The locations were already set to the correct folder ‘/home/content/g/d/m/gdmhadmin/html/Office/dolibarr/htdocs’. I’m lost, I have no idea what’s causing this dolibarr issue.

It seems some files or directories were deleted or moved onto your server.

Depending on how you install your dolibarr, config file must be into /etc/dolibarr or /home/content/g/d/m/gdmhadmin/html/Office/dolibarr/htdocs/conf
or /home/content/g/d/m/gdmhadmin/html/Sites/Office/dolibarr/htdocs/conf
and if files were moved, you must edit config file to match the new dirs.

Also check the all content of dolibarr are in correct folder (not only the config file but also all other files like filefunc.inc.php)

Then if files were moved of directory, you must also check that permission onto your php setup wee modified to match this change.