PHP Fatal error: sodium_init() in Unknown on line 0Launching php script through comman line - keeping...

Where is this triangular-shaped space station from?

Where was Karl Mordo in Infinity War?

How can I mix up weapons for large groups of similar monsters/characters?

For Loop and Sum

How to satisfy a player character's curiosity about another player character?

What is better: yes / no radio, or simple checkbox?

Predict mars robot position

Why does the DC-9-80 have this cusp in its fuselage?

ip vs ifconfig commands pros and cons

Should I choose Itemized or Standard deduction?

Meth dealer reference in Family Guy

Crystal compensation for temp and voltage

Do authors have to be politically correct in article-writing?

Find the number of ways to express 1050 as sum of consecutive integers

Wanted: 5.25 floppy to usb adapter

What do these brackets mean?

Why is this code uniquely decodable?

How to approximate rolls for potions of healing using only d6's?

Meaning of すきっとした

Table enclosed in curly brackets

Does this pattern of summing polygonal numbers to get a square repeat indefinitely?

How would an AI self awareness kill switch work?

Inventor that creates machine that grabs man from future

How to prepare vegetables for a sandwich that can last for several days in a fridge?



PHP Fatal error: sodium_init() in Unknown on line 0


Launching php script through comman line - keeping terminal window open after executiondowngrade php5 5.5.3 to php5 5.3 in ubuntu 13.10Why do I see cgi source code on my webserver instead of its output?Error: The new file /usr/lib/php/7.0/php.ini-production.cli does not exist!PHP mysqli extension in Ubuntu 16.04 not working after upgrade to version 7.0.6Uninstalled PHP and php -v always returns 7.1.4Apt get install php7.1-dev extension doesn't workcqpweb triggers error “DATABASE CACHE OVERLOAD!”PHP Fatal error when installing mcryptphp installation showing dpkg error













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]









share|improve this question























  • Solved problem, when remove php-libsodium package.

    – Vladislav
    Feb 3 at 13:24
















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]









share|improve this question























  • Solved problem, when remove php-libsodium package.

    – Vladislav
    Feb 3 at 13:24














0












0








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]









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 at 13:00









VladislavVladislav

1




1













  • 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





Solved problem, when remove php-libsodium package.

– Vladislav
Feb 3 at 13:24










1 Answer
1






active

oldest

votes


















0














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






share|improve this answer

























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer






























      0














      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






      share|improve this answer




























        0












        0








        0







        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






        share|improve this answer















        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







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 18 mins ago

























        answered Feb 23 at 11:52









        Sergey FedotovSergey Fedotov

        11




        11






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...