Bug Summary
When I run any wp cli command, I get two errors. I am using PHP 8.3.0 on an Apple M1 Pro.
- Failed loading /Users/djave_co/Library/Application Support/Local/lightning-services/php-8.3.0+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20230831/opcache.so: dlopen(/Users/djave_co/Library/Application Support/Local/lightning-services/php-8.3.0+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20230831/opcache.so, 0x0009): symbol not found in flat namespace ‘_pcre2_code_free_8’
- Warning: Module “imagick” is already loaded in Unknown on line 0
Steps to reproduce
- Open the site shell.
- Run wp db check
The biggest issue is that we populate sites using wordpress commands, so running commands like:
wp post delete --force $(wp post list --post_type='attachment' --format=ids)
Will count every word as output.
Warning: Failed deleting post Warning:.
Warning: Failed deleting post Module.
Warning: Failed deleting post "imagick".
Warning: Failed deleting post is.
Warning: Failed deleting post already.
Warning: Failed deleting post loaded.
Warning: Failed deleting post in.
Warning: Failed deleting post Unknown.
Warning: Failed deleting post on.
Warning: Failed deleting post line.
Warning: Failed deleting post 0.
Environment Info
Describe your environment.
-
What Operating System are you using? Mac OSC, M1 Pro chip
local-lightning.log (26.5 KB) -
What versions of site software (Nginx, Apache, PHP, MySQL) is used? PHP 8.3.0, MySQL 8.0.16
-
What version of Local is installed? Version 9.0.3+6684
WP-CLI: WP-CLI 2.9.0
Composer: 2.6.2 2023-09-03
PHP: 8.3.0
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
Supporting info
Please provide your Local Log. See this Community Forum post for instructions on how to do so: