0

When I tried to see list of plugin on my WordPress website returned error like this:

root@ns5008083:/home/website/webapps/wp# wp plugin list --allow-root
Segmentation fault (core dumped)

Also when I type wp command still get Segmentation fault (core dumped) error:

root@ns5008083:/home/website/webapps/wp# wp --allow-root
Segmentation fault (core dumped)

But when I see the version of the wp-cli or php works fine:

root@ns5008083:/home/website/webapps/wp# wp core version --allow-root
6.0.1

root@ns5008083:/home/website/webapps/wp# php --version
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v11.0.0, Copyright (c) 2002-2021, by ionCube Ltd.
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

This is wp debug on wp-cli:

root@ns5008083:/home/website/webapps/wp# wp --debug --allow-root
Debug (bootstrap): Fallback autoloader paths: phar://wp-cli.phar/vendor/autoload.php (0.004s)
Debug (bootstrap): Loading detected autoloader: phar://wp-cli.phar/vendor/autoload.php (0.004s)
Debug (commands): Adding command: cache (0.006s)
Debug (commands): Adding command: transient (0.006s)
Debug (commands): Adding command: comment (0.007s)
Debug (commands): Adding command: meta in comment Namespace (0.007s)
Debug (commands): Adding command: menu (0.007s)
Debug (commands): Adding command: item in menu Namespace (0.007s)
Debug (commands): Adding command: location in menu Namespace (0.008s)
Debug (commands): Deferring command: network meta (0.008s)
Debug (commands): Adding command: option (0.008s)
Debug (commands): Adding command: post (0.008s)
Debug (commands): Adding command: meta in post Namespace (0.008s)
Debug (commands): Adding command: term in post Namespace (0.009s)
Debug (commands): Adding command: post-type (0.009s)
Debug (commands): Adding command: site (0.009s)
Debug (commands): Adding command: meta in site Namespace (0.009s)
Debug (commands): Adding command: option in site Namespace (0.01s)
Debug (commands): Adding command: taxonomy (0.01s)
Debug (commands): Adding command: term (0.01s)
Debug (commands): Adding command: meta in term Namespace (0.01s)
Debug (commands): Adding command: user (0.011s)
Debug (commands): Adding command: meta in user Namespace (0.011s)
Debug (commands): Adding command: session in user Namespace (0.011s)
Debug (commands): Adding command: term in user Namespace (0.011s)
Debug (commands): Adding command: network (0.011s)
Debug (hooks): Processing hook "after_add_command:network" with 1 callbacks (0.011s)
Debug (hooks): On hook "after_add_command:network": Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 644 (0.011s)
Debug (commands): Adding command: meta in network Namespace (0.011s)
Debug (commands): Adding command: plugin (0.012s)
Debug (commands): Adding command: auto-updates in plugin Namespace (0.013s)
Debug (commands): Adding command: theme (0.013s)
Debug (commands): Adding command: auto-updates in theme Namespace (0.013s)
Debug (commands): Adding command: mod in theme Namespace (0.013s)
Debug (commands): Adding command: db (0.014s)
Debug (commands): Adding command: scaffold (0.015s)
Debug (commands): Adding command: export (0.015s)
Debug (commands): Adding command: core (0.016s)
Debug (commands): Adding command: verify-checksums in core Namespace (0.016s)
Debug (commands): Adding command: verify-checksums in plugin Namespace (0.016s)
Debug (commands): Adding command: import (0.016s)
Debug (commands): Adding command: media (0.017s)
Debug (commands): Adding command: package (0.018s)
Debug (commands): Adding command: config (0.018s)
Debug (commands): Adding command: core (0.019s)
Debug (commands): Adding command: cron (0.019s)
Debug (commands): Adding command: event in cron Namespace (0.02s)
Debug (commands): Adding command: schedule in cron Namespace (0.02s)
Debug (commands): Adding command: embed (0.02s)
Debug (commands): Adding command: fetch in embed Namespace (0.02s)
Debug (commands): Adding command: provider in embed Namespace (0.021s)
Debug (commands): Adding command: handler in embed Namespace (0.021s)
Debug (commands): Adding command: cache in embed Namespace (0.021s)
Debug (commands): Adding command: eval (0.021s)
Debug (commands): Adding command: eval-file (0.021s)
Debug (commands): Adding command: i18n (0.021s)
Debug (commands): Adding command: make-pot in i18n Namespace (0.022s)
Debug (commands): Adding command: make-json in i18n Namespace (0.022s)
Debug (commands): Adding command: make-mo in i18n Namespace (0.022s)
Debug (commands): Deferring command: language core (0.023s)
Debug (commands): Deferring command: language plugin (0.023s)
Debug (commands): Deferring command: language theme (0.023s)
Debug (hooks): Immediately invoking on passed hook "after_add_command:site": Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/language-command/language-command.php at line 39 (0.023s)
Debug (commands): Adding command: switch-language in site Namespace (0.023s)
Debug (commands): Adding command: language (0.023s)
Debug (hooks): Processing hook "after_add_command:language" with 3 callbacks (0.023s)
Debug (hooks): On hook "after_add_command:language": Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 644 (0.023s)
Debug (commands): Adding command: core in language Namespace (0.023s)
Debug (hooks): On hook "after_add_command:language": Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 644 (0.023s)
Debug (commands): Adding command: plugin in language Namespace (0.024s)
Debug (hooks): On hook "after_add_command:language": Closure in file phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php at line 644 (0.024s)
Debug (commands): Adding command: theme in language Namespace (0.024s)
Debug (commands): Adding command: maintenance-mode (0.024s)
Debug (commands): Adding command: rewrite (0.024s)
Debug (commands): Adding command: rewrite (0.024s)
Debug (commands): Adding command: cap (0.024s)
Debug (commands): Adding command: role (0.025s)
Debug (commands): Adding command: search-replace (0.026s)
Debug (commands): Adding command: server (0.026s)
Debug (commands): Adding command: shell (0.026s)
Debug (commands): Adding command: super-admin (0.026s)
Debug (commands): Adding command: widget (0.027s)
Debug (commands): Adding command: sidebar (0.027s)
Debug (bootstrap): Adding framework command: phar://wp-cli.phar/vendor/wp-cli/wp-cli/php/commands/cli.php (0.027s)
Debug (commands): Adding command: cli (0.028s)
Debug (commands): Adding command: cache in cli Namespace (0.028s)
Debug (commands): Adding command: alias in cli Namespace (0.028s)
Debug (bootstrap): Adding framework command: phar://wp-cli.phar/vendor/wp-cli/wp-cli/php/commands/help.php (0.028s)
Debug (commands): Adding command: help (0.028s)
Debug (bootstrap): No readable global config found (0.029s)
Debug (bootstrap): No project config found (0.029s)
Debug (bootstrap): argv: /usr/local/bin/wp --debug --allow-root (0.029s)
Debug (bootstrap): ABSPATH defined: /home/website/webapps/wp/ (0.029s)
Debug (bootstrap): Begin WordPress load (0.029s)
Debug (bootstrap): wp-config.php path: /home/website/webapps/wp/wp-config.php (0.029s)
Debug (commands): Adding command: yoast (0.135s)
Debug (commands): Adding command: action-scheduler (0.145s)
Debug (commands): Adding command: migrate in action-scheduler Namespace (0.145s)
Segmentation fault (core dumped)

