Getting --- PHP Warning: Module 'sodium' already loaded in unknown on line 0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 467

    Getting --- PHP Warning: Module 'sodium' already loaded in unknown on line 0

    Hi,

    Since the migration to Espocrm version 7 we have been getting this warning in the error.log - PHP Warning: Module 'sodium' already loaded in unknown on line 0. We do not have any idea why is this is happening. Any help will be appreciated as this warning is creating a large size error.log file.

    Thank you in advance.

    Click image for larger version

Name:	warning.png
Views:	2327
Size:	161.0 KB
ID:	83376
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi murugappan,

    To fix the issue, you have to dig into php.ini file to see if the module has been loaded as an extension.

    Enter this command in the terminal:
    Code:
    sudo nano /etc/php.ini
    Lookout for extension= as seen below:
    Code:
    extension=sodium.so
    Comment the line (module) that’s causing the issue as below:
    Code:
    ;extension=sodium.so
    Then you have to restart your server.

    For Apache2:
    Code:
    sudo /etc/init.d/apache2 restart​
    For nginx:
    Code:
    sudo /etc/init.d/nginx restart
    ​​​

    Comment


    • murugappan
      murugappan commented
      Editing a comment
      lazovic , thank for the update. I checked out the server. The sodium extension is installed but not loaded as an extension in the php.ini. We are using CPanel and CentOS v7.9.2009.
Working...