Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Internal Server Error - Fatal error: Module 'sodium' already loaded ????

49 views
Skip to first unread message

Ronni

unread,
Oct 28, 2024, 7:30:13 AM10/28/24
to Fat-Free Framework
Hi,

I've made a small website, basically only using the router with GET and the template system, but I get an error every time a file changes or isn't loaded/refreshed within a couple of minutes.

The error:
Internal Server Error

Fatal error: Module 'sodium' already loaded


It's the first time that I experience this error with Fat-Free Framework.


I made a support request at my hosting provider, who tells me, that it's not a server issue, but the code loads Sodium. I don't load it in my code, and I don't use any encryption, and I've also tried to search all the framework files for Sodium, but cannot find anything.


Anyone who knows if Fat-Free uses/loads Sodium and where?


BR

Ronni

ved

unread,
Oct 28, 2024, 12:26:40 PM10/28/24
to Fat-Free Framework
Hi,

Are you sure you are using only F3 and no other libs on your composer file?

Having searched the fatfree-core repo for "sodium", it doesn't find any reference to PHP's sodium functions.

That message shows when a module that is already loaded tries to get loaded again so it will most likely be an issue with your hosting.

If your hosting uses CPanel, then maybe there is some PHP module/PECL configuration section where you can enable/disable PHP modules.

Other than that, we'd need to have some more information, like server logs, etc.

Cheers.




Ronni

unread,
Oct 28, 2024, 1:05:56 PM10/28/24
to Fat-Free Framework
Hi,

Thank you for helping.

Yes, I'm 100% sure. The error appears with only F3 and the Getting Started example from the documentation.

I just wanted to be 100% before asking my hosting provider to look again :-)

ved

unread,
Oct 28, 2024, 1:58:57 PM10/28/24
to Fat-Free Framework
Hi,

No problem.

Feel free to post more details and we'll do our best to help out, but it will most likely be a hosting issue.

Cheers

Ronni

unread,
Oct 30, 2024, 9:01:34 AM10/30/24
to Fat-Free Framework
Hi,

Just an update if someone experiences the same problem.

After some back and forth with my hosting provider, they found that it was a bug in their PHP version 7.4.

Updating to a newer PHP version (8.x) solved the problem.

--
Ronni
Reply all
Reply to author
Forward
0 new messages