I think the problem is on my cron job events who cause segmentation fault, here is the var/log/syslog file:

Aug 11 04:46:01 ns5008083 CRON[123809]: (website) CMD (cd /home/website/webapps/wp && wp cron event run --due-now > /dev/null 2>&1)
Aug 11 04:46:02 ns5008083 kernel: [87559.163195] php[123810]: segfault at 65 ip 00005628f77814f0 sp 00007ffd7c1befa8 error 4 in php[5628f7527000+2ff000]
Aug 11 04:46:02 ns5008083 kernel: [87559.163199] Code: 00 48 23 42 18 48 be 00 00 00 00 95 00 00 00 48 39 f0 75 16 48 8b 81 70 03 00 00 48 85 c0 74 0a 8b 40 18 c3 66 0f 1f 44 00 00 <8b> 42 18 c3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8d
Aug 11 04:46:02 ns5008083 mariadbd[1904]: 2022-08-11  4:46:02 5446838 [Warning] Aborted connection 5446838 to db: 'testsite' user: 'wplocal' host: 'localhost' (Got an error reading communication packets)
Aug 11 04:47:01 ns5008083 CRON[123874]: (website) CMD (cd /home/website/webapps/wp && wp cron event run --due-now > /dev/null 2>&1)
Aug 11 04:47:01 ns5008083 kernel: [87618.528550] php[123875]: segfault at 65 ip 0000561e15c704f0 sp 00007fff336025a8 error 4 in php[561e15a16000+2ff000]
Aug 11 04:47:01 ns5008083 kernel: [87618.528554] Code: 00 48 23 42 18 48 be 00 00 00 00 95 00 00 00 48 39 f0 75 16 48 8b 81 70 03 00 00 48 85 c0 74 0a 8b 40 18 c3 66 0f 1f 44 00 00 <8b> 42 18 c3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8d
Aug 11 04:47:01 ns5008083 mariadbd[1904]: 2022-08-11  4:47:01 5451071 [Warning] Aborted connection 5451071 to db: 'testsite' user: 'wplocal' host: 'localhost' (Got an error reading communication packets)
Aug 11 04:48:01 ns5008083 CRON[123933]: (website) CMD (cd /home/website/webapps/wp && wp cron event run --due-now > /dev/null 2>&1)
Aug 11 04:48:01 ns5008083 kernel: [87678.867328] php[123934]: segfault at 65 ip 000055afeae964f0 sp 00007ffcba7b6558 error 4 in php[55afeac3c000+2ff000]
Aug 11 04:48:01 ns5008083 kernel: [87678.867333] Code: 00 48 23 42 18 48 be 00 00 00 00 95 00 00 00 48 39 f0 75 16 48 8b 81 70 03 00 00 48 85 c0 74 0a 8b 40 18 c3 66 0f 1f 44 00 00 <8b> 42 18 c3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8d
Aug 11 04:48:01 ns5008083 mariadbd[1904]: 2022-08-11  4:48:01 5455608 [Warning] Aborted connection 5455608 to db: 'testsite' user: 'wplocal' host: 'localhost' (Got an error reading communication packets)
Aug 11 04:49:01 ns5008083 CRON[123989]: (website) CMD (cd /home/website/webapps/wp && wp cron event run --due-now > /dev/null 2>&1)
Aug 11 04:49:02 ns5008083 kernel: [87739.229395] php[123990]: segfault at 65 ip 000055987d1624f0 sp 00007fffd9dc8cb8 error 4 in php[55987cf08000+2ff000]
Aug 11 04:49:02 ns5008083 kernel: [87739.229400] Code: 00 48 23 42 18 48 be 00 00 00 00 95 00 00 00 48 39 f0 75 16 48 8b 81 70 03 00 00 48 85 c0 74 0a 8b 40 18 c3 66 0f 1f 44 00 00 <8b> 42 18 c3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8d
Aug 11 04:49:02 ns5008083 mariadbd[1904]: 2022-08-11  4:49:02 5460415 [Warning] Aborted connection 5460415 to db: 'testsite' user: 'wplocal' host: 'localhost' (Got an error reading communication packets)
Agus
  • 1
  • Are you sure your `php --version` command output is complete? For me, first line states: `PHP 7.4.28`, not with the copyright. What is your running environment here? Have you tried disabling ionCube? – Tero Kilkanen Aug 11 '22 at 05:40

0 Answers0