# Buggy on M2

**URL:** <https://community.localwp.com/t/buggy-on-m2/36809>\
**Category:** Support\
**Tags:** mac\
**Created:** [May 4, 2023, 4:41pm UTC](https://community.localwp.com/t/buggy-on-m2/36809 "2023-05-04T16:41:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardegil](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/richardegil/32/18262_2.png) [@richardegil](https://community.localwp.com/u/richardegil)\
**Post date:** [May 4, 2023, 4:41pm UTC](https://community.localwp.com/t/buggy-on-m2/36809/1 "2023-05-04T16:41:17Z")

</div>

### Issue Summary

Having a lot of issues using shell access via Local. If I run `wp` I get the following result.

```auto
wp
Failed loading /Users/reg/Library/Application Support/Local/lightning-services/php-8.0.22+6/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20200930/opcache.so: dlopen(/Users/reg/Library/Application Support/Local/lightning-services/php-8.0.22+6/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20200930/opcache.so, 0x0009): symbol not found in flat namespace '__zend_get_parameters_array_ex'
Failed loading /Users/reg/Library/Application Support/Local/lightning-services/php-8.0.22+6/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so: dlopen(/Users/reg/Library/Application Support/Local/lightning-services/php-8.0.22+6/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so, 0x0009): symbol not found in flat namespace '__zend_get_parameters_array_ex'

```

If I run `which wp` I get a weird Lando conditional

```auto
> which wp
wp () {
	if checkForLandoFile
	then
		lando "$0" "$@"
	else
		command "$0" "$@"
	fi
}

```

This is what happens when I try to access composer:

```auto
> /Users/reg/Library/Application\ Support/Local/ssh-entry/eNXBcHB3_.sh
-n -e 
Setting Local environment variables...
----
WP-CLI: WP-CLI 2.7.1
Composer: 2.1.5 2021-07-23
PHP: 8.1.9
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /bin/zsh ...
> composer -v
composer:11: command not found: composer

```

#### Troubleshooting Questions

- Does this happen for all sites in Local, or just one in particular?  
All sites

- Are you able to create a new, plain WordPress site in Local and access it in a Browser?  
Yes

#### Replication

Create a new site, click on Open site shell and use any command.

#### System Details

- Which version of Local is being used?  
6.7.1+6369

- What Operating System (OS) and OS version is being used?  
macOS Ventura 13.3.1 Apple Silicone M2

- Attach the Local Log. See this Help Doc for instructions on how to do so:  
[local-logs1.zip](https://community.localwp.com/uploads/short-url/4G0MdtbkNVxijNQEXirIlHAYo6J.zip) (6.4 KB)

---

<div class="post-metadata">

**Author:** ![genyus](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/genyus/32/9948_2.png) [@genyus](https://community.localwp.com/u/genyus)\
**Post date:** [May 5, 2023, 2:35am UTC](https://community.localwp.com/t/buggy-on-m2/36809/2 "2023-05-05T02:35:45Z")

</div>

You need to install Rosetta, see the command provided in this answer:

> [@Showing WP-CLI Warning in M1 - mach-o file, but is an incompatible architecture (have 'x86\_64', need 'arm64')](http://community.localwp.com/t/showing-wp-cli-warning-in-m1-mach-o-file-but-is-an-incompatible-architecture-have-x86-64-need-arm64/36798/2):
>
> You will need to have Rosetta installed as the lightning services are not built for ARM64. softwareupdate --install-rosetta --agree-to-license

---

<div class="post-metadata">

**Author:** ![richardegil](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/richardegil/32/18262_2.png) [@richardegil](https://community.localwp.com/u/richardegil)\
**Post date:** [May 5, 2023, 3:57am UTC](https://community.localwp.com/t/buggy-on-m2/36809/3 "2023-05-05T03:57:50Z")

</div>

I’ve done that, still getting the same result.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 3, 2023, 3:58am UTC](https://community.localwp.com/t/buggy-on-m2/36809/4 "2023-08-03T03:58:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
