Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Failed loading /usr/lib/php/20190902/ioncube_loader_lin_8.1.so

    WordPress (Developer)
    4
    12
    212
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • martinkbs
      martinkbs last edited by

      Hi guys,

      After upgrading to version 3.0.0 and 3.0.1 of the WordPress Developer package, when you run the wp cache flush command in the application terminal, the following message appears:

      Connecting...
      If you resize the browser window, press Ctrl+D to start a new session with the current size.
      root@9617d39f-5bd3-45b0-93e5-2c757992ea2d:/app/code# wp cache flush
      Failed loading /usr/lib/php/20190902/ioncube_loader_lin_8.1.so:  /usr/lib/php/20190902/ioncube_loader_lin_8.1.so: cannot open shared object file: No such file or directory
      Success: The cache was flushed.
      root@9617d39f-5bd3-45b0-93e5-2c757992ea2d:/app/code# 
      
      

      Object cache is flushed correctly, but such warning did not come up before.

      necrevistonnezr 1 Reply Last reply Reply Quote 1
      • necrevistonnezr
        necrevistonnezr @martinkbs last edited by

        @martinkbs It used to be that ionCube was not ready for php 8 (see https://forum.cloudron.io/topic/7141/whmcs-lamp-ioncube-not-detected/9 - @girish has that changed? FileRun does not work anymore in LAMP for the same reason…

        girish 1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          Whoops, I got the path to the .so wrong. Making a new build.

          @necrevistonnezr Indeed, no ioncube for PHP 8. But they have it for PHP 8.1.

          martinkbs 1 Reply Last reply Reply Quote 2
          • girish
            girish Staff @necrevistonnezr last edited by

            @necrevistonnezr said in Failed loading /usr/lib/php/20190902/ioncube_loader_lin_8.1.so:

            FileRun does not work anymore in LAMP for the same reason

            Are you on PHP 7.4? Can you switch to PHP 8.1 ? Just edit /app/data/PHP_VERSION and restart - https://docs.cloudron.io/apps/lamp/#supported-php-versions .

            benborges necrevistonnezr 2 Replies Last reply Reply Quote 0
            • Topic has been marked as a question  nebulon nebulon 
            • martinkbs
              martinkbs @girish last edited by

              Thanks @girish 👍

              1 Reply Last reply Reply Quote 0
              • Topic has been marked as solved  girish girish 
              • benborges
                benborges @girish last edited by

                @girish Having the same issue, so I dropped a PHP_VERSION file and in it specified : PHP_VERSION=8.1
                but I keep having the same error, as if the PHP_VERSION file wasn't being taken into account by the wordpress container.

                Anything else I can try ?

                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @benborges last edited by

                  @benborges are you hitting this WordPress or lamp app? WordPress app has to be simply updated , it doesn't understand the PHP_VERSION file .

                  benborges 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by

                    In one of my PHP sites, I hit:

                    Nov 19 19:10:02 PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /app/data/wp-content/plugins/disable-wordpress-core-update/disable-core-update.php:27
                    Nov 19 19:10:02 Stack trace:
                    Nov 19 19:10:02 #0 /app/code/wp-settings.php(447): include_once()
                    Nov 19 19:10:02 #1 phar:///app/pkg/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('...')
                    Nov 19 19:10:02 #2 phar:///app/pkg/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()
                    Nov 19 19:10:02 #3 phar:///app/pkg/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
                    Nov 19 19:10:02 #4 phar:///app/pkg/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process()
                    Nov 19 19:10:02 #5 phar:///app/pkg/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
                    Nov 19 19:10:02 #6 phar:///app/pkg/wp/php/boot-phar.php(11): include('...')
                    Nov 19 19:10:02 #7 /app/pkg/wp(4): include('...')
                    Nov 19 19:10:02 #8 {main}
                    

                    I had to go to File manager and delete wp-content/plugins/disable-wordpress-core-update directory entirely.

                    1 Reply Last reply Reply Quote 0
                    • benborges
                      benborges @girish last edited by

                      @girish Wordpress dev, here is the log https://pastebin.com/iKFwNHmG

                      benborges 1 Reply Last reply Reply Quote 0
                      • benborges
                        benborges @benborges last edited by

                        Also removed

                        wp-content/plugins/disable-wordpress-core-update
                        

                        and a rss plugin throwing some errors, updated to latest package and i'm up and running !
                        Thanks all

                        1 Reply Last reply Reply Quote 1
                        • necrevistonnezr
                          necrevistonnezr @girish last edited by necrevistonnezr

                          @girish Tried both php versions with LAMP app version 3.0.1, ioncube is not found when opening FileRun

                          Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance.

                          girish 1 Reply Last reply Reply Quote 0
                          • girish
                            girish Staff @necrevistonnezr last edited by

                            @necrevistonnezr Can you try php -v ?

                            root@74a6cc7a-143b-4085-a8c8-ecd1555d8cc7:/app/code# php -v
                            PHP 8.1.12 (cli) (built: Oct 28 2022 17:39:37) (NTS)
                            Copyright (c) The PHP Group
                            Zend Engine v4.1.12, Copyright (c) Zend Technologies
                                with the ionCube PHP Loader v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.
                                with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies
                            

                            It shows above that it's there .

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB