Osmin M
Osmin M

Reputation: 88

wordpress php-compat Error: Invalid field: files - what's the best way to move to php 8.1?

I host wp on dreamhost and its management interface won't let me move wp to php 8.1. When I run "wp php-compat --php_version=8.0" I get this after a few minutes:

Error: Invalid field: files What is the best way to troubleshoot what could be generating this error?

I didn't see a way to make the output more verbose so I used strace and got the following output (about 6 of them) which seems like a good place to start?

...
wait4(26238, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 26238
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26238, si_uid=23446389, si_status=0, si_utime=5, si_stime=2} ---
access("/usr/local/wp/php-compat-cache/plugins/idx-broker-platinum/idx-broker-platinum.3.2.3.json", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/wp/vendor/dreamhost/wpcli-php-compat-command/vendor/bin/phpcs", F_OK) = -1 ENOENT (No such file or directory)
dup(0)                                  = 3
pipe2([4, 5], 0)                        = 0
pipe2([6, 7], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa3265b6090) = 26244
close(3)                                = 0
close(5)                                = 0
newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
close(7)                                = 0
newfstatat(6, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(4, "{\"totals\":{\"errors\":2,\"warnings\""..., 8192) = 8192

...
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26260, si_uid=23446389, si_status=1, si_utime=7, si_stime=6} ---
access("/usr/local/wp/php-compat-cache/plugins/motopress-content-editor/motopress-content-editor.1.5.8.json", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/wp/vendor/dreamhost/wpcli-php-compat-command/vendor/bin/phpcs", F_OK) = -1 ENOENT (No such file or directory)
dup(0)                                  = 3
pipe2([4, 5], 0)                        = 0
pipe2([6, 7], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa3265b6090) = 26294
close(3)                                = 0
close(5)                                = 0
newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
close(7)                                = 0
newfstatat(6, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(4, "{\"totals\":{\"errors\":3,\"warnings\""..., 8192) = 6958
read(4, "", 8192)  

thanks

Upvotes: 0

Views: 10

Answers (0)

Related Questions