• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Dolibarr Fatal error: Cannot declare class Contact, because the name is already in use

sandraolt

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
18.0.64
Hello,
I have been attempting to install Dolibarr on my site.

Fatal error: Cannot declare class Contact, because the name is already in use in /var/www/vhosts/*****/httpdocs/contact/class/contact.class.php on line 44

I keep getting the above error in Step 5. I’m not sure how to solve the problem. I did find a similar issue in the French dolibarr forum (I used google translate to read it), and I have included the link; however, they never posted how it was resolved.

I posted in the Dolibarr forum Step 5 - Fatal error: Cannot declare class Contact
Their response is that I should ask here, as they firmly believe this is a Plesk/php issue.

Plesk Obsidian 18.0.64 Update #1 Web Host Edition
OS - Ubuntu 22.04.5 LTS
MariaDB - 10.6.18
PHP vs - 8.2.25
Server API CGI/FastCGI

I have no idea what is causing this problem, and I would appreciate some help resolving it.
 
Hi!

To be honest, I am not familiar with Dolibarr, but could you please provide a link to the document with the steps, especially step #5, you are referring to?
 
Back
Top