PHP Fatal error: sodium_init() in Unknown on line 0
When I run any php script I get an error sodium_init() in Unknown on line 0.
Use Ubuntu 18.04, PHP 7.2.10
Examples:
admin@server:~$ php -v
PHP Fatal error: sodium_init() in Unknown on line 0
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
or Composer:
admin@server:~$ php composer.phar
PHP Fatal error: sodium_init() in Unknown on line 0
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
/_/
Composer version 1.8.3 2019-01-30 08:31:33
...
libsodium installed:
php-libsodium/bionic,bionic,now 1.0.6-1build3 amd64 [installed]
libsodium-dev/bionic,now 1.0.16-2 amd64 [installed]
libsodium23/bionic,now 1.0.16-2 amd64 [installed]
18.04 php php7
add a comment |
When I run any php script I get an error sodium_init() in Unknown on line 0.
Use Ubuntu 18.04, PHP 7.2.10
Examples:
admin@server:~$ php -v
PHP Fatal error: sodium_init() in Unknown on line 0
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
or Composer:
admin@server:~$ php composer.phar
PHP Fatal error: sodium_init() in Unknown on line 0
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
/_/
Composer version 1.8.3 2019-01-30 08:31:33
...
libsodium installed:
php-libsodium/bionic,bionic,now 1.0.6-1build3 amd64 [installed]
libsodium-dev/bionic,now 1.0.16-2 amd64 [installed]
libsodium23/bionic,now 1.0.16-2 amd64 [installed]
18.04 php php7
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24
add a comment |
When I run any php script I get an error sodium_init() in Unknown on line 0.
Use Ubuntu 18.04, PHP 7.2.10
Examples:
admin@server:~$ php -v
PHP Fatal error: sodium_init() in Unknown on line 0
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
or Composer:
admin@server:~$ php composer.phar
PHP Fatal error: sodium_init() in Unknown on line 0
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
/_/
Composer version 1.8.3 2019-01-30 08:31:33
...
libsodium installed:
php-libsodium/bionic,bionic,now 1.0.6-1build3 amd64 [installed]
libsodium-dev/bionic,now 1.0.16-2 amd64 [installed]
libsodium23/bionic,now 1.0.16-2 amd64 [installed]
18.04 php php7
When I run any php script I get an error sodium_init() in Unknown on line 0.
Use Ubuntu 18.04, PHP 7.2.10
Examples:
admin@server:~$ php -v
PHP Fatal error: sodium_init() in Unknown on line 0
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
or Composer:
admin@server:~$ php composer.phar
PHP Fatal error: sodium_init() in Unknown on line 0
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
/_/
Composer version 1.8.3 2019-01-30 08:31:33
...
libsodium installed:
php-libsodium/bionic,bionic,now 1.0.6-1build3 amd64 [installed]
libsodium-dev/bionic,now 1.0.16-2 amd64 [installed]
libsodium23/bionic,now 1.0.16-2 amd64 [installed]
18.04 php php7
18.04 php php7
asked Feb 3 at 13:00
VladislavVladislav
1
1
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24
add a comment |
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24
add a comment |
1 Answer
1
active
oldest
votes
sudo apt remove php-libsodium
The modern Sodium cryptography library has now become a core extension in PHP.
http://php.net/manual/en/migration72.new-features.php
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115244%2fphp-fatal-error-sodium-init-in-unknown-on-line-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
sudo apt remove php-libsodium
The modern Sodium cryptography library has now become a core extension in PHP.
http://php.net/manual/en/migration72.new-features.php
add a comment |
sudo apt remove php-libsodium
The modern Sodium cryptography library has now become a core extension in PHP.
http://php.net/manual/en/migration72.new-features.php
add a comment |
sudo apt remove php-libsodium
The modern Sodium cryptography library has now become a core extension in PHP.
http://php.net/manual/en/migration72.new-features.php
sudo apt remove php-libsodium
The modern Sodium cryptography library has now become a core extension in PHP.
http://php.net/manual/en/migration72.new-features.php
edited Mar 4 at 1:32
answered Feb 23 at 11:52
Sergey FedotovSergey Fedotov
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115244%2fphp-fatal-error-sodium-init-in-unknown-on-line-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Solved problem, when remove php-libsodium package.
– Vladislav
Feb 3 at 13:24