Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress Some WordPress issues

Discussion in 'Bug Reports' started by fly, Jan 24, 2020.

  1. fly

    fly New Member

    11
    0
    1
    Jul 27, 2019
    Ratings:
    +1
    Local Time:
    6:01 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.17.3
    • PHP Version Installed: 7.3.11
    • MariaDB MySQL Version Installed: 10.1
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: None
    I'm having some odd issues with WordPress. I'm getting WSOD on wp-admin. If I enable debug logging, I see this over and over again:

    Code:
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    I also see this error when I attempt to run the wp-cli manually. It's possible that this is a red herring, but how do I fix this?

    Also of note, it seems the wp alias is incorrect. The alias points to /bin/wp, but mine is at /usr/bin/wp.

    Any ideas?
     
  2. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    what's output for
    Code (Text):
    which wp

    should be
    Code (Text):
    which wp
    alias wp='wp --allow-root'
            /usr/bin/wp
    

    and
    Code (Text):
    /usr/bin/wp --info

    what is exact set of commands you are running via wp-cli command line ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    If you're wp-cli version is older i.e. <2.4.0 you can manually update it using addons/wp-cli.sh
    Code (Text):
    /usr/local/src/centminmod/addons/wpcli.sh update

    This is usually done automatically each time you run centmin.sh menu option 22 before creating a new wordpress nginx site to ensure wp-cli is latest. But it isn't updated outside of centmin.sh menu option 22 usually. Edit: actually it is if you centmin.sh menu option 22 wordpress cronjob updater is running for auto updates. If you disabled that cronjob, then it would stop wp-cli updates and wordpress updates for your wordpress site created via centmin.sh menu option 22

    centmin.sh menu option 22 created wordpress + wp-cli updates listed via crontab -l
    Code (Text):
    crontab -l | grep wp_updater_

    example output
    Code (Text):
    crontab -l | grep wp_updater_
    0 */8 * * * sleep 173s ;/root/tools/wp_updater_domain.com.sh >/dev/null 2>&
    


    wp-cli version
    Code (Text):
    /usr/bin/wp --info                     
    OS:     Linux 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64
    Shell:  /bin/bash
    PHP binary:     /usr/local/bin/php
    PHP version:    7.3.14
    php.ini used:   /usr/local/lib/php.ini
    WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
    WP-CLI vendor dir:      phar://wp-cli.phar/vendor
    WP_CLI phar path:       /home/nginx/domains/wp5.domain.com/public
    WP-CLI packages dir:    /root/.wp-cli/packages/
    WP-CLI global config:
    WP-CLI project config:
    WP-CLI version: 2.4.0
    
     
    Last edited: Jan 24, 2020
    • Like Like x 1
  4. fly

    fly New Member

    11
    0
    1
    Jul 27, 2019
    Ratings:
    +1
    Local Time:
    6:01 AM
    Ya, the alias is incorrect on mine.

    Code:
    which wp
    alias wp='wp --allow-root'
            /bin/wp
    
     
  5. fly

    fly New Member

    11
    0
    1
    Jul 27, 2019
    Ratings:
    +1
    Local Time:
    6:01 AM
    As far as commands, I'm just trying to run wp command (or /usr/bin/wp --allow-root).

    If I do it outside a WordPress directory, it gives me all the commands. If I do it from the root directory of a WordPress install, I get the "phar" error mentioned above.
     
  6. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you can modify it in /root/.bashrc and then exit/relogin to a new SSH session

    could be conflict with any of your wp plugins ?

    what is output for where yourdomain.com is your wordpress site
    Code (Text):
    cd /home/nginx/domains/yourdomain.com/public/
    wp plugin status
    
     
  7. fly

    fly New Member

    11
    0
    1
    Jul 27, 2019
    Ratings:
    +1
    Local Time:
    6:01 AM
    Same phar error.

    Code:
    wp plugin status
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in /root/.wp-cli/packages/vendor/composer/ClassLoader.php on line 394
    
    An unexpected error occurred. Please try again later.
     
  8. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    output for
    Code (Text):
    php -m

    Code (Text):
    php --ri phar

    Code (Text):
    php-config

    first command should list Phar
    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    maxminddb
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    [Zend Modules]
    Zend OPcache
    

    2nd command list Phar module details
    Code (Text):
    php --ri phar
    Phar
    
    Phar: PHP Archive support => enabled
    Phar API version => 1.1.1
    Phar-based phar archives => enabled
    Tar-based phar archives => enabled
    ZIP-based phar archives => enabled
    gzip compression => enabled
    bzip2 compression => enabled
    Native OpenSSL support => enabled
    
    Phar based on pear/PHP_Archive, original concept by Davey Shafik.
    Phar fully realized by Gregory Beaver and Marcus Boerger.
    Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
    Directive => Local Value => Master Value
    phar.readonly => On => On
    phar.require_hash => On => On
    phar.cache_list => no value => no value
    

    try updating to PHP 7.3.14 for latest security and bug fix updates too
    Code (Text):
    php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -lzip -lzip -lz -lexslt -ltidy -largon2 -lresolv -lcrypt -lsodium -ledit -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lwebp -lenchant -lbz2 -lz -lrt -lm -ldl -lnsl  -lsystemd -lxml2 -lz -llzma -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -llzma -lm -ldl -lssl -lcrypto -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lxml2 -lz -llzma -lm -ldl -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lz -llzma -lm -ldl -lcrypt -largon2 -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxslt -lxml2 -lm -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20180731]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-webp-dir=/usr --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-xsl]
      --version           [7.3.14]
      --vernum            [70314]
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    also did fix alias command in /root/.bashrc and also did you run wp-cli updater ?
    Code (Text):
    /usr/local/src/centminmod/addons/wpcli.sh update
    
     
  10. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
    I too can report the same issue.

    WP-CLI 2.4.0

    I migrated to a new centmin server, fresh, php 7.4.2 etc. I did option 22 first before migrating the WP site over manually. Nevertheless I did a wp-cli update just now.

    Code:
    which wp
    alias wp='wp --allow-root'
            /usr/bin/wp
    
    wp --info
    OS:     Linux 5.5.2-1.el7.elrepo.x86_64 #1 SMP Tue Feb 4 16:29:48 EST 2020 x86_64
    Shell:  /bin/bash
    PHP binary:     /usr/local/bin/php
    PHP version:    7.4.2
    php.ini used:   /usr/local/lib/php.ini
    WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
    WP-CLI vendor dir:      phar://wp-cli.phar/vendor
    WP_CLI phar path:       /home/nginx/domains/mysite.com/public/blog
    WP-CLI packages dir:    /root/.wp-cli/packages/
    WP-CLI global config:
    WP-CLI project config:
    WP-CLI version: 2.4.0
    Code:
    php -m
    [PHP Modules]
    bcmath
    brotli
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    lz4
    lzf
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    PDO_ODBC
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    zstd
    
    [Zend Modules]
    Zend OPcache

    Code:
     php --ri phar
    
    Phar
    
    Phar: PHP Archive support => enabled
    Phar API version => 1.1.1
    Phar-based phar archives => enabled
    Tar-based phar archives => enabled
    ZIP-based phar archives => enabled
    gzip compression => enabled
    bzip2 compression => enabled
    Native OpenSSL support => enabled
    
    
    Phar based on pear/PHP_Archive, original concept by Davey Shafik.
    Phar fully realized by Gregory Beaver and Marcus Boerger.
    Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
    Directive => Local Value => Master Value
    phar.readonly => On => On
    phar.require_hash => On => On
    phar.cache_list => no value => no value
    

    Code:
     php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -largon2 -lresolv -lcrypt -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lodbc -lsqlite3 -ledit -ltinfo -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -lcrypt -largon2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lz -ldl -lm -lxml2 -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20190902]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc
    --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --with-pdo-odbc=unixODBC,/usr --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [7.4.2]
      --vernum            [70402]
    
     
    Last edited: Feb 15, 2020
  11. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
    Any thoughts on this @eva2000 . Kind of annoying when the WP CLI jobs don't fire.
     
  12. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  13. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
  14. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
    Just updating this, I thought updating to 7.4.3 would address this as it had a bunch of Phar related bugfixes but alas issue persists. I even recompiled with GCC 9.1.1 and no joy. WP CLI seems borked for this.
     
  15. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Tried to downgrade to PHP 7.2 or 7.3 and see if that resolves the issues yet ?
     
  16. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
    Given that the person who reported this was running 7.3 I'm doubting it's a PHP version issue specifically? I'm running several centminmod servers at the moment all built last year, I may try to upgrade one to 7.4 and see if it can be recreated.
     
  17. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    wp-cli is constantly updated too wp-cli/wp-cli so they may introduce changes that break if the problem is on their end too
     
  18. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    If downgrading PHP doesn't help, maybe submit a wp-cli issue/bug report at wp-cli/wp-cli
     
  19. Nik

    Nik Member

    61
    2
    8
    Dec 7, 2015
    Ratings:
    +9
    Local Time:
    6:01 AM
    Hmm... So I have another server to play around with. Was running 7.3.11, test command is 'wp plugin status'.

    Started with working wp-cli as per above command to test.... No changes to old custom_config.inc/wp-cli or anything else to rule out other issues.

    cmupdate

    Upgrade PHP:
    centmin->opt 5->7.4.3
    Result: Same phar error as above

    Downgrade PHP:
    centmin->opt 5->7.3.15
    Result: Same phar error as above

    Downgrade PHP some more (to where we started):
    centmin->opt 5->7.3.11
    Result: Same phar error as above

    I don't expect downgrading further will improve things but can do if you want.

    Suspicion, maybe a regression with your php package compilation. I can't see what else it could be as that's the only thing that's changed. I don't think this is a wp-cli bug as it's rather significant not to be reported in their repo..
     
  20. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    9:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    noticed the wordpress blog is installed in subdirectory /blog, so are you running wp cli commands from that directory or from public ?
    Code (Text):
    cd /home/nginx/domains/mysite.com/public/blog
    wp plugin